12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import QtQuick 2.12
- import QtQuick.Controls 2.5
- ApplicationWindow {
- id: window
- visible: true
- width: 1280
- height: 720
- title: qsTr("Covert Channel - Control Panel")
- Connections {
- target: _qmlHandler
- onSettingsOpenSwitchServerPopup: {
- switchDialog.open()
- }
- }
- SwipeView {
- id: swipeView
- anchors.fill: parent
- currentIndex: header.currentIndex
- SendingForm {
- }
- ReceivingForm {
- }
- MessagesForm {
- }
- SettingsForm {
- }
- HelpForm {
- }
- }
- header: TabBar {
- id: header
- currentIndex: swipeView.currentIndex
- contentHeight: 50
- TabButton {
- text: qsTr("Sending")
- }
- TabButton {
- text: qsTr("Receiving")
- }
- TabButton {
- text: qsTr("Messages")
- }
- TabButton {
- text: qsTr("Settings")
- }
- TabButton {
- text: qsTr("Help")
- }
- }
- footer: FooterForm {
- }
- LoginSignupPopup {
- id: loginSignupPopup
- x: Math.round((parent.width - width) / 2)
- y: Math.round((parent.height - height) / 2)
- }
- IpPopup {
- id: ipPopup
- x: Math.round((parent.width - width) / 2)
- y: Math.round((parent.height - height) / 2)
- onClosed: loginSignupPopup.open()
- }
- Component.onCompleted: {
- swipeView.interactive = false
- ipPopup.open()
- }
- }
|