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> ...@@ -655,6 +655,26 @@ Server url not configured.</translation>
<source>enabledPortHeader</source> <source>enabledPortHeader</source>
<translation>Enabled port</translation> <translation>Enabled port</translation>
</message> </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>
<context> <context>
<name>SettingsWindow</name> <name>SettingsWindow</name>
......
...@@ -665,6 +665,26 @@ Url du serveur non configurée.</translation> ...@@ -665,6 +665,26 @@ Url du serveur non configurée.</translation>
<source>enabledPortHeader</source> <source>enabledPortHeader</source>
<translation>Port activé</translation> <translation>Port activé</translation>
</message> </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>
<context> <context>
<name>SettingsWindow</name> <name>SettingsWindow</name>
......
...@@ -182,6 +182,7 @@ ...@@ -182,6 +182,7 @@
<file>ui/modules/Common/Form/Fields/NumericField.qml</file> <file>ui/modules/Common/Form/Fields/NumericField.qml</file>
<file>ui/modules/Common/Form/Fields/TextField.qml</file> <file>ui/modules/Common/Form/Fields/TextField.qml</file>
<file>ui/modules/Common/Form/ListForm.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/FormEntry.qml</file>
<file>ui/modules/Common/Form/Placements/FormGroup.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/FormHeaderEntry.qml</file>
......
...@@ -33,6 +33,8 @@ TextField { ...@@ -33,6 +33,8 @@ TextField {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
text: minValue
tools: Rectangle { tools: Rectangle {
border { border {
color: TextFieldStyle.background.border.color 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 ...@@ -35,6 +35,7 @@ NumericField 1.0 Form/Fields/NumericField.qml
TextField 1.0 Form/Fields/TextField.qml TextField 1.0 Form/Fields/TextField.qml
Form 1.0 Form/Placements/Form.qml Form 1.0 Form/Placements/Form.qml
FormEmptyLine 1.0 Form/Placements/FormEmptyLine.qml
FormEntry 1.0 Form/Placements/FormEntry.qml FormEntry 1.0 Form/Placements/FormEntry.qml
FormGroup 1.0 Form/Placements/FormGroup.qml FormGroup 1.0 Form/Placements/FormGroup.qml
FormHeader 1.0 Form/Placements/FormHeader.qml FormHeader 1.0 Form/Placements/FormHeader.qml
......
...@@ -32,6 +32,8 @@ TabContainer { ...@@ -32,6 +32,8 @@ TabContainer {
label: qsTr('mtuLabel') label: qsTr('mtuLabel')
NumericField { NumericField {
minValue: 500
maxValue: 3001
readOnly: !forceMtu.checked readOnly: !forceMtu.checked
} }
} }
...@@ -77,6 +79,8 @@ TabContainer { ...@@ -77,6 +79,8 @@ TabContainer {
label: qsTr('sipUdpPortLabel') label: qsTr('sipUdpPortLabel')
NumericField { NumericField {
minValue: 0
maxValue: 65535
readOnly: randomSipUdpPort.checked || !enableSipUdpPort.checked readOnly: randomSipUdpPort.checked || !enableSipUdpPort.checked
} }
} }
...@@ -101,6 +105,8 @@ TabContainer { ...@@ -101,6 +105,8 @@ TabContainer {
label: qsTr('sipTcpPortLabel') label: qsTr('sipTcpPortLabel')
NumericField { NumericField {
minValue: 0
maxValue: 65535
readOnly: randomSipTcpPort.checked || !enableSipTcpPort.checked readOnly: randomSipTcpPort.checked || !enableSipTcpPort.checked
} }
} }
...@@ -125,6 +131,8 @@ TabContainer { ...@@ -125,6 +131,8 @@ TabContainer {
label: qsTr('audioRtpUdpPortLabel') label: qsTr('audioRtpUdpPortLabel')
NumericField { NumericField {
minValue: 0
maxValue: 65535
readOnly: randomAudioRtpUdpPort.checked || !enableAudioRtpUdpPort.checked readOnly: randomAudioRtpUdpPort.checked || !enableAudioRtpUdpPort.checked
} }
} }
...@@ -149,6 +157,8 @@ TabContainer { ...@@ -149,6 +157,8 @@ TabContainer {
label: qsTr('videoRtpUdpPortLabel') label: qsTr('videoRtpUdpPortLabel')
NumericField { NumericField {
minValue: 0
maxValue: 65535
readOnly: randomVideoRtpUdpPort.checked || !enableVideoRtpUdpPort.checked readOnly: randomVideoRtpUdpPort.checked || !enableVideoRtpUdpPort.checked
} }
} }
...@@ -167,6 +177,47 @@ TabContainer { ...@@ -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