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
95fb6b96
Commit
95fb6b96
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
f356a4f2
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
194 additions
and
17 deletions
+194
-17
en.ts
linphone-desktop/assets/languages/en.ts
+32
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+33
-1
ForceScrollBar.qml
linphone-desktop/ui/modules/Common/ForceScrollBar.qml
+2
-0
TabContainer.qml
linphone-desktop/ui/modules/Common/Form/Tab/TabContainer.qml
+43
-8
TextFieldStyle.qml
...p/ui/modules/Common/Styles/Form/Fields/TextFieldStyle.qml
+1
-1
TabContainerStyle.qml
...p/ui/modules/Common/Styles/Form/Tab/TabContainerStyle.qml
+6
-1
SettingsNetwork.qml
linphone-desktop/ui/views/App/Settings/SettingsNetwork.qml
+73
-1
SettingsWindow.qml
linphone-desktop/ui/views/App/Settings/SettingsWindow.qml
+3
-5
SettingsWindowStyle.qml
...ktop/ui/views/App/Styles/Settings/SettingsWindowStyle.qml
+1
-0
No files found.
linphone-desktop/assets/languages/en.ts
View file @
95fb6b96
...
...
@@ -607,6 +607,38 @@ Server url not configured.</translation>
<
source
>
networkProtocolAndPortsTitle
<
/source
>
<
translation
>
Network
protocol
and
Ports
<
/translation
>
<
/message
>
<
message
>
<
source
>
sipUdpPortLabel
<
/source
>
<
translation
>
SIP
UDP
port
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomSipUdpPortLabel
<
/source
>
<
translation
>
Random
<
/translation
>
<
/message
>
<
message
>
<
source
>
sipTcpPortLabel
<
/source
>
<
translation
>
SIP
TCP
port
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomSipTcpPortLabel
<
/source
>
<
translation
>
Random
<
/translation
>
<
/message
>
<
message
>
<
source
>
audioRtpUdpPortLabel
<
/source
>
<
translation
>
Audio
RTP
UDP
port
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomAudioRtpUdpPortLabel
<
/source
>
<
translation
>
Random
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomVideoRtpUdpPortLabel
<
/source
>
<
translation
>
Random
<
/translation
>
<
/message
>
<
message
>
<
source
>
videoRtpUdpPortLabel
<
/source
>
<
translation
>
Video
RTP
UDP
port
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SettingsWindow
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
95fb6b96
...
...
@@ -556,7 +556,7 @@ Url du serveur non configurée.</translation>
<
/message
>
<
message
>
<
source
>
noEncryption
<
/source
>
<
translation
>
Aucun
e
<
/translation
>
<
translation
>
Aucun
<
/translation
>
<
/message
>
<
message
>
<
source
>
autoAnswerLabel
<
/source
>
...
...
@@ -617,6 +617,38 @@ Url du serveur non configurée.</translation>
<
source
>
networkProtocolAndPortsTitle
<
/source
>
<
translation
>
Protocol
r
é
seau
et
ports
<
/translation
>
<
/message
>
<
message
>
<
source
>
sipUdpPortLabel
<
/source
>
<
translation
>
Port
SIP
UDP
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomSipUdpPortLabel
<
/source
>
<
translation
>
Al
é
atoire
<
/translation
>
<
/message
>
<
message
>
<
source
>
sipTcpPortLabel
<
/source
>
<
translation
>
Port
SIP
TCP
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomSipTcpPortLabel
<
/source
>
<
translation
>
Al
é
atoire
<
/translation
>
<
/message
>
<
message
>
<
source
>
audioRtpUdpPortLabel
<
/source
>
<
translation
>
Port
Audio
RTP
UDP
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomAudioRtpUdpPortLabel
<
/source
>
<
translation
>
Al
é
atoire
<
/translation
>
<
/message
>
<
message
>
<
source
>
randomVideoRtpUdpPortLabel
<
/source
>
<
translation
>
Al
é
atoire
<
/translation
>
<
/message
>
<
message
>
<
source
>
videoRtpUdpPortLabel
<
/source
>
<
translation
>
Port
Vid
é
o
RTP
UDP
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SettingsWindow
<
/name
>
...
...
linphone-desktop/ui/modules/Common/ForceScrollBar.qml
View file @
95fb6b96
...
...
@@ -26,4 +26,6 @@ ScrollBar {
radius
:
ForceScrollBarStyle
.
contentItem
.
radius
}
hoverEnabled
:
true
visible
:
size
<
1.0
}
linphone-desktop/ui/modules/Common/Form/Tab/TabContainer.qml
View file @
95fb6b96
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
QtQuick
.
Controls
2.1
import
Common
1.0
import
Common
.
Styles
1.0
import
Utils
1.0
// =============================================================================
...
...
@@ -10,16 +14,47 @@ Rectangle {
anchors.fill
:
parent
color
:
TabContainerStyle
.
color
Item
{
id
:
content
ColumnLayout
{
anchors.fill
:
parent
spacing
:
0
anchors
{
fill
:
parent
Flickable
{
ScrollBar.vertical
:
ForceScrollBar
{
id
:
scrollBar
}
bottomMargin
:
TabContainerStyle
.
bottomMargin
leftMargin
:
TabContainerStyle
.
leftMargin
rightMargin
:
TabContainerStyle
.
rightMargin
topMargin
:
TabContainerStyle
.
topMargin
Layout.fillHeight
:
true
Layout.fillWidth
:
true
boundsBehavior
:
Flickable
.
StopAtBounds
clip
:
true
contentHeight
:
Utils
.
ensureArray
(
_content
).
reduce
(
function
(
acc
,
item
)
{
return
item
.
height
},
0
,
[])
+
TabContainerStyle
.
topMargin
+
TabContainerStyle
.
bottomMargin
contentWidth
:
width
Item
{
id
:
content
anchors
{
left
:
parent
.
left
leftMargin
:
TabContainerStyle
.
leftMargin
right
:
parent
.
right
rightMargin
:
TabContainerStyle
.
rightMargin
top
:
parent
.
top
topMargin
:
TabContainerStyle
.
topMargin
}
width
:
parent
.
width
}
}
Rectangle
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
TabContainerStyle
.
separator
.
height
color
:
TabContainerStyle
.
separator
.
color
visible
:
scrollBar
.
visible
}
}
}
linphone-desktop/ui/modules/Common/Styles/Form/Fields/TextFieldStyle.qml
View file @
95fb6b96
...
...
@@ -8,7 +8,7 @@ import Common 1.0
QtObject
{
property
QtObject
background
:
QtObject
{
property
int
height
:
36
property
int
width
:
3
00
property
int
width
:
2
00
property
int
radius
:
4
...
...
linphone-desktop/ui/modules/Common/Styles/Form/Tab/TabContainerStyle.qml
View file @
95fb6b96
...
...
@@ -7,8 +7,13 @@ import Common 1.0
QtObject
{
property
color
color
:
Colors
.
k
property
int
bottomMargin
:
15
property
int
bottomMargin
:
30
property
int
leftMargin
:
30
property
int
rightMargin
:
30
property
int
topMargin
:
30
property
QtObject
separator
:
QtObject
{
property
int
height
:
2
property
color
color
:
Colors
.
u
}
}
linphone-desktop/ui/views/App/Settings/SettingsNetwork.qml
View file @
95fb6b96
...
...
@@ -8,8 +8,8 @@ import App.Styles 1.0
TabContainer
{
Column
{
anchors.fill
:
parent
spacing
:
SettingsWindowStyle
.
forms
.
spacing
width
:
parent
.
width
// -------------------------------------------------------------------------
// Transport.
...
...
@@ -59,7 +59,79 @@ TabContainer {
width
:
parent
.
width
FormLine
{
FormGroup
{
label
:
qsTr
(
'
sipUdpPortLabel
'
)
NumericField
{
readOnly
:
randomSipUdpPort
.
checked
}
}
FormGroup
{
label
:
qsTr
(
'
randomSipUdpPortLabel
'
)
Switch
{
id
:
randomSipUdpPort
}
}
}
FormLine
{
FormGroup
{
label
:
qsTr
(
'
sipTcpPortLabel
'
)
NumericField
{
readOnly
:
randomSipTcpPort
.
checked
}
}
FormGroup
{
label
:
qsTr
(
'
randomSipTcpPortLabel
'
)
Switch
{
id
:
randomSipTcpPort
}
}
}
FormLine
{
FormGroup
{
label
:
qsTr
(
'
audioRtpUdpPortLabel
'
)
NumericField
{
readOnly
:
randomAudioRtpUdpPort
.
checked
}
}
FormGroup
{
label
:
qsTr
(
'
randomAudioRtpUdpPortLabel
'
)
Switch
{
id
:
randomAudioRtpUdpPort
}
}
}
FormLine
{
FormGroup
{
label
:
qsTr
(
'
videoRtpUdpPortLabel
'
)
NumericField
{
readOnly
:
randomVideoRtpUdpPort
.
checked
||
!
enableVideoRtpUdpPort
.
checked
}
}
FormGroup
{
label
:
qsTr
(
'
randomVideoRtpUdpPortLabel
'
)
Switch
{
id
:
randomVideoRtpUdpPort
}
}
Switch
{
id
:
enableVideoRtpUdpPort
}
}
}
...
...
linphone-desktop/ui/views/App/Settings/SettingsWindow.qml
View file @
95fb6b96
...
...
@@ -15,11 +15,8 @@ ApplicationWindow {
height
:
SettingsWindowStyle
.
height
width
:
SettingsWindowStyle
.
width
maximumHeight
:
height
maximumWidth
:
width
minimumHeight
:
height
minimumWidth
:
width
minimumHeight
:
SettingsWindowStyle
.
height
minimumWidth
:
SettingsWindowStyle
.
width
title
:
qsTr
(
'
settingsTitle
'
)
visible
:
true
...
...
@@ -108,6 +105,7 @@ ApplicationWindow {
TextButtonB
{
Layout.alignment
:
Qt
.
AlignRight
Layout.topMargin
:
SettingsWindowStyle
.
validButton
.
topMargin
Layout.bottomMargin
:
SettingsWindowStyle
.
validButton
.
bottomMargin
Layout.rightMargin
:
SettingsWindowStyle
.
validButton
.
rightMargin
...
...
linphone-desktop/ui/views/App/Styles/Settings/SettingsWindowStyle.qml
View file @
95fb6b96
...
...
@@ -14,5 +14,6 @@ QtObject {
property
QtObject
validButton
:
QtObject
{
property
int
bottomMargin
:
30
property
int
rightMargin
:
30
property
int
topMargin
:
30
}
}
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