|
@@ -8,50 +8,67 @@ ApplicationWindow {
|
|
|
height: 720
|
|
|
title: qsTr("Covert Channel - Control Panel")
|
|
|
|
|
|
- header: ToolBar {
|
|
|
- contentHeight: 50
|
|
|
+ SwipeView {
|
|
|
+ id: swipeView
|
|
|
+ anchors.fill: parent
|
|
|
+ currentIndex: header.currentIndex
|
|
|
+
|
|
|
+ SendingForm {
|
|
|
|
|
|
- ToolButton {
|
|
|
- id: toolButton
|
|
|
- text: stackView.depth > 1 ? "\u25C0" : "\u2630"
|
|
|
- font.pixelSize: Qt.application.font.pixelSize * 1.6
|
|
|
- onClicked: {
|
|
|
- if (stackView.depth > 1) {
|
|
|
- stackView.pop()
|
|
|
- } else {
|
|
|
- drawer.open()
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
- Label {
|
|
|
- text: stackView.currentItem.title
|
|
|
- anchors.centerIn: parent
|
|
|
+ ReceivingForm {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ MessagesForm {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ SettingsForm {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ HelpForm {
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- Drawer {
|
|
|
- id: drawer
|
|
|
- width: window.width * 0.66
|
|
|
- height: 50
|
|
|
+ header: TabBar {
|
|
|
+ id: header
|
|
|
+ currentIndex: swipeView.currentIndex
|
|
|
+ contentHeight: 50
|
|
|
+
|
|
|
+ TabButton {
|
|
|
+ text: qsTr("Sending")
|
|
|
+ }
|
|
|
|
|
|
- Column {
|
|
|
- anchors.fill: parent
|
|
|
+ TabButton {
|
|
|
+ text: qsTr("Receiving")
|
|
|
+ }
|
|
|
|
|
|
- ItemDelegate {
|
|
|
- text: qsTr("Receiving")
|
|
|
- width: parent.width
|
|
|
- onClicked: {
|
|
|
- stackView.push("ReceivingForm.ui.qml")
|
|
|
- drawer.close()
|
|
|
- }
|
|
|
- }
|
|
|
+ TabButton {
|
|
|
+ text: qsTr("Messages")
|
|
|
+ }
|
|
|
+
|
|
|
+ TabButton {
|
|
|
+ text: qsTr("Settings")
|
|
|
+ }
|
|
|
+
|
|
|
+ TabButton {
|
|
|
+ text: qsTr("Help")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- StackView {
|
|
|
- id: stackView
|
|
|
- initialItem: "SendingForm.ui.qml"
|
|
|
- anchors.fill: parent
|
|
|
+ footer: FooterForm {
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
+ IpPopupForm {
|
|
|
+ id: ipDialog
|
|
|
+ x: Math.round((parent.width - width) / 2)
|
|
|
+ y: Math.round((parent.height - height) / 2)
|
|
|
+ }
|
|
|
+
|
|
|
+ Component.onCompleted: ipDialog.open()
|
|
|
}
|