Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
d45fa046
Commit
d45fa046
authored
3 years ago
by
Aline Gondim Santos
Browse files
Options
Downloads
Patches
Plain Diff
selectscreen: update titles and add cancel option
GitLab:
#668
Change-Id: I72e84b8accd29d59a8785c3f464db3c40edaa4b4
parent
dfae73d0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/constant/JamiStrings.qml
+1
-0
1 addition, 0 deletions
src/constant/JamiStrings.qml
src/mainview/components/SelectScreen.qml
+42
-20
42 additions, 20 deletions
src/mainview/components/SelectScreen.qml
with
43 additions
and
20 deletions
src/constant/JamiStrings.qml
+
1
−
0
View file @
d45fa046
...
@@ -517,6 +517,7 @@ Item {
...
@@ -517,6 +517,7 @@ Item {
// SelectScreen
// SelectScreen
property
string
selectScreen
:
qsTr
(
"
Select a screen to share
"
)
property
string
selectScreen
:
qsTr
(
"
Select a screen to share
"
)
property
string
selectWindow
:
qsTr
(
"
Select a window to share
"
)
property
string
allScreens
:
qsTr
(
"
All Screens
"
)
property
string
allScreens
:
qsTr
(
"
All Screens
"
)
property
string
screens
:
qsTr
(
"
Screens
"
)
property
string
screens
:
qsTr
(
"
Screens
"
)
property
string
windows
:
qsTr
(
"
Windows
"
)
property
string
windows
:
qsTr
(
"
Windows
"
)
...
...
This diff is collapsed.
Click to expand it.
src/mainview/components/SelectScreen.qml
+
42
−
20
View file @
d45fa046
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
import
QtQuick
import
QtQuick
import
QtQuick
.
Window
import
QtQuick
.
Window
import
QtQuick
.
Controls
import
QtQuick
.
Controls
import
QtQuick
.
Layouts
import
net
.
jami
.
Adapters
1.1
import
net
.
jami
.
Adapters
1.1
import
net
.
jami
.
Models
1.1
import
net
.
jami
.
Models
1.1
...
@@ -44,7 +45,7 @@ Window {
...
@@ -44,7 +45,7 @@ Window {
property
string
currentPreview
:
""
property
string
currentPreview
:
""
property
var
screens
:
[]
property
var
screens
:
[]
title
:
JamiStrings
.
selectScreen
title
:
window
?
JamiStrings
.
selectWindow
:
JamiStrings
.
selectScreen
// How many rows the ScrollView should have.
// How many rows the ScrollView should have.
function
calculateRepeaterModel
()
{
function
calculateRepeaterModel
()
{
...
@@ -348,36 +349,57 @@ Window {
...
@@ -348,36 +349,57 @@ Window {
}
}
}
}
MaterialButton
{
RowLayout
{
id
:
selectButton
anchors.bottom
:
selectScreenWindowRect
.
bottom
anchors.bottom
:
selectScreenWindowRect
.
bottom
anchors.bottomMargin
:
JamiTheme
.
preferredMarginSize
anchors.bottomMargin
:
JamiTheme
.
preferredMarginSize
anchors.horizontalCenter
:
selectScreenWindowRect
.
horizontalCenter
anchors.horizontalCenter
:
selectScreenWindowRect
.
horizontalCenter
preferredWidth
:
200
width
:
childrenRect
.
width
height
:
childrenRect
.
height
spacing
:
JamiTheme
.
preferredMarginSize
MaterialButton
{
id
:
selectButton
preferredWidth
:
200
enabled
:
selectedScreenNumber
!=
-
1
||
selectAllScreens
enabled
:
selectedScreenNumber
!=
-
1
||
selectAllScreens
opacity
:
enabled
?
1.0
:
0.5
opacity
:
enabled
?
1.0
:
0.5
color
:
JamiTheme
.
buttonTintedBlack
color
:
JamiTheme
.
buttonTintedBlack
hoveredColor
:
JamiTheme
.
buttonTintedBlackHovered
hoveredColor
:
JamiTheme
.
buttonTintedBlackHovered
pressedColor
:
JamiTheme
.
buttonTintedBlackPressed
pressedColor
:
JamiTheme
.
buttonTintedBlackPressed
outlined
:
true
outlined
:
true
text
:
JamiStrings
.
shareScreen
text
:
window
?
JamiStrings
.
shareWindow
:
JamiStrings
.
shareScreen
onClicked
:
{
onClicked
:
{
if
(
selectAllScreens
)
if
(
selectAllScreens
)
AvAdapter
.
shareAllScreens
()
AvAdapter
.
shareAllScreens
()
else
{
if
(
selectedScreenNumber
<
Qt
.
application
.
screens
.
length
)
AvAdapter
.
shareEntireScreen
(
selectedScreenNumber
)
else
{
else
{
AvAdapter
.
shareWindow
(
AvAdapter
.
windowsIds
[
selectedScreenNumber
-
Qt
.
application
.
screens
.
length
])
if
(
selectedScreenNumber
<
Qt
.
application
.
screens
.
length
)
AvAdapter
.
shareEntireScreen
(
selectedScreenNumber
)
else
{
AvAdapter
.
shareWindow
(
AvAdapter
.
windowsIds
[
selectedScreenNumber
-
Qt
.
application
.
screens
.
length
])
}
}
}
root
.
close
()
}
}
root
.
close
()
}
MaterialButton
{
id
:
cancelButton
preferredWidth
:
200
color
:
JamiTheme
.
buttonTintedBlack
hoveredColor
:
JamiTheme
.
buttonTintedBlackHovered
pressedColor
:
JamiTheme
.
buttonTintedBlackPressed
outlined
:
true
text
:
JamiStrings
.
optionCancel
onClicked
:
root
.
close
()
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment