2019-07-21 13:34:42 +03:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.12
|
|
|
|
import QtQuick.Layouts 1.12
|
|
|
|
import QtQml.Models 2.12
|
|
|
|
import QtQuick.Window 2.12
|
|
|
|
import QtQuick.Controls.Material 2.12
|
|
|
|
import Qt.labs.settings 1.0
|
2019-07-31 01:32:47 +03:00
|
|
|
import "modules/"
|
2019-07-21 13:34:42 +03:00
|
|
|
|
|
|
|
Window {
|
|
|
|
id: window
|
|
|
|
visible: true
|
2019-08-23 12:07:31 +03:00
|
|
|
width: 800
|
2019-07-21 13:34:42 +03:00
|
|
|
height: 480
|
2019-08-23 12:07:31 +03:00
|
|
|
|
|
|
|
minimumWidth: 640
|
|
|
|
minimumHeight: 480
|
2019-07-21 13:34:42 +03:00
|
|
|
title: qsTr("Qt-Secret-GUI")
|
|
|
|
|
2019-07-31 01:32:47 +03:00
|
|
|
Connections {
|
|
|
|
target: appCore
|
|
|
|
onQmlClosePopup: loadPopup.close()
|
|
|
|
onQmlOpenPopup: loadPopup.open()
|
|
|
|
}
|
|
|
|
|
2019-07-21 13:34:42 +03:00
|
|
|
SwipeView {
|
|
|
|
id: swipeView
|
|
|
|
anchors.fill: parent
|
|
|
|
currentIndex: tabBar.currentIndex
|
|
|
|
|
2019-07-24 20:53:55 +03:00
|
|
|
anchors.topMargin: tabBar.height + 20
|
2019-07-29 19:36:37 +03:00
|
|
|
anchors.bottomMargin: 15
|
2019-07-23 03:55:17 +03:00
|
|
|
|
2019-07-21 19:45:29 +03:00
|
|
|
KeysGeneratePage {}
|
2019-07-21 13:34:42 +03:00
|
|
|
|
2019-07-21 19:45:29 +03:00
|
|
|
EncryptDecryptPage {}
|
2019-07-21 13:34:42 +03:00
|
|
|
|
2019-07-21 19:45:29 +03:00
|
|
|
DigitalSignaturePage {}
|
2019-07-21 13:34:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
TabBar {
|
|
|
|
id: tabBar
|
|
|
|
width: parent.width
|
|
|
|
currentIndex: swipeView.currentIndex
|
|
|
|
|
|
|
|
TabButton {
|
2019-07-29 19:36:37 +03:00
|
|
|
text: qsTr("Keys generate")
|
2019-07-21 13:34:42 +03:00
|
|
|
}
|
|
|
|
TabButton {
|
2019-07-29 19:36:37 +03:00
|
|
|
text: qsTr("Encryption and decryption")
|
2019-07-21 13:34:42 +03:00
|
|
|
}
|
|
|
|
TabButton {
|
2019-07-29 19:36:37 +03:00
|
|
|
text: qsTr("Digital signature")
|
2019-07-21 13:34:42 +03:00
|
|
|
}
|
|
|
|
}
|
2019-07-31 01:32:47 +03:00
|
|
|
|
|
|
|
LoadPopup { id: loadPopup }
|
|
|
|
|
2019-07-21 13:34:42 +03:00
|
|
|
}
|