mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 18:39:23 +00:00
Move options button in waiting room because of readability. Add a confirmation before calling a group from conversation. Make an option to set RLS URI. Avoid to close smart search bar when changing focus. It will now close only on empty text, esc keybutton or by manually closing it (cross icon when text has been entered) Hide "adding contact" if search box is empty. Add a switch in accounts selection to easily register them. Update SDK to 5.2.81 # Conflicts: # linphone-app/src/components/search/SearchSipAddressesModel.cpp # linphone-sdk
132 lines
3.7 KiB
QML
132 lines
3.7 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
import Linphone 1.0
|
|
|
|
import UtilsCpp 1.0
|
|
|
|
import App.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Rectangle {
|
|
property var call
|
|
|
|
default property alias _actionArea: actionArea.data
|
|
property var _sipAddressObserver: SipAddressesModel.getSipAddressObserver(call.fullPeerAddress, call.fullLocalAddress)
|
|
property alias showKeypad :telKeypadButton.visible
|
|
|
|
Component.onDestruction: _sipAddressObserver=null// Need to set it to null because of not calling destructor if not.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
color: CallStyle.backgroundColor.color
|
|
|
|
ColumnLayout {
|
|
anchors {
|
|
fill: parent
|
|
topMargin: CallStyle.header.topMargin
|
|
}
|
|
|
|
spacing: 0
|
|
|
|
// -------------------------------------------------------------------------
|
|
// Contact & Call type (animation).
|
|
// -------------------------------------------------------------------------
|
|
|
|
Column {
|
|
Layout.fillWidth: true
|
|
spacing: CallStyle.header.spacing
|
|
|
|
ContactDescription {
|
|
id: contactDescription
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
height: CallStyle.header.contactDescription.height
|
|
horizontalTextAlignment: Text.AlignHCenter
|
|
subtitleText: UtilsCpp.toDisplayString(SipAddressesModel.cleanSipAddress(call.peerAddress), SettingsModel.sipDisplayMode)
|
|
titleText: _sipAddressObserver ? UtilsCpp.getDisplayName(_sipAddressObserver.peerAddress) : ''
|
|
width: contentWidth
|
|
}
|
|
|
|
BusyIndicator {
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
color: CallStyle.header.busyIndicator.colorModel.color
|
|
height: CallStyle.header.busyIndicator.height
|
|
width: CallStyle.header.busyIndicator.width
|
|
|
|
visible: call.isOutgoing
|
|
}
|
|
}
|
|
|
|
// -------------------------------------------------------------------------
|
|
// Contact visual.
|
|
// -------------------------------------------------------------------------
|
|
|
|
Item {
|
|
id: container
|
|
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
Layout.margins: CallStyle.container.margins
|
|
|
|
Avatar {
|
|
id: avatar
|
|
|
|
function _computeAvatarSize () {
|
|
var height = container.height
|
|
var width = container.width
|
|
|
|
var size = height < CallStyle.container.avatar.maxSize && height > 0
|
|
? height
|
|
: CallStyle.container.avatar.maxSize
|
|
return size < width ? size : width
|
|
}
|
|
|
|
anchors.centerIn: parent
|
|
backgroundColor: CallStyle.container.avatar.backgroundColor
|
|
image: _sipAddressObserver && _sipAddressObserver.contact && _sipAddressObserver.contact.vcard.avatar
|
|
username: contactDescription.username
|
|
|
|
height: _computeAvatarSize()
|
|
width: height
|
|
}
|
|
}
|
|
|
|
// -------------------------------------------------------------------------
|
|
// Buttons.
|
|
// -------------------------------------------------------------------------
|
|
|
|
Item {
|
|
id: actionArea
|
|
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: CallStyle.actionArea.height
|
|
}
|
|
}
|
|
|
|
ActionButton {
|
|
id:telKeypadButton
|
|
isCustom: true
|
|
backgroundRadius: 90
|
|
|
|
colorSet : CallStyle.buttons.telKeyad
|
|
visible:false
|
|
onClicked: telKeypad.visible = !telKeypad.visible
|
|
anchors.left:parent.left
|
|
anchors.top:parent.top
|
|
anchors.leftMargin: CallStyle.header.leftMargin
|
|
anchors.topMargin: CallStyle.header.topMargin
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// TelKeypad.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
TelKeypad {
|
|
id: telKeypad
|
|
showHistory:true
|
|
call: parent.call
|
|
visible: SettingsModel.showTelKeypadAutomatically
|
|
y: 50
|
|
}
|
|
}
|