Commit 4939fadd authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Calls/ConferenceManager): in progress

parent ec112a8e
...@@ -405,6 +405,7 @@ ...@@ -405,6 +405,7 @@
<file>ui/views/App/Styles/Calls/CallStyle.qml</file> <file>ui/views/App/Styles/Calls/CallStyle.qml</file>
<file>ui/views/App/Styles/Calls/CallsWindowStyle.qml</file> <file>ui/views/App/Styles/Calls/CallsWindowStyle.qml</file>
<file>ui/views/App/Styles/Calls/ConferenceManagerStyle.qml</file> <file>ui/views/App/Styles/Calls/ConferenceManagerStyle.qml</file>
<file>ui/views/App/Styles/Calls/ConferenceStyle.qml</file>
<file>ui/views/App/Styles/Main/AboutStyle.qml</file> <file>ui/views/App/Styles/Main/AboutStyle.qml</file>
<file>ui/views/App/Styles/Main/Assistant/ActivateLinphoneSipAccountWithEmailStyle.qml</file> <file>ui/views/App/Styles/Main/Assistant/ActivateLinphoneSipAccountWithEmailStyle.qml</file>
<file>ui/views/App/Styles/Main/Assistant/AssistantAbstractViewStyle.qml</file> <file>ui/views/App/Styles/Main/Assistant/AssistantAbstractViewStyle.qml</file>
......
...@@ -33,7 +33,7 @@ Rectangle { ...@@ -33,7 +33,7 @@ Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
Layout.leftMargin: CallStyle.header.leftMargin Layout.leftMargin: CallStyle.header.leftMargin
Layout.rightMargin: CallStyle.header.rightMargin Layout.rightMargin: CallStyle.header.rightMargin
Layout.preferredHeight: CallStyle.header.conferenceDescription.height Layout.preferredHeight: ConferenceStyle.description.height
ActionBar { ActionBar {
id: leftActions id: leftActions
...@@ -49,15 +49,15 @@ Rectangle { ...@@ -49,15 +49,15 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
text: qsTr('conferenceTitle') text: qsTr('conferenceTitle')
color: CallStyle.header.conferenceDescription.color color: ConferenceStyle.description.color
font { font {
bold: true bold: true
pointSize: CallStyle.header.conferenceDescription.fontSize pointSize: ConferenceStyle.description.fontSize
} }
height: parent.height height: parent.height
width: parent.width - rightActions.width - leftActions.width - CallStyle.header.conferenceDescription.width width: parent.width - rightActions.width - leftActions.width - ConferenceStyle.description.width
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
...@@ -93,31 +93,38 @@ Rectangle { ...@@ -93,31 +93,38 @@ Rectangle {
Layout.fillHeight: true Layout.fillHeight: true
Layout.margins: CallStyle.container.margins Layout.margins: CallStyle.container.margins
GridView { GridView {
id: grid id: grid
anchors.fill: parent anchors.fill: parent
cellHeight: 145 cellHeight: ConferenceStyle.grid.cell.height
cellWidth: 154 cellWidth: ConferenceStyle.grid.cell.width
model: ConferenceModel { model: ConferenceModel {
id: conference id: conference
} }
delegate: ColumnLayout { delegate: Item {
height: grid.cellHeight
width: grid.cellWidth
Column {
readonly property string sipAddress: $call.sipAddress readonly property string sipAddress: $call.sipAddress
readonly property var sipAddressObserver: SipAddressesModel.getSipAddressObserver(sipAddress) readonly property var sipAddressObserver: SipAddressesModel.getSipAddressObserver(sipAddress)
height: grid.cellHeight anchors {
width: grid.cellWidth fill: parent
margins: ConferenceStyle.grid.spacing
}
spacing: ConferenceStyle.grid.cell.spacing
ContactDescription { ContactDescription {
id: contactDescription id: contactDescription
Layout.preferredHeight: 35 height: ConferenceStyle.grid.cell.contactDescription.height
Layout.fillWidth: true width: parent.width
horizontalTextAlignment: Text.AlignHCenter horizontalTextAlignment: Text.AlignHCenter
sipAddress: parent.sipAddressObserver.sipAddress sipAddress: parent.sipAddressObserver.sipAddress
...@@ -125,19 +132,31 @@ Rectangle { ...@@ -125,19 +132,31 @@ Rectangle {
} }
Avatar { Avatar {
height: parent.width readonly property int size: Math.min(parent.width, parent.height - contactDescription.height - parent.spacing)
width: parent.width
anchors.horizontalCenter: parent.horizontalCenter
height: size
width: size
backgroundColor: CallStyle.container.avatar.backgroundColor backgroundColor: CallStyle.container.avatar.backgroundColor
foregroundColor: incall.call.status === CallModel.CallStatusPaused foregroundColor: $call.status === CallModel.CallStatusPaused
? CallStyle.container.pause.color ? CallStyle.container.pause.color
: 'transparent' : 'transparent'
image: parent.sipAddressObserver.contact && parent.sipAddressObserver.contact.vcard.avatar
image: {
var contact = parent.sipAddressObserver.contact
if (contact) {
return contact.vcard.avatar
}
}
username: contactDescription.username username: contactDescription.username
} }
} }
} }
} }
}
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// Action Buttons. // Action Buttons.
...@@ -155,32 +174,6 @@ Rectangle { ...@@ -155,32 +174,6 @@ Rectangle {
} }
spacing: ActionBarStyle.spacing spacing: ActionBarStyle.spacing
Row {
spacing: CallStyle.actionArea.vu.spacing
VuMeter {
Timer {
interval: 50
repeat: true
running: micro.enabled
onTriggered: parent.value = conference.microVu
}
enabled: micro.enabled
}
ActionSwitch {
id: micro
enabled: !conference.microMuted
icon: 'micro'
iconSize: CallStyle.actionArea.iconSize
onClicked: conference.microMuted = enabled
}
}
} }
ActionBar { ActionBar {
......
...@@ -66,13 +66,6 @@ QtObject { ...@@ -66,13 +66,6 @@ QtObject {
property int width: 150 property int width: 150
} }
property QtObject conferenceDescription: QtObject {
property color color: Colors.x
property int fontSize: 12
property int height: 60
property int width: 150
}
property QtObject elapsedTime: QtObject { property QtObject elapsedTime: QtObject {
property color color: Colors.j property color color: Colors.j
property int fontSize: 10 property int fontSize: 10
......
pragma Singleton
import QtQuick 2.7
import Common 1.0
// =============================================================================
QtObject {
property QtObject description: QtObject {
property color color: Colors.x
property int fontSize: 12
property int height: 60
property int width: 150
}
property QtObject grid: QtObject {
property int spacing: 5
property QtObject cell: QtObject {
property int height: 145
property int spacing: 5
property int width: 154
property QtObject contactDescription: QtObject {
property int height: 35
}
}
}
}
...@@ -7,6 +7,7 @@ module App.Styles ...@@ -7,6 +7,7 @@ module App.Styles
singleton CallStyle 1.0 Calls/CallStyle.qml singleton CallStyle 1.0 Calls/CallStyle.qml
singleton CallsWindowStyle 1.0 Calls/CallsWindowStyle.qml singleton CallsWindowStyle 1.0 Calls/CallsWindowStyle.qml
singleton ConferenceManagerStyle 1.0 Calls/ConferenceManagerStyle.qml singleton ConferenceManagerStyle 1.0 Calls/ConferenceManagerStyle.qml
singleton ConferenceStyle 1.0 Calls/ConferenceStyle.qml
singleton ActivateLinphoneSipAccountWithEmailStyle 1.0 Main/Assistant/ActivateLinphoneSipAccountWithEmailStyle.qml singleton ActivateLinphoneSipAccountWithEmailStyle 1.0 Main/Assistant/ActivateLinphoneSipAccountWithEmailStyle.qml
singleton AssistantAbstractViewStyle 1.0 Main/Assistant/AssistantAbstractViewStyle.qml singleton AssistantAbstractViewStyle 1.0 Main/Assistant/AssistantAbstractViewStyle.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