mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-02 12:19:23 +00:00
feat(ui/views/App/Assistant/AssistantUseOtherSipAccount): view done
This commit is contained in:
parent
2542504129
commit
9a3aa8e338
5 changed files with 133 additions and 6 deletions
|
|
@ -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'utilisateur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>displayNameLabel</source>
|
||||
<translation>Nom d'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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue