Commit b8c168ac authored by Ronan Abhamon's avatar Ronan Abhamon

unstable

parent d59c34d2
...@@ -148,6 +148,7 @@ ...@@ -148,6 +148,7 @@
<file>ui/views/App/ManageAccounts.qml</file> <file>ui/views/App/ManageAccounts.qml</file>
<file>ui/views/App/NewCall.qml</file> <file>ui/views/App/NewCall.qml</file>
<file>ui/views/App/qmldir</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/ContactsStyle.qml</file>
<file>ui/views/App/Styles/MainWindow/ConversationStyle.qml</file> <file>ui/views/App/Styles/MainWindow/ConversationStyle.qml</file>
<file>ui/views/App/Styles/MainWindow/MainWindowStyle.qml</file> <file>ui/views/App/Styles/MainWindow/MainWindowStyle.qml</file>
......
...@@ -5,14 +5,23 @@ import QtQuick.Controls 2.0 ...@@ -5,14 +5,23 @@ import QtQuick.Controls 2.0
import Linphone 1.0 import Linphone 1.0
import Common 1.0 import Common 1.0
// ===================================================================
RowLayout { RowLayout {
property string sipAddress
// TODO.
property var contact: ContactsListModel.mapSipAddressToContact(
sipAddress
)
implicitHeight: contact.height implicitHeight: contact.height
spacing: 1 spacing: 1
Rectangle { Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
color: '#434343' color: '#434343'
implicitHeight: contact.height implicitHeight: _contact.height
Contact { Contact {
id: contact id: contact
......
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import QtQuick.Window 2.2 import QtQuick.Window 2.2
import QtQuick.Controls 2.0
import Common 1.0 import Common 1.0
import Linphone 1.0 import Linphone 1.0
import App.Styles 1.0
// ===================================================================
Window { Window {
id: window id: window
...@@ -18,7 +22,10 @@ Window { ...@@ -18,7 +22,10 @@ Window {
maximumLeftLimit: 300 maximumLeftLimit: 300
minimumLeftLimit: 150 minimumLeftLimit: 150
// ---------------------------------------------------------------
// Calls list. // Calls list.
// ---------------------------------------------------------------
childA: ColumnLayout { childA: ColumnLayout {
anchors.fill: parent anchors.fill: parent
spacing: 0 spacing: 0
...@@ -53,91 +60,14 @@ Window { ...@@ -53,91 +60,14 @@ Window {
width: parent.width width: parent.width
} }
model: ListModel { model: 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'
}
}
} }
} }
// Call / Chat. // ---------------------------------------------------------------
// Content.
// ---------------------------------------------------------------
childB: Paned { childB: Paned {
anchors.fill: parent anchors.fill: parent
closingEdge: Qt.RightEdge closingEdge: Qt.RightEdge
...@@ -148,7 +78,7 @@ Window { ...@@ -148,7 +78,7 @@ Window {
resizeAInPriority: true resizeAInPriority: true
// Call. // Call.
childA: StartingOutgoingCall { childA: Rectangle {
anchors.fill: parent anchors.fill: parent
} }
...@@ -158,4 +88,97 @@ Window { ...@@ -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'
}
}
} }
pragma Singleton
import QtQuick 2.7
import Common 1.0
// ===================================================================
QtObject {
}
...@@ -4,6 +4,8 @@ module App.Styles ...@@ -4,6 +4,8 @@ module App.Styles
# Views styles ------------------------------------------------------- # Views styles -------------------------------------------------------
singleton CallsStyle 1.0 Calls/CallsStyle.qml
singleton ContactsStyle 1.0 MainWindow/ContactsStyle.qml singleton ContactsStyle 1.0 MainWindow/ContactsStyle.qml
singleton ConversationStyle 1.0 MainWindow/ConversationStyle.qml singleton ConversationStyle 1.0 MainWindow/ConversationStyle.qml
singleton MainWindowStyle 1.0 MainWindow/MainWindowStyle.qml singleton MainWindowStyle 1.0 MainWindow/MainWindowStyle.qml
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