mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-28 09:19:19 +00:00
unstable
This commit is contained in:
parent
d59c34d291
commit
b8c168ace5
9 changed files with 135 additions and 85 deletions
|
|
@ -148,6 +148,7 @@
|
|||
<file>ui/views/App/ManageAccounts.qml</file>
|
||||
<file>ui/views/App/NewCall.qml</file>
|
||||
<file>ui/views/App/qmldir</file>
|
||||
<file>ui/views/App/Styles/Calls/CallsStyle.qml</file>
|
||||
<file>ui/views/App/Styles/MainWindow/ContactsStyle.qml</file>
|
||||
<file>ui/views/App/Styles/MainWindow/ConversationStyle.qml</file>
|
||||
<file>ui/views/App/Styles/MainWindow/MainWindowStyle.qml</file>
|
||||
|
|
|
|||
|
|
@ -5,14 +5,23 @@ import QtQuick.Controls 2.0
|
|||
import Linphone 1.0
|
||||
import Common 1.0
|
||||
|
||||
// ===================================================================
|
||||
|
||||
RowLayout {
|
||||
property string sipAddress
|
||||
|
||||
// TODO.
|
||||
property var contact: ContactsListModel.mapSipAddressToContact(
|
||||
sipAddress
|
||||
)
|
||||
|
||||
implicitHeight: contact.height
|
||||
spacing: 1
|
||||
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
color: '#434343'
|
||||
implicitHeight: contact.height
|
||||
implicitHeight: _contact.height
|
||||
|
||||
Contact {
|
||||
id: contact
|
||||
|
|
|
|||
1
tests/ui/modules/Linphone/Call/ConnectedCallsControl.qml
Normal file
1
tests/ui/modules/Linphone/Call/ConnectedCallsControl.qml
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
1
tests/ui/modules/Linphone/Call/IncomingCallControls.qml
Normal file
1
tests/ui/modules/Linphone/Call/IncomingCallControls.qml
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
1
tests/ui/modules/Linphone/Call/OutgoingCallControls.qml
Normal file
1
tests/ui/modules/Linphone/Call/OutgoingCallControls.qml
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
1
tests/ui/modules/Linphone/Call/PausedCallControls.qml
Normal file
1
tests/ui/modules/Linphone/Call/PausedCallControls.qml
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -1,11 +1,15 @@
|
|||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.0
|
||||
import QtQuick.Layouts 1.3
|
||||
import QtQuick.Window 2.2
|
||||
import QtQuick.Controls 2.0
|
||||
|
||||
import Common 1.0
|
||||
import Linphone 1.0
|
||||
|
||||
import App.Styles 1.0
|
||||
|
||||
// ===================================================================
|
||||
|
||||
Window {
|
||||
id: window
|
||||
|
||||
|
|
@ -18,7 +22,10 @@ Window {
|
|||
maximumLeftLimit: 300
|
||||
minimumLeftLimit: 150
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Calls list.
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
childA: ColumnLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
|
|
@ -53,91 +60,14 @@ Window {
|
|||
width: parent.width
|
||||
}
|
||||
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
} ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
} ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
} ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
} ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
} ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
}
|
||||
model: callsList
|
||||
}
|
||||
}
|
||||
|
||||
// Call / Chat.
|
||||
// ---------------------------------------------------------------
|
||||
// Content.
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
childB: Paned {
|
||||
anchors.fill: parent
|
||||
closingEdge: Qt.RightEdge
|
||||
|
|
@ -148,7 +78,7 @@ Window {
|
|||
resizeAInPriority: true
|
||||
|
||||
// Call.
|
||||
childA: StartingOutgoingCall {
|
||||
childA: Rectangle {
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
|
|
@ -158,4 +88,97 @@ Window {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
// TMP
|
||||
// -----------------------------------------------------------------
|
||||
|
||||
ListModel {
|
||||
id: callsList
|
||||
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'do_not_disturb'
|
||||
$sipAddress: 'charles.henri.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'disconnected'
|
||||
$sipAddress: 'yesyes.nono.sip.linphone.org'
|
||||
}
|
||||
ListElement {
|
||||
$presence: 'connected'
|
||||
$sipAddress: 'nsa.sip.linphone.org'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
11
tests/ui/views/App/Styles/Calls/CallsStyle.qml
Normal file
11
tests/ui/views/App/Styles/Calls/CallsStyle.qml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
pragma Singleton
|
||||
import QtQuick 2.7
|
||||
|
||||
import Common 1.0
|
||||
|
||||
// ===================================================================
|
||||
|
||||
QtObject {
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -4,6 +4,8 @@ module App.Styles
|
|||
|
||||
# Views styles -------------------------------------------------------
|
||||
|
||||
singleton CallsStyle 1.0 Calls/CallsStyle.qml
|
||||
|
||||
singleton ContactsStyle 1.0 MainWindow/ContactsStyle.qml
|
||||
singleton ConversationStyle 1.0 MainWindow/ConversationStyle.qml
|
||||
singleton MainWindowStyle 1.0 MainWindow/MainWindowStyle.qml
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue