Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
004dcd73
Commit
004dcd73
authored
Feb 14, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Settings/SettingsNetwork): view in progress
parent
e84c5e2e
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
203 additions
and
30 deletions
+203
-30
en.ts
linphone-desktop/assets/languages/en.ts
+16
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+16
-0
resources.qrc
linphone-desktop/resources.qrc
+5
-0
FormEntry.qml
...e-desktop/ui/modules/Common/Form/Placements/FormEntry.qml
+20
-8
FormGroup.qml
...e-desktop/ui/modules/Common/Form/Placements/FormGroup.qml
+3
-0
FormHeader.qml
...-desktop/ui/modules/Common/Form/Placements/FormHeader.qml
+10
-0
FormHeaderEntry.qml
...top/ui/modules/Common/Form/Placements/FormHeaderEntry.qml
+28
-0
FormHeaderGroup.qml
...top/ui/modules/Common/Form/Placements/FormHeaderGroup.qml
+34
-0
FormLine.qml
...ne-desktop/ui/modules/Common/Form/Placements/FormLine.qml
+3
-0
FormHeaderGroupStyle.qml
...es/Common/Styles/Form/Placements/FormHeaderGroupStyle.qml
+13
-0
FormHeaderStyle.qml
...modules/Common/Styles/Form/Placements/FormHeaderStyle.qml
+8
-0
qmldir
linphone-desktop/ui/modules/Common/Styles/qmldir
+2
-0
qmldir
linphone-desktop/ui/modules/Common/qmldir
+3
-0
SettingsCallsChat.qml
linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml
+28
-22
SettingsNetwork.qml
linphone-desktop/ui/views/App/Settings/SettingsNetwork.qml
+14
-0
No files found.
linphone-desktop/assets/languages/en.ts
View file @
004dcd73
...
...
@@ -639,6 +639,22 @@ Server url not configured.</translation>
<
source
>
videoRtpUdpPortLabel
<
/source
>
<
translation
>
Video
RTP
UDP
port
<
/translation
>
<
/message
>
<
message
>
<
source
>
portsHeader
<
/source
>
<
translation
type
=
"
vanished
"
>
Port
<
/translation
>
<
/message
>
<
message
>
<
source
>
portHeader
<
/source
>
<
translation
>
Port
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomPortHeader
<
/source
>
<
translation
>
Use
a
random
port
<
/translation
>
<
/message
>
<
message
>
<
source
>
enabledPortHeader
<
/source
>
<
translation
>
Enabled
port
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SettingsWindow
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
004dcd73
...
...
@@ -649,6 +649,22 @@ Url du serveur non configurée.</translation>
<
source
>
videoRtpUdpPortLabel
<
/source
>
<
translation
>
Port
Vid
é
o
RTP
UDP
<
/translation
>
<
/message
>
<
message
>
<
source
>
portsHeader
<
/source
>
<
translation
type
=
"
vanished
"
>
Port
<
/translation
>
<
/message
>
<
message
>
<
source
>
portHeader
<
/source
>
<
translation
>
Port
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomPortHeader
<
/source
>
<
translation
>
Utiliser
un
port
al
é
atoire
<
/translation
>
<
/message
>
<
message
>
<
source
>
enabledPortHeader
<
/source
>
<
translation
>
Port
activ
é
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SettingsWindow
<
/name
>
...
...
linphone-desktop/resources.qrc
View file @
004dcd73
...
...
@@ -184,6 +184,9 @@
<file>
ui/modules/Common/Form/ListForm.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormEntry.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormGroup.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormHeaderEntry.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormHeaderGroup.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormHeader.qml
</file>
<file>
ui/modules/Common/Form/Placements/FormLine.qml
</file>
<file>
ui/modules/Common/Form/Placements/Form.qml
</file>
<file>
ui/modules/Common/Form/SmallButton.qml
</file>
...
...
@@ -224,6 +227,8 @@
<file>
ui/modules/Common/Styles/Form/Fields/TextFieldStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/ListFormStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormGroupStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormHeaderGroupStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormHeaderStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormLineStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/Placements/FormStyle.qml
</file>
<file>
ui/modules/Common/Styles/Form/SmallButtonStyle.qml
</file>
...
...
linphone-desktop/ui/modules/Common/Form/Placements/FormEntry.qml
View file @
004dcd73
...
...
@@ -5,26 +5,38 @@ import Common.Styles 1.0
// =============================================================================
// Like a `FormGroup` but without label.
// Must be used in a `FormLine`.
// =============================================================================
RowLayout
{
Item
{
default
property
alias
_content
:
content
.
data
// ---------------------------------------------------------------------------
spacing
:
0
width
:
FormGroupStyle
.
content
.
width
implicitHeight
:
content
.
height
width
:
FormGroupStyle
.
content
.
width
Item
{
id
:
content
readonly
property
int
currentHeight
:
_content
[
0
]
?
_content
[
0
].
height
:
0
readonly
property
int
currentWidth
:
_content
[
0
]
?
_content
[
0
].
width
:
0
Layout.alignment
:
(
currentHeight
<
FormGroupStyle
.
legend
.
height
?
Qt
.
AlignVCenter
:
Qt
.
AlignTop
)
|
Qt
.
AlignHCenter
anchors
{
horizontalCenter
:
parent
.
horizontalCenter
Layout.preferredHeight
:
currentHeight
Layout.maximumWidth
:
FormGroupStyle
.
content
.
width
top
:
width
>
FormGroupStyle
.
legend
.
width
?
parent
.
top
:
undefined
verticalCenter
:
width
>
FormGroupStyle
.
legend
.
width
?
undefined
:
parent
.
verticalCenter
}
height
:
currentHeight
width
:
currentWidth
>
FormGroupStyle
.
content
.
width
?
FormGroupStyle
.
content
.
width
:
currentWidth
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormGroup.qml
View file @
004dcd73
...
...
@@ -3,6 +3,9 @@ import QtQuick.Layouts 1.3
import
Common
.
Styles
1.0
// =============================================================================
// Display a form component with a legend.
// Must be used in a `FormLine`.
// =============================================================================
RowLayout
{
...
...
linphone-desktop/ui/modules/Common/Form/Placements/FormHeader.qml
0 → 100644
View file @
004dcd73
import
Common
.
Styles
1.0
// =============================================================================
// Like a `FormLine` but used as form header.
// =============================================================================
FormLine
{
height
:
FormHeaderStyle
.
height
width
:
parent
.
width
}
linphone-desktop/ui/modules/Common/Form/Placements/FormHeaderEntry.qml
0 → 100644
View file @
004dcd73
import
QtQuick
2.7
import
Common
.
Styles
1.0
// =============================================================================
// Display a title on a `FormEntry`.
// Must be used in a `FormHeader`.
// =============================================================================
Item
{
property
alias
text
:
text
.
text
height
:
parent
.
height
width
:
FormGroupStyle
.
content
.
width
Text
{
id
:
text
anchors.centerIn
:
parent
color
:
FormHeaderGroupStyle
.
text
.
color
elide
:
Text
.
ElideRight
font
{
bold
:
true
pointSize
:
FormHeaderGroupStyle
.
text
.
fontSize
}
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormHeaderGroup.qml
0 → 100644
View file @
004dcd73
import
QtQuick
2.7
import
Common
.
Styles
1.0
// =============================================================================
// Display a title on a `FormGroup`.
// Must be used in a `FormHeader`.
// =============================================================================
Item
{
property
alias
text
:
text
.
text
height
:
parent
.
height
width
:
FormGroupStyle
.
spacing
+
FormGroupStyle
.
legend
.
width
+
FormGroupStyle
.
content
.
width
Text
{
id
:
text
anchors
{
fill
:
parent
leftMargin
:
FormGroupStyle
.
spacing
+
FormGroupStyle
.
legend
.
width
}
color
:
FormHeaderGroupStyle
.
text
.
color
elide
:
Text
.
ElideRight
font
{
bold
:
true
pointSize
:
FormHeaderGroupStyle
.
text
.
fontSize
}
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
}
}
linphone-desktop/ui/modules/Common/Form/Placements/FormLine.qml
View file @
004dcd73
...
...
@@ -2,8 +2,11 @@ import QtQuick 2.7
import
Common
.
Styles
1.0
// =============================================================================
// A line of `FormGroup`/`FormEntry`.
// =============================================================================
Row
{
spacing
:
FormLineStyle
.
spacing
width
:
parent
.
width
}
linphone-desktop/ui/modules/Common/Styles/Form/Placements/FormHeaderGroupStyle.qml
0 → 100644
View file @
004dcd73
pragma
Singleton
import
QtQuick
2.7
import
Common
1.0
// =============================================================================
QtObject
{
property
QtObject
text
:
QtObject
{
property
color
color
:
Colors
.
j
property
int
fontSize
:
10
}
}
linphone-desktop/ui/modules/Common/Styles/Form/Placements/FormHeaderStyle.qml
0 → 100644
View file @
004dcd73
pragma
Singleton
import
QtQuick
2.7
// =============================================================================
QtObject
{
property
int
height
:
30
}
linphone-desktop/ui/modules/Common/Styles/qmldir
View file @
004dcd73
...
...
@@ -18,6 +18,8 @@ singleton NumericFieldStyle 1.0 Form/Fields/NumericFieldStyle.qml
singleton TextFieldStyle 1.0 Form/Fields/TextFieldStyle.qml
singleton FormGroupStyle 1.0 Form/Placements/FormGroupStyle.qml
singleton FormHeaderStyle 1.0 Form/Placements/FormHeaderStyle.qml
singleton FormHeaderGroupStyle 1.0 Form/Placements/FormHeaderGroupStyle.qml
singleton FormLineStyle 1.0 Form/Placements/FormLineStyle.qml
singleton FormStyle 1.0 Form/Placements/FormStyle.qml
...
...
linphone-desktop/ui/modules/Common/qmldir
View file @
004dcd73
...
...
@@ -37,6 +37,9 @@ TextField 1.0 Form/Fields/TextField.qml
Form 1.0 Form/Placements/Form.qml
FormEntry 1.0 Form/Placements/FormEntry.qml
FormGroup 1.0 Form/Placements/FormGroup.qml
FormHeader 1.0 Form/Placements/FormHeader.qml
FormHeaderEntry 1.0 Form/Placements/FormHeaderEntry.qml
FormHeaderGroup 1.0 Form/Placements/FormHeaderGroup.qml
FormLine 1.0 Form/Placements/FormLine.qml
TabBar 1.0 Form/Tab/TabBar.qml
...
...
linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml
View file @
004dcd73
...
...
@@ -15,16 +15,18 @@ TabContainer {
title
:
qsTr
(
'
callsTitle
'
)
width
:
parent
.
width
FormGroup
{
label
:
qsTr
(
'
encryptionLabel
'
)
ExclusiveButtons
{
texts
:
[
qsTr
(
'
noEncryption
'
),
'
SRTP
'
,
'
ZRTP
'
,
'
DTLS
'
]
FormLine
{
FormGroup
{
label
:
qsTr
(
'
encryptionLabel
'
)
ExclusiveButtons
{
texts
:
[
qsTr
(
'
noEncryption
'
),
'
SRTP
'
,
'
ZRTP
'
,
'
DTLS
'
]
}
}
}
...
...
@@ -51,21 +53,25 @@ TabContainer {
title
:
qsTr
(
'
chatTitle
'
)
width
:
parent
.
width
FormGroup
{
label
:
qsTr
(
'
fileServerLabel
'
)
FormLine
{
FormGroup
{
label
:
qsTr
(
'
fileServerLabel
'
)
TextField
{}
TextField
{}
}
}
FormGroup
{
label
:
qsTr
(
'
encryptWithLimeLabel
'
)
ExclusiveButtons
{
texts
:
[
qsTr
(
'
limeDisabled
'
),
qsTr
(
'
limeRequired
'
),
qsTr
(
'
limePreferred
'
)
]
FormLine
{
FormGroup
{
label
:
qsTr
(
'
encryptWithLimeLabel
'
)
ExclusiveButtons
{
texts
:
[
qsTr
(
'
limeDisabled
'
),
qsTr
(
'
limeRequired
'
),
qsTr
(
'
limePreferred
'
)
]
}
}
}
}
...
...
linphone-desktop/ui/views/App/Settings/SettingsNetwork.qml
View file @
004dcd73
...
...
@@ -58,6 +58,20 @@ TabContainer {
title
:
qsTr
(
'
networkProtocolAndPortsTitle
'
)
width
:
parent
.
width
FormHeader
{
FormHeaderGroup
{
text
:
qsTr
(
'
portHeader
'
)
}
FormHeaderEntry
{
text
:
qsTr
(
'
randomPortHeader
'
)
}
FormHeaderEntry
{
text
:
qsTr
(
'
enabledPortHeader
'
)
}
}
FormLine
{
FormGroup
{
label
:
qsTr
(
'
sipUdpPortLabel
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment