2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
2021-10-06 09:16:39 +00:00
|
|
|
|
|
|
|
import "stores"
|
|
|
|
import "popups"
|
|
|
|
import "views"
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2021-06-16 11:15:28 +00:00
|
|
|
import StatusQ.Layout 0.1
|
|
|
|
|
|
|
|
StatusAppTwoPanelLayout {
|
|
|
|
id: profileView
|
|
|
|
|
2021-12-09 13:28:02 +00:00
|
|
|
property RootStore store: RootStore { }
|
|
|
|
property var globalStore
|
|
|
|
property var systemPalette
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: _internal
|
|
|
|
readonly property int contentMaxWidth: 624
|
|
|
|
readonly property int contentMinWidth: 450
|
|
|
|
property int profileContentWidth: Math.max(contentMinWidth, Math.min(profileContainer.width * 0.8, contentMaxWidth))
|
|
|
|
}
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
leftPanel: LeftTabView {
|
2020-05-19 19:44:45 +00:00
|
|
|
id: leftTab
|
2021-10-06 09:16:39 +00:00
|
|
|
store: profileView.store
|
|
|
|
anchors.fill: parent
|
2020-05-19 19:44:45 +00:00
|
|
|
}
|
|
|
|
|
2021-06-16 11:15:28 +00:00
|
|
|
rightPanel: StackLayout {
|
|
|
|
id: profileContainer
|
2021-12-09 13:28:02 +00:00
|
|
|
|
2021-06-16 11:15:28 +00:00
|
|
|
anchors.fill: parent
|
2021-04-08 15:44:58 +00:00
|
|
|
|
2021-12-06 21:10:54 +00:00
|
|
|
currentIndex: Global.currentMenuTab
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-08-04 22:22:51 +00:00
|
|
|
onCurrentIndexChanged: {
|
|
|
|
if(visibleChildren[0] === ensContainer){
|
|
|
|
ensContainer.goToStart();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
MyProfileView {
|
|
|
|
store: profileView.store
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2021-06-16 11:15:28 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
ContactsView {
|
|
|
|
store: profileView.store
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
EnsView {
|
2020-08-04 22:22:51 +00:00
|
|
|
id: ensContainer
|
2021-10-06 09:16:39 +00:00
|
|
|
store: profileView.store
|
2021-10-01 15:58:36 +00:00
|
|
|
messageStore: profileView.globalStore.messageStore
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2020-08-04 22:22:51 +00:00
|
|
|
}
|
2020-07-21 21:03:22 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
PrivacyView {
|
|
|
|
store: profileView.store
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
AppearanceView {
|
|
|
|
store: profileView.store
|
2021-10-01 15:58:36 +00:00
|
|
|
globalStore: profileView.globalStore
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
|
|
|
systemPalette: profileView.systemPalette
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-07-03 16:54:27 +00:00
|
|
|
|
2021-12-09 13:28:02 +00:00
|
|
|
SoundsView {
|
|
|
|
profileContentWidth: _internal.profileContentWidth
|
|
|
|
}
|
2020-05-24 22:23:00 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
LanguageView {
|
|
|
|
store: profileView.store
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-05-24 22:23:00 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
NotificationsView {
|
2021-12-28 14:43:25 +00:00
|
|
|
notificationsStore: profileView.store.notificationsStore
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-05-24 22:23:00 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
SyncView {
|
2021-12-27 16:40:46 +00:00
|
|
|
syncStore: profileView.store.syncStore
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-07-21 21:03:22 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
DevicesView {
|
2021-12-27 11:04:10 +00:00
|
|
|
devicesStore: profileView.store.devicesStore
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-07-21 21:03:22 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
BrowserView {
|
|
|
|
store: profileView.store
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-10-21 14:45:28 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
AdvancedView {
|
2021-12-14 18:47:32 +00:00
|
|
|
advancedStore: profileView.store.advancedStore
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-05-24 22:23:00 +00:00
|
|
|
|
2021-12-09 13:28:02 +00:00
|
|
|
HelpView {
|
|
|
|
profileContentWidth: _internal.profileContentWidth
|
|
|
|
}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
AboutView {
|
|
|
|
store: profileView.store
|
2021-12-09 13:28:02 +00:00
|
|
|
profileContentWidth: _internal.profileContentWidth
|
2021-10-06 09:16:39 +00:00
|
|
|
}
|
2020-05-19 19:44:45 +00:00
|
|
|
}
|
|
|
|
}
|