main.qml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. font.capitalization: Font.MixedCase
  11. minimumHeight: height
  12. minimumWidth: width
  13. title: qsTr("Covert Channel - Control Panel")
  14. SwipeView {
  15. id: swipeView
  16. anchors.fill: parent
  17. currentIndex: header.currentIndex
  18. SendingForm {
  19. }
  20. ReceivingForm {
  21. }
  22. MessagesForm {
  23. }
  24. SettingsForm {
  25. }
  26. HelpForm {
  27. }
  28. }
  29. header: TabBar {
  30. id: header
  31. currentIndex: swipeView.currentIndex
  32. contentHeight: 50
  33. TabButton {
  34. text: qsTr("Sending")
  35. }
  36. TabButton {
  37. text: qsTr("Receiving")
  38. }
  39. TabButton {
  40. text: qsTr("Messages")
  41. }
  42. TabButton {
  43. text: qsTr("Settings")
  44. }
  45. TabButton {
  46. text: qsTr("Help")
  47. }
  48. }
  49. footer: FooterForm {
  50. }
  51. LoginSignupPopup {
  52. id: loginSignupPopup
  53. }
  54. IpPopup {
  55. id: ipPopup
  56. onClosed: loginSignupPopup.open()
  57. }
  58. Component.onCompleted: {
  59. swipeView.interactive = false
  60. ipPopup.open()
  61. }
  62. }