From 9a3aa8e338768a0b9e76241a768a8e12352dc2ec Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 7 Mar 2017 10:08:16 +0100 Subject: [PATCH] feat(ui/views/App/Assistant/AssistantUseOtherSipAccount): view done --- linphone-desktop/assets/languages/en.ts | 31 +++++++++ linphone-desktop/assets/languages/fr.ts | 31 +++++++++ linphone-desktop/resources.qrc | 1 + .../Common/Form/Placements/FormVGroup.qml | 7 +- .../Assistant/AssistantUseOtherSipAccount.qml | 69 +++++++++++++++++++ 5 files changed, 133 insertions(+), 6 deletions(-) create mode 100644 linphone-desktop/ui/views/App/Assistant/AssistantUseOtherSipAccount.qml diff --git a/linphone-desktop/assets/languages/en.ts b/linphone-desktop/assets/languages/en.ts index 5b60b341f..c281e0ac4 100644 --- a/linphone-desktop/assets/languages/en.ts +++ b/linphone-desktop/assets/languages/en.ts @@ -77,6 +77,37 @@ This assistant will help you to configure and use your linphone account. + + AssistantUseOtherSipAccount + + confirmAction + LOGIN + + + useOtherSipAccountTitle + USE A SIP ACCOUNT + + + usernameLabel + Username + + + displayNameLabel + Display name (optional) + + + sipDomainLabel + SIP Domain + + + passwordLabel + Password + + + transportLabel + Transport + + AssistantWindow diff --git a/linphone-desktop/assets/languages/fr.ts b/linphone-desktop/assets/languages/fr.ts index 215733320..6b5e1ad74 100644 --- a/linphone-desktop/assets/languages/fr.ts +++ b/linphone-desktop/assets/languages/fr.ts @@ -77,6 +77,37 @@ Cet assistant va vous aider à configurer et utiliser votre compte SIP. + + AssistantUseOtherSipAccount + + confirmAction + CONNEXION + + + useOtherSipAccountTitle + UTILISER UN COMPTE SIP + + + usernameLabel + Nom d'utilisateur + + + displayNameLabel + Nom d'affichage (optionnel) + + + sipDomainLabel + Domaine SIP + + + passwordLabel + Mot de passe + + + transportLabel + Transport + + AssistantWindow diff --git a/linphone-desktop/resources.qrc b/linphone-desktop/resources.qrc index 82e820340..87c168e93 100644 --- a/linphone-desktop/resources.qrc +++ b/linphone-desktop/resources.qrc @@ -312,6 +312,7 @@ ui/views/App/Assistant/AssistantAbstractView.qml ui/views/App/Assistant/AssistantFetchRemoteConfiguration.qml ui/views/App/Assistant/AssistantHome.qml + ui/views/App/Assistant/AssistantUseOtherSipAccount.qml ui/views/App/AssistantWindow.qml ui/views/App/Calls/AbstractStartingCall.qml ui/views/App/Calls/CallsWindow.qml diff --git a/linphone-desktop/ui/modules/Common/Form/Placements/FormVGroup.qml b/linphone-desktop/ui/modules/Common/Form/Placements/FormVGroup.qml index 793139b5c..27c8bcdf1 100644 --- a/linphone-desktop/ui/modules/Common/Form/Placements/FormVGroup.qml +++ b/linphone-desktop/ui/modules/Common/Form/Placements/FormVGroup.qml @@ -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 } diff --git a/linphone-desktop/ui/views/App/Assistant/AssistantUseOtherSipAccount.qml b/linphone-desktop/ui/views/App/Assistant/AssistantUseOtherSipAccount.qml new file mode 100644 index 000000000..4e385b154 --- /dev/null +++ b/linphone-desktop/ui/views/App/Assistant/AssistantUseOtherSipAccount.qml @@ -0,0 +1,69 @@ +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' ] + } + } + } + } +}