mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-19 07:48:30 +00:00
- Wasapi : Use options to get human hearing quality, fix variables that weren't updated in case of different audio format, do not use MixFormat without having set fix parameters (16bits/PCM), fix channel mask, reset Audio Client in case of error. - Remove video button on incoming call that is audio only. - Come back to first tab when openning Settings. - Fix stream errors in audio settings when input and output have different definition by using a resampler. - Change design of secure icon on avatars (position).
166 lines
3.8 KiB
QML
166 lines
3.8 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.2
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
import Common.Styles 1.0
|
|
import Konami 1.0
|
|
import Linphone 1.0
|
|
|
|
import App.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
ApplicationWindow {
|
|
id: window
|
|
|
|
minimumHeight: SettingsWindowStyle.height
|
|
minimumWidth: SettingsWindowStyle.width
|
|
|
|
title: qsTr('settingsTitle')
|
|
|
|
onClosing: {
|
|
SettingsModel.settingsWindowClosing()
|
|
tabBar.setCurrentIndex(0)
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Shortcut {
|
|
sequence: StandardKey.Close
|
|
onActivated: window.hide()
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: SettingsWindowStyle.color
|
|
}
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
spacing: 0
|
|
|
|
// -------------------------------------------------------------------------
|
|
// Navigation bar.
|
|
// -------------------------------------------------------------------------
|
|
|
|
RowLayout {
|
|
Layout.fillWidth: true
|
|
spacing: 0
|
|
|
|
TabBar {
|
|
id: tabBar
|
|
|
|
onCurrentIndexChanged: SettingsModel.onSettingsTabChanged(currentIndex)
|
|
|
|
TabButton {
|
|
iconName: TabButtonStyle.icon.sipAccountsIcon
|
|
text: qsTr('sipAccountsTab')
|
|
width: implicitWidth
|
|
}
|
|
|
|
TabButton {
|
|
iconName: TabButtonStyle.icon.audioIcon
|
|
text: qsTr('audioTab')
|
|
width: implicitWidth
|
|
}
|
|
|
|
TabButton {
|
|
enabled: SettingsModel.videoSupported
|
|
iconName: TabButtonStyle.icon.videoIcon
|
|
text: qsTr('videoTab')
|
|
width: implicitWidth
|
|
}
|
|
|
|
TabButton {
|
|
iconName: TabButtonStyle.icon.callIcon
|
|
text: qsTr('callsAndChatTab')
|
|
width: implicitWidth
|
|
}
|
|
|
|
TabButton {
|
|
enabled: SettingsModel.showNetworkSettings || SettingsModel.developerSettingsEnabled
|
|
iconName: TabButtonStyle.icon.networkIcon
|
|
text: qsTr('networkTab')
|
|
width: implicitWidth
|
|
}
|
|
|
|
TabButton {
|
|
visible: SettingsModel.tunnelAvailable()
|
|
enabled: visible
|
|
iconName: TabButtonStyle.icon.sipAccountsIcon
|
|
//: 'Tunnel' : Tab title for tunnel section in settings.
|
|
text: qsTr('tunnelTab')
|
|
width: visible ? implicitWidth : 0
|
|
}
|
|
|
|
TabButton {
|
|
iconName: TabButtonStyle.icon.advancedIcon
|
|
text: qsTr('uiTab')
|
|
width: implicitWidth
|
|
}
|
|
|
|
TabButton {
|
|
iconName: TabButtonStyle.icon.advancedIcon
|
|
text: qsTr('uiAdvanced')
|
|
width: implicitWidth
|
|
}
|
|
}
|
|
|
|
Rectangle {
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: TabButtonStyle.text.height
|
|
|
|
color: TabButtonStyle.backgroundColor.normal
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
|
|
onClicked: konami.forceActiveFocus()
|
|
cursorShape: Qt.ArrowCursor
|
|
|
|
Konami {
|
|
id: konami
|
|
onTriggered: SettingsModel.developerSettingsEnabled = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// -------------------------------------------------------------------------
|
|
// Content.
|
|
// -------------------------------------------------------------------------
|
|
|
|
StackLayout {
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
|
|
currentIndex: tabBar.currentIndex
|
|
SettingsSipAccounts {}
|
|
SettingsAudio {}
|
|
SettingsVideo {}
|
|
SettingsCallsChat {}
|
|
SettingsNetwork {}
|
|
SettingsTunnel {}
|
|
SettingsUi {}
|
|
SettingsAdvanced {}
|
|
}
|
|
|
|
// -------------------------------------------------------------------------
|
|
// Buttons.
|
|
// -------------------------------------------------------------------------
|
|
|
|
TextButtonB {
|
|
Layout.alignment: Qt.AlignRight
|
|
Layout.topMargin: SettingsWindowStyle.validButton.topMargin
|
|
Layout.bottomMargin: SettingsWindowStyle.validButton.bottomMargin
|
|
Layout.rightMargin: SettingsWindowStyle.validButton.rightMargin
|
|
|
|
text: qsTr('validButton')
|
|
|
|
onClicked: window.close()
|
|
}
|
|
}
|
|
}
|