Commit e84c5e2e authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent 4404cca2
...@@ -613,7 +613,7 @@ Server url not configured.</translation> ...@@ -613,7 +613,7 @@ Server url not configured.</translation>
</message> </message>
<message> <message>
<source>randomSipUdpPortLabel</source> <source>randomSipUdpPortLabel</source>
<translation>Random</translation> <translation type="vanished">Random</translation>
</message> </message>
<message> <message>
<source>sipTcpPortLabel</source> <source>sipTcpPortLabel</source>
...@@ -621,7 +621,7 @@ Server url not configured.</translation> ...@@ -621,7 +621,7 @@ Server url not configured.</translation>
</message> </message>
<message> <message>
<source>randomSipTcpPortLabel</source> <source>randomSipTcpPortLabel</source>
<translation>Random</translation> <translation type="vanished">Random</translation>
</message> </message>
<message> <message>
<source>audioRtpUdpPortLabel</source> <source>audioRtpUdpPortLabel</source>
...@@ -629,11 +629,11 @@ Server url not configured.</translation> ...@@ -629,11 +629,11 @@ Server url not configured.</translation>
</message> </message>
<message> <message>
<source>randomAudioRtpUdpPortLabel</source> <source>randomAudioRtpUdpPortLabel</source>
<translation>Random</translation> <translation type="vanished">Random</translation>
</message> </message>
<message> <message>
<source>randomVideoRtpUdpPortLabel</source> <source>randomVideoRtpUdpPortLabel</source>
<translation>Random</translation> <translation type="vanished">Random</translation>
</message> </message>
<message> <message>
<source>videoRtpUdpPortLabel</source> <source>videoRtpUdpPortLabel</source>
......
...@@ -623,7 +623,7 @@ Url du serveur non configurée.</translation> ...@@ -623,7 +623,7 @@ Url du serveur non configurée.</translation>
</message> </message>
<message> <message>
<source>randomSipUdpPortLabel</source> <source>randomSipUdpPortLabel</source>
<translation>Aléatoire</translation> <translation type="vanished">Aléatoire</translation>
</message> </message>
<message> <message>
<source>sipTcpPortLabel</source> <source>sipTcpPortLabel</source>
...@@ -631,7 +631,7 @@ Url du serveur non configurée.</translation> ...@@ -631,7 +631,7 @@ Url du serveur non configurée.</translation>
</message> </message>
<message> <message>
<source>randomSipTcpPortLabel</source> <source>randomSipTcpPortLabel</source>
<translation>Aléatoire</translation> <translation type="vanished">Aléatoire</translation>
</message> </message>
<message> <message>
<source>audioRtpUdpPortLabel</source> <source>audioRtpUdpPortLabel</source>
...@@ -639,11 +639,11 @@ Url du serveur non configurée.</translation> ...@@ -639,11 +639,11 @@ Url du serveur non configurée.</translation>
</message> </message>
<message> <message>
<source>randomAudioRtpUdpPortLabel</source> <source>randomAudioRtpUdpPortLabel</source>
<translation>Aléatoire</translation> <translation type="vanished">Aléatoire</translation>
</message> </message>
<message> <message>
<source>randomVideoRtpUdpPortLabel</source> <source>randomVideoRtpUdpPortLabel</source>
<translation>Aléatoire</translation> <translation type="vanished">Aléatoire</translation>
</message> </message>
<message> <message>
<source>videoRtpUdpPortLabel</source> <source>videoRtpUdpPortLabel</source>
......
...@@ -181,10 +181,11 @@ ...@@ -181,10 +181,11 @@
<file>ui/modules/Common/Form/ExclusiveButtons.qml</file> <file>ui/modules/Common/Form/ExclusiveButtons.qml</file>
<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/FormGroup.qml</file>
<file>ui/modules/Common/Form/FormLine.qml</file>
<file>ui/modules/Common/Form/Form.qml</file>
<file>ui/modules/Common/Form/ListForm.qml</file> <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/FormLine.qml</file>
<file>ui/modules/Common/Form/Placements/Form.qml</file>
<file>ui/modules/Common/Form/SmallButton.qml</file> <file>ui/modules/Common/Form/SmallButton.qml</file>
<file>ui/modules/Common/Form/StaticListForm.qml</file> <file>ui/modules/Common/Form/StaticListForm.qml</file>
<file>ui/modules/Common/Form/Switch.qml</file> <file>ui/modules/Common/Form/Switch.qml</file>
...@@ -221,10 +222,10 @@ ...@@ -221,10 +222,10 @@
<file>ui/modules/Common/Styles/Form/ExclusiveButtonsStyle.qml</file> <file>ui/modules/Common/Styles/Form/ExclusiveButtonsStyle.qml</file>
<file>ui/modules/Common/Styles/Form/Fields/NumericFieldStyle.qml</file> <file>ui/modules/Common/Styles/Form/Fields/NumericFieldStyle.qml</file>
<file>ui/modules/Common/Styles/Form/Fields/TextFieldStyle.qml</file> <file>ui/modules/Common/Styles/Form/Fields/TextFieldStyle.qml</file>
<file>ui/modules/Common/Styles/Form/FormGroupStyle.qml</file>
<file>ui/modules/Common/Styles/Form/FormLineStyle.qml</file>
<file>ui/modules/Common/Styles/Form/FormStyle.qml</file>
<file>ui/modules/Common/Styles/Form/ListFormStyle.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/FormLineStyle.qml</file>
<file>ui/modules/Common/Styles/Form/Placements/FormStyle.qml</file>
<file>ui/modules/Common/Styles/Form/SmallButtonStyle.qml</file> <file>ui/modules/Common/Styles/Form/SmallButtonStyle.qml</file>
<file>ui/modules/Common/Styles/Form/SwitchStyle.qml</file> <file>ui/modules/Common/Styles/Form/SwitchStyle.qml</file>
<file>ui/modules/Common/Styles/Form/Tab/TabButtonStyle.qml</file> <file>ui/modules/Common/Styles/Form/Tab/TabButtonStyle.qml</file>
......
import QtQuick 2.7
import QtQuick.Layouts 1.3
import Common.Styles 1.0
// =============================================================================
// Like a `FormGroup` but without label.
// =============================================================================
RowLayout {
default property alias _content: content.data
// ---------------------------------------------------------------------------
spacing: 0
width: FormGroupStyle.content.width
Item {
id: content
readonly property int currentHeight: _content[0] ? _content[0].height : 0
Layout.alignment: (
currentHeight < FormGroupStyle.legend.height ? Qt.AlignVCenter : Qt.AlignTop
) | Qt.AlignHCenter
Layout.preferredHeight: currentHeight
Layout.maximumWidth: FormGroupStyle.content.width
}
}
...@@ -31,13 +31,14 @@ RowLayout { ...@@ -31,13 +31,14 @@ RowLayout {
Item { Item {
id: content id: content
Layout.alignment: { readonly property int currentHeight: _content[0] ? _content[0].height : 0
var height = _content[0] ? _content[0].height : 0
return height < label.height ? Qt.AlignVCenter : Qt.AlignTop Layout.alignment: currentHeight < FormGroupStyle.legend.height
} ? Qt.AlignVCenter
: Qt.AlignTop
Layout.maximumWidth: FormGroupStyle.content.width Layout.maximumWidth: FormGroupStyle.content.width
Layout.preferredHeight: _content[0] ? _content[0].height : 0 Layout.preferredHeight: currentHeight
Layout.preferredWidth: FormGroupStyle.content.width Layout.preferredWidth: FormGroupStyle.content.width
} }
} }
...@@ -17,6 +17,10 @@ singleton ForceScrollBarStyle 1.0 ForceScrollBarStyle.qml ...@@ -17,6 +17,10 @@ singleton ForceScrollBarStyle 1.0 ForceScrollBarStyle.qml
singleton NumericFieldStyle 1.0 Form/Fields/NumericFieldStyle.qml singleton NumericFieldStyle 1.0 Form/Fields/NumericFieldStyle.qml
singleton TextFieldStyle 1.0 Form/Fields/TextFieldStyle.qml singleton TextFieldStyle 1.0 Form/Fields/TextFieldStyle.qml
singleton FormGroupStyle 1.0 Form/Placements/FormGroupStyle.qml
singleton FormLineStyle 1.0 Form/Placements/FormLineStyle.qml
singleton FormStyle 1.0 Form/Placements/FormStyle.qml
singleton TabButtonStyle 1.0 Form/Tab/TabButtonStyle.qml singleton TabButtonStyle 1.0 Form/Tab/TabButtonStyle.qml
singleton TabContainerStyle 1.0 Form/Tab/TabContainerStyle.qml singleton TabContainerStyle 1.0 Form/Tab/TabContainerStyle.qml
...@@ -24,9 +28,6 @@ singleton AbstractTextButtonStyle 1.0 Form/AbstractTextButtonStyle.qml ...@@ -24,9 +28,6 @@ singleton AbstractTextButtonStyle 1.0 Form/AbstractTextButtonStyle.qml
singleton ActionBarStyle 1.0 Form/ActionBarStyle.qml singleton ActionBarStyle 1.0 Form/ActionBarStyle.qml
singleton CheckBoxTextStyle 1.0 Form/CheckBoxTextStyle.qml singleton CheckBoxTextStyle 1.0 Form/CheckBoxTextStyle.qml
singleton ExclusiveButtonsStyle 1.0 Form/ExclusiveButtonsStyle.qml singleton ExclusiveButtonsStyle 1.0 Form/ExclusiveButtonsStyle.qml
singleton FormGroupStyle 1.0 Form/FormGroupStyle.qml
singleton FormLineStyle 1.0 Form/FormLineStyle.qml
singleton FormStyle 1.0 Form/FormStyle.qml
singleton ListFormStyle 1.0 Form/ListFormStyle.qml singleton ListFormStyle 1.0 Form/ListFormStyle.qml
singleton SmallButtonStyle 1.0 Form/SmallButtonStyle.qml singleton SmallButtonStyle 1.0 Form/SmallButtonStyle.qml
singleton SwitchStyle 1.0 Form/SwitchStyle.qml singleton SwitchStyle 1.0 Form/SwitchStyle.qml
......
...@@ -34,6 +34,11 @@ ForceScrollBar 1.0 ForceScrollBar.qml ...@@ -34,6 +34,11 @@ ForceScrollBar 1.0 ForceScrollBar.qml
NumericField 1.0 Form/Fields/NumericField.qml 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
FormEntry 1.0 Form/Placements/FormEntry.qml
FormGroup 1.0 Form/Placements/FormGroup.qml
FormLine 1.0 Form/Placements/FormLine.qml
TabBar 1.0 Form/Tab/TabBar.qml TabBar 1.0 Form/Tab/TabBar.qml
TabButton 1.0 Form/Tab/TabButton.qml TabButton 1.0 Form/Tab/TabButton.qml
TabContainer 1.0 Form/Tab/TabContainer.qml TabContainer 1.0 Form/Tab/TabContainer.qml
...@@ -43,9 +48,6 @@ ActionButton 1.0 Form/ActionButton.qml ...@@ -43,9 +48,6 @@ ActionButton 1.0 Form/ActionButton.qml
ActionSwitch 1.0 Form/ActionSwitch.qml ActionSwitch 1.0 Form/ActionSwitch.qml
CheckBoxText 1.0 Form/CheckBoxText.qml CheckBoxText 1.0 Form/CheckBoxText.qml
ExclusiveButtons 1.0 Form/ExclusiveButtons.qml ExclusiveButtons 1.0 Form/ExclusiveButtons.qml
Form 1.0 Form/Form.qml
FormGroup 1.0 Form/FormGroup.qml
FormLine 1.0 Form/FormLine.qml
LightButton 1.0 Form/LightButton.qml LightButton 1.0 Form/LightButton.qml
ListForm 1.0 Form/ListForm.qml ListForm 1.0 Form/ListForm.qml
StaticListForm 1.0 Form/StaticListForm.qml StaticListForm 1.0 Form/StaticListForm.qml
......
...@@ -67,9 +67,7 @@ TabContainer { ...@@ -67,9 +67,7 @@ TabContainer {
} }
} }
FormGroup { FormEntry {
label: qsTr('randomSipUdpPortLabel')
Switch { Switch {
id: randomSipUdpPort id: randomSipUdpPort
...@@ -77,8 +75,10 @@ TabContainer { ...@@ -77,8 +75,10 @@ TabContainer {
} }
} }
Switch { FormEntry {
id: enableSipUdpPort Switch {
id: enableSipUdpPort
}
} }
} }
...@@ -91,9 +91,7 @@ TabContainer { ...@@ -91,9 +91,7 @@ TabContainer {
} }
} }
FormGroup { FormEntry {
label: qsTr('randomSipTcpPortLabel')
Switch { Switch {
id: randomSipTcpPort id: randomSipTcpPort
...@@ -101,8 +99,10 @@ TabContainer { ...@@ -101,8 +99,10 @@ TabContainer {
} }
} }
Switch { FormEntry {
id: enableSipTcpPort Switch {
id: enableSipTcpPort
}
} }
} }
...@@ -115,9 +115,7 @@ TabContainer { ...@@ -115,9 +115,7 @@ TabContainer {
} }
} }
FormGroup { FormEntry {
label: qsTr('randomAudioRtpUdpPortLabel')
Switch { Switch {
id: randomAudioRtpUdpPort id: randomAudioRtpUdpPort
...@@ -125,8 +123,10 @@ TabContainer { ...@@ -125,8 +123,10 @@ TabContainer {
} }
} }
Switch { FormEntry {
id: enableAudioRtpUdpPort Switch {
id: enableAudioRtpUdpPort
}
} }
} }
...@@ -139,9 +139,7 @@ TabContainer { ...@@ -139,9 +139,7 @@ TabContainer {
} }
} }
FormGroup { FormEntry {
label: qsTr('randomVideoRtpUdpPortLabel')
Switch { Switch {
id: randomVideoRtpUdpPort id: randomVideoRtpUdpPort
...@@ -149,8 +147,10 @@ TabContainer { ...@@ -149,8 +147,10 @@ TabContainer {
} }
} }
Switch { FormEntry {
id: enableVideoRtpUdpPort Switch {
id: enableVideoRtpUdpPort
}
} }
} }
} }
...@@ -187,6 +187,8 @@ TabContainer { ...@@ -187,6 +187,8 @@ TabContainer {
Switch { Switch {
id: enableTurn id: enableTurn
enabled: enableIce.checked
} }
} }
...@@ -194,7 +196,7 @@ TabContainer { ...@@ -194,7 +196,7 @@ TabContainer {
label: qsTr('turnUserLabel') label: qsTr('turnUserLabel')
TextField { TextField {
readOnly: !enableTurn.checked readOnly: !enableTurn.checked || !enableTurn.enabled
} }
} }
} }
...@@ -209,7 +211,7 @@ TabContainer { ...@@ -209,7 +211,7 @@ TabContainer {
TextField { TextField {
echoMode: TextInput.Password echoMode: TextInput.Password
readOnly: !enableTurn.checked readOnly: !enableTurn.checked || !enableTurn.enabled
} }
} }
} }
......
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