blob: aebaa6daa895f007dc6051b8c98b93bf51877592 (
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
110
111
112
113
|
import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Extras 1.4
import QtQuick.Controls 2.3
Window {
width: 400
height: 125
// Make window not resizeable
maximumHeight: height
maximumWidth: width
// Make window not resizeable
minimumHeight: height
minimumWidth: width
id: window
visible: true
opacity: 1
title: qsTr("Remote Support for your Desktop")
Text {
id: dbus_api_status_text
y: 89
text: qsTr("Unknown state of service")
font.family: "Verdana"
anchors.bottom: parent.bottom
anchors.bottomMargin: 5
anchors.left: parent.left
anchors.leftMargin: 5
font.pixelSize: 12
}
StatusIndicator {
id: dbus_api_status_indicator
y: 110
width: 15
height: 15
color: "#73d216"
anchors.bottom: dbus_api_status_text.bottom
anchors.bottomMargin: 0
anchors.left: dbus_api_status_text.right
anchors.leftMargin: 5
visible: true
active: false
}
DelayButton {
id: start_support_button
x: 5
width: 350
height: 30
text: qsTr("Allow remote desktop support")
anchors.top: pin_text.bottom
anchors.topMargin: 5
anchors.horizontalCenterOffset: 0
anchors.horizontalCenter: pin_text.horizontalCenter
wheelEnabled: false
font.wordSpacing: 0
spacing: 0
font.weight: Font.Normal
antialiasing: false
font.bold: true
font.family: "Verdana"
checkable: true
autoRepeat: true
autoExclusive: false
display: AbstractButton.TextBesideIcon
checked: false
}
Text {
id: your_pin_text
width: 210
height: 15
text: qsTr("Access pin to this computer")
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenterOffset: 0
anchors.horizontalCenter: parent.horizontalCenter
clip: false
anchors.top: parent.top
anchors.topMargin: 15
font.family: "Verdana"
fontSizeMode: Text.Fit
font.pixelSize: 16
}
Text {
objectName: "pin_text"
id: pin_text
x: 235
width: 210
height: 28
// ':' translation info
//: Do not translate!
//: The supporter needs to authenticate in the remote web app (django) frontend with this pin
text: qsTr("%1").arg(pin)
property string pin: "-----"
font.letterSpacing: 10
anchors.horizontalCenterOffset: 0
font.pixelSize: 26
anchors.horizontalCenter: your_pin_text.horizontalCenter
anchors.top: your_pin_text.bottom
anchors.topMargin: 5
font.family: "Verdana"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
fontSizeMode: Text.Fit
}
}
|