2022-05-10 20:10:34 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Layouts
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
2022-05-31 21:26:41 +00:00
|
|
|
import Status.Application
|
|
|
|
|
|
|
|
import Status.Containers
|
|
|
|
import Status.Controls
|
|
|
|
|
|
|
|
import Status.Application.Navigation
|
|
|
|
|
2022-05-10 20:10:34 +00:00
|
|
|
/// Responsible for setup of user workflows after onboarding
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
2022-05-31 21:26:41 +00:00
|
|
|
required property ApplicationController appController
|
|
|
|
|
|
|
|
/// Emitted when everything is loaded and UX ready
|
2022-05-10 20:10:34 +00:00
|
|
|
signal ready()
|
|
|
|
|
|
|
|
Component.onCompleted: root.ready()
|
|
|
|
|
|
|
|
implicitWidth: mainLayout.implicitWidth
|
|
|
|
implicitHeight: mainLayout.implicitHeight
|
|
|
|
|
2022-05-31 21:26:41 +00:00
|
|
|
RowLayout {
|
2022-05-10 20:10:34 +00:00
|
|
|
id: mainLayout
|
|
|
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
2022-05-31 21:26:41 +00:00
|
|
|
StatusNavigationBar {
|
|
|
|
id: navBar
|
|
|
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
|
|
|
sections: appSections.sectionsList
|
2022-05-10 20:10:34 +00:00
|
|
|
}
|
2022-05-31 21:26:41 +00:00
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
// Not visible all the time
|
|
|
|
StatusBanner {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
//statusText: // TODO: appController.bannerController.text
|
|
|
|
//type: // TODO: appController.bannerController.type
|
|
|
|
visible: false // TODO: appController.bannerController.visible
|
|
|
|
}
|
|
|
|
Loader {
|
|
|
|
id: mainLoader
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
2022-05-10 20:10:34 +00:00
|
|
|
}
|
2022-05-31 21:26:41 +00:00
|
|
|
}
|
2022-05-10 20:10:34 +00:00
|
|
|
|
2022-05-31 21:26:41 +00:00
|
|
|
StatusApplicationSections {
|
|
|
|
id: appSections
|
|
|
|
// Chat ...
|
|
|
|
// Wallet ...
|
2022-05-10 20:10:34 +00:00
|
|
|
}
|
|
|
|
}
|