aboutsummaryrefslogtreecommitdiffstats
path: root/qml/fileencryption.qml
blob: a8791245dd6c54c7df1ff361f7e9fa9921b65eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import QtQuick 1.1

Rectangle {

    id: fileencryption

    signal okClicked
    signal fileChooserClicked

    property alias inputFilePath : inputFilePath.text
    property alias outputFilePath : outputFilePath.text
    property alias showNoKeySelected : noKeySelectInfo.visible

    width: 400
    height: 400

    Text {
        id: text3
        x: 21
        y: 16
        text: qsTr("Encrypt File")
        font.pixelSize: 12
    }

    Text {
        id: text1
        x: 56
        y: 65
        text: qsTr("Input:")
        font.pixelSize: 12
    }

    TextField {
        id: inputFilePath
        x: 146
        y: 65
        width: 150
        height: 28
    }

    Button {
        id: fileChooserButton
        x: 327
        y: 65
        text: "..."
        onClicked: {
            console.log("fc click")
            fileencryption.fileChooserClicked()
        }
    }

    Text {
        id: text2
        x: 56
        y: 104
        text: qsTr("Output:")
        font.pixelSize: 12
    }

    TextField {
        id: outputFilePath
        x: 146
        y: 104
        width: 150
        height: 28
    }

    Button {
        id: okButton
        x: 270
        y: 150
        width: 97
        height: 35
        text: qsTr("OK")
        onClicked: fileencryption.okClicked()
    }

    Rectangle {
        id: noKeySelectInfo
        x: 21
        y: 150
        width: 142
        height: 35
        color: "#ffffff"
        border.width: 2
        border.color: "#d95b1d"
        visible: false

        Text {
            id: text4
            x: 6
            y: -1
            text: qsTr("!")
            font.bold: true
            font.pointSize: 20
            font.pixelSize: 12
        }

        Text {
            id: text5
            x: 31
            y: 9
            text: qsTr("No Key Selected")
            font.pixelSize: 12
        }
    }


}