64 lines
1.2 KiB
QML
Raw Normal View History

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
import "modules/"
2019-07-21 13:34:42 +03:00
2022-05-17 09:37:21 +03:00
ApplicationWindow {
2019-07-21 13:34:42 +03:00
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")
Connections {
target: appCore
function onQmlClosePopup() {
loadPopup.close()
}
function onQmlOpenPopup() {
loadPopup.open()
}
}
2019-07-21 13:34:42 +03:00
SwipeView {
id: swipeView
anchors.fill: parent
currentIndex: tabBar.currentIndex
anchors.topMargin: tabBar.height + 20
anchors.bottomMargin: 15
2019-07-23 03:55:17 +03:00
KeysGeneratePage {}
2019-07-21 13:34:42 +03:00
EncryptDecryptPage {}
2019-07-21 13:34:42 +03:00
DigitalSignaturePage {}
2019-07-21 13:34:42 +03:00
}
TabBar {
id: tabBar
width: parent.width
currentIndex: swipeView.currentIndex
TabButton {
text: qsTr("Keys generate")
2019-07-21 13:34:42 +03:00
}
TabButton {
text: qsTr("Encryption and decryption")
2019-07-21 13:34:42 +03:00
}
TabButton {
text: qsTr("Digital signature")
2019-07-21 13:34:42 +03:00
}
}
LoadPopup { id: loadPopup }
2019-07-21 13:34:42 +03:00
}