main.qml 1.6 KB

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