main.qml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import QtQuick 2.12
  2. import QtQuick.Controls 2.5
  3. ApplicationWindow {
  4. id: window
  5. visible: true
  6. width: 1280
  7. height: 720
  8. maximumHeight: height
  9. maximumWidth: width
  10. minimumHeight: height
  11. minimumWidth: width
  12. title: qsTr("Covert Channel - Control Panel")
  13. SwipeView {
  14. id: swipeView
  15. anchors.fill: parent
  16. currentIndex: header.currentIndex
  17. SendingForm {
  18. }
  19. ReceivingForm {
  20. }
  21. MessagesForm {
  22. }
  23. SettingsForm {
  24. }
  25. HelpForm {
  26. }
  27. }
  28. header: TabBar {
  29. id: header
  30. currentIndex: swipeView.currentIndex
  31. contentHeight: 50
  32. TabButton {
  33. text: qsTr("Sending")
  34. }
  35. TabButton {
  36. text: qsTr("Receiving")
  37. }
  38. TabButton {
  39. text: qsTr("Messages")
  40. }
  41. TabButton {
  42. text: qsTr("Settings")
  43. }
  44. TabButton {
  45. text: qsTr("Help")
  46. }
  47. }
  48. footer: FooterForm {
  49. }
  50. LoginSignupPopup {
  51. id: loginSignupPopup
  52. x: Math.round((parent.width - width) / 2)
  53. y: Math.round((parent.height - height) / 2)
  54. }
  55. IpPopup {
  56. id: ipPopup
  57. x: Math.round((parent.width - width) / 2)
  58. y: Math.round((parent.height - height) / 2)
  59. onClosed: loginSignupPopup.open()
  60. }
  61. Component.onCompleted: {
  62. swipeView.interactive = false
  63. ipPopup.open()
  64. }
  65. }