Commit 9a3aa8e3 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Assistant/AssistantUseOtherSipAccount): view done

parent 25425041
......@@ -77,6 +77,37 @@
<translation>This assistant will help you to configure and use your linphone account.</translation>
</message>
</context>
<context>
<name>AssistantUseOtherSipAccount</name>
<message>
<source>confirmAction</source>
<translation>LOGIN</translation>
</message>
<message>
<source>useOtherSipAccountTitle</source>
<translation>USE A SIP ACCOUNT</translation>
</message>
<message>
<source>usernameLabel</source>
<translation>Username</translation>
</message>
<message>
<source>displayNameLabel</source>
<translation>Display name (optional)</translation>
</message>
<message>
<source>sipDomainLabel</source>
<translation>SIP Domain</translation>
</message>
<message>
<source>passwordLabel</source>
<translation>Password</translation>
</message>
<message>
<source>transportLabel</source>
<translation>Transport</translation>
</message>
</context>
<context>
<name>AssistantWindow</name>
<message>
......
......@@ -77,6 +77,37 @@
<translation>Cet assistant va vous aider à configurer et utiliser votre compte SIP.</translation>
</message>
</context>
<context>
<name>AssistantUseOtherSipAccount</name>
<message>
<source>confirmAction</source>
<translation>CONNEXION</translation>
</message>
<message>
<source>useOtherSipAccountTitle</source>
<translation>UTILISER UN COMPTE SIP</translation>
</message>
<message>
<source>usernameLabel</source>
<translation>Nom d&apos;utilisateur</translation>
</message>
<message>
<source>displayNameLabel</source>
<translation>Nom d&apos;affichage (optionnel)</translation>
</message>
<message>
<source>sipDomainLabel</source>
<translation>Domaine SIP</translation>
</message>
<message>
<source>passwordLabel</source>
<translation>Mot de passe</translation>
</message>
<message>
<source>transportLabel</source>
<translation>Transport</translation>
</message>
</context>
<context>
<name>AssistantWindow</name>
<message>
......
......@@ -312,6 +312,7 @@
<file>ui/views/App/Assistant/AssistantAbstractView.qml</file>
<file>ui/views/App/Assistant/AssistantFetchRemoteConfiguration.qml</file>
<file>ui/views/App/Assistant/AssistantHome.qml</file>
<file>ui/views/App/Assistant/AssistantUseOtherSipAccount.qml</file>
<file>ui/views/App/AssistantWindow.qml</file>
<file>ui/views/App/Calls/AbstractStartingCall.qml</file>
<file>ui/views/App/Calls/CallsWindow.qml</file>
......
......@@ -24,12 +24,7 @@ ColumnLayout {
color: FormVGroupStyle.legend.color
elide: Text.ElideRight
font {
bold: true
pointSize: FormVGroupStyle.legend.fontSize
}
font.pointSize: FormVGroupStyle.legend.fontSize
verticalAlignment: Text.AlignVCenter
}
......
import Common 1.0
// =============================================================================
AssistantAbstractView {
mainAction: (function () {
console.log('TODO')
})
mainActionEnabled: username.text.length &&
sipDomain.text.length &&
password.text.length
mainActionLabel: qsTr('confirmAction')
Form {
anchors.fill: parent
orientation: Qt.Vertical
title: qsTr('useOtherSipAccountTitle')
FormLine {
FormGroup {
label: qsTr('usernameLabel')
TextField {
id: username
}
}
}
FormLine {
FormGroup {
label: qsTr('displayNameLabel')
TextField {}
}
}
FormLine {
FormGroup {
label: qsTr('sipDomainLabel')
TextField {
id: sipDomain
}
}
}
FormLine {
FormGroup {
label: qsTr('passwordLabel')
TextField {
id: password
}
}
}
FormLine {
FormGroup {
label: qsTr('transportLabel')
ExclusiveButtons {
texts: [ 'UDP', 'TCP', 'TLS' ]
}
}
}
}
}
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