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
|
|
|
|
|
2022-07-15 07:30:16 +00:00
|
|
|
import Status.Controls.Navigation
|
2022-05-31 21:26:41 +00:00
|
|
|
|
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-07-15 07:30:16 +00:00
|
|
|
NavigationBar {
|
2022-05-31 21:26:41 +00:00
|
|
|
id: navBar
|
|
|
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
2022-07-15 07:30:16 +00:00
|
|
|
sections: appSections.sections
|
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 {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
2022-07-15 07:30:16 +00:00
|
|
|
|
|
|
|
sourceComponent: navBar.currentSection
|
2022-05-31 21:26:41 +00:00
|
|
|
}
|
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
|
2022-05-10 20:10:34 +00:00
|
|
|
}
|
|
|
|
}
|