Commit f22b23b2 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Settings/SettingsNetwork): view in progress

parent 004dcd73
......@@ -655,6 +655,26 @@ Server url not configured.</translation>
<source>enabledPortHeader</source>
<translation>Enabled port</translation>
</message>
<message>
<source>enableTlsLabel</source>
<translation>Enable TLS</translation>
</message>
<message>
<source>dscpFieldsTitle</source>
<translation>DSCP Fields</translation>
</message>
<message>
<source>sipFieldLabel</source>
<translation>SIP</translation>
</message>
<message>
<source>audioRtpStreamFieldLabel</source>
<translation>Audio RTP Stream</translation>
</message>
<message>
<source>videoRtpStreamFieldLabel</source>
<translation>Video RTP Stream</translation>
</message>
</context>
<context>
<name>SettingsWindow</name>
......
......@@ -665,6 +665,26 @@ Url du serveur non configurée.</translation>
<source>enabledPortHeader</source>
<translation>Port activé</translation>
</message>
<message>
<source>enableTlsLabel</source>
<translation>Activer TLS</translation>
</message>
<message>
<source>dscpFieldsTitle</source>
<translation>Champs DSCP</translation>
</message>
<message>
<source>sipFieldLabel</source>
<translation>SIP</translation>
</message>
<message>
<source>audioRtpStreamFieldLabel</source>
<translation>Flux RTP audio</translation>
</message>
<message>
<source>videoRtpStreamFieldLabel</source>
<translation>Flux RTP vidéo</translation>
</message>
</context>
<context>
<name>SettingsWindow</name>
......
......@@ -182,6 +182,7 @@
<file>ui/modules/Common/Form/Fields/NumericField.qml</file>
<file>ui/modules/Common/Form/Fields/TextField.qml</file>
<file>ui/modules/Common/Form/ListForm.qml</file>
<file>ui/modules/Common/Form/Placements/FormEmptyLine.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>
......
......@@ -33,6 +33,8 @@ TextField {
// ---------------------------------------------------------------------------
text: minValue
tools: Rectangle {
border {
color: TextFieldStyle.background.border.color
......
import QtQuick 2.7
import Common.Styles 1.0
// =============================================================================
Item {
height: FormGroupStyle.legend.height
width: parent.width
}
......@@ -35,6 +35,7 @@ NumericField 1.0 Form/Fields/NumericField.qml
TextField 1.0 Form/Fields/TextField.qml
Form 1.0 Form/Placements/Form.qml
FormEmptyLine 1.0 Form/Placements/FormEmptyLine.qml
FormEntry 1.0 Form/Placements/FormEntry.qml
FormGroup 1.0 Form/Placements/FormGroup.qml
FormHeader 1.0 Form/Placements/FormHeader.qml
......
......@@ -32,6 +32,8 @@ TabContainer {
label: qsTr('mtuLabel')
NumericField {
minValue: 500
maxValue: 3001
readOnly: !forceMtu.checked
}
}
......@@ -77,6 +79,8 @@ TabContainer {
label: qsTr('sipUdpPortLabel')
NumericField {
minValue: 0
maxValue: 65535
readOnly: randomSipUdpPort.checked || !enableSipUdpPort.checked
}
}
......@@ -101,6 +105,8 @@ TabContainer {
label: qsTr('sipTcpPortLabel')
NumericField {
minValue: 0
maxValue: 65535
readOnly: randomSipTcpPort.checked || !enableSipTcpPort.checked
}
}
......@@ -125,6 +131,8 @@ TabContainer {
label: qsTr('audioRtpUdpPortLabel')
NumericField {
minValue: 0
maxValue: 65535
readOnly: randomAudioRtpUdpPort.checked || !enableAudioRtpUdpPort.checked
}
}
......@@ -149,6 +157,8 @@ TabContainer {
label: qsTr('videoRtpUdpPortLabel')
NumericField {
minValue: 0
maxValue: 65535
readOnly: randomVideoRtpUdpPort.checked || !enableVideoRtpUdpPort.checked
}
}
......@@ -167,6 +177,47 @@ TabContainer {
}
}
}
FormEmptyLine {}
FormLine {
FormGroup {
label: qsTr('enableTlsLabel')
Switch {}
}
}
}
// -------------------------------------------------------------------------
// DSCP fields.
// -------------------------------------------------------------------------
Form {
title: qsTr('dscpFieldsTitle')
width: parent.width
FormLine {
FormGroup {
label: qsTr('sipFieldLabel')
TextField {}
}
}
FormLine {
FormGroup {
label: qsTr('audioRtpStreamFieldLabel')
TextField {}
}
FormGroup {
label: qsTr('videoRtpStreamFieldLabel')
TextField {}
}
}
}
// -------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment