forked from mivoligo/Zeegaree-Lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HelpTimer.qml
130 lines (98 loc) · 4 KB
/
HelpTimer.qml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/****************************************************************************
Copyright 2013-2014 Michał Prędotka
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
****************************************************************************/
import QtQuick 1.1
Item {
id: root
anchors.fill: parent
HelpInfo {
id: timer_analog_info
visible: timeranalog.visible
x: timeranalog.x + timeranalog.width + 24
y: timeranalog.y + timeranalog.height/2 - height/2
width: 180
helptext: "You can set the timer using this hands. You can grab them with your mouse and set as you like. Click the inside circle to reset the timer."
}
HelpInfoLine {
id: timer_analog_info_line
visible: timer_analog_info.visible
width: 12
x: timer_analog_info.x - width
y: timer_analog_info.y + timer_analog_info.height/2
}
HelpInfo {
id: timer_digital_info
x: timeranalog.visible ? timerdigital.x + timerdigital.width + 12 : timerdigital.x + (timerdigital.width - width)/2
y: timeranalog.visible ? timerdigital.y + timerdigital.height/2 - height/2 : timerdigital.y + timerdigital.height + 36
width: 180
helptext: "This clock shows remaining time in hours, minutes and seconds. When it's running, there's “Reset” button next to it."
}
HelpInfoLine {
id: timer_digital_info_line
width: timeranalog.visible ? 12 : 1
height: timeranalog.visible ? 1 : 30
x: timeranalog.visible ? timer_digital_info.x - width : timer_digital_info.x + timer_digital_info.width/2
y: timeranalog.visible ? timer_digital_info.y + timer_digital_info.height/2 : timer_digital_info.y - 30
}
HelpInfo {
id: timer_start_button_info
x: startbutton1.x + startbutton1.width + 18
y: startbutton1.y + startbutton1.height/2 - height/2
width: 180
helptext: "This is the Set/Start/Stop button."
}
HelpInfoLine {
id: timer_start_button_info_line
width: 12
x: timer_start_button_info.x - width
y: timer_start_button_info.y + timer_start_button_info.height/2
}
HelpInfo {
id: timer_fav_button_info
x: favs.x
y: toolbarbottom1.y - height - timer_settings_button_info.height - 24
width: 180
helptext: "This is the Fav button. After you click it, you'll see the side panel in which you can manage your favorites timers."
}
HelpInfoLine {
id: timer_fav_button_info_line
height: timer_settings_button_info.height + 30
x: timer_fav_button_info.x + 12
y: timer_fav_button_info.y + timer_fav_button_info.height
}
HelpInfo {
id: timer_settings_button_info
x: settings.x
y: toolbarbottom1.y - height - 12
width: 180
helptext: "This is the Settings button. When you click it, side panel with settings will appear."
}
HelpInfoLine {
id: timer_settings_button_info_line
height: 18
x: timer_settings_button_info.x + 12
y: timer_settings_button_info.y + timer_settings_button_info.height
}
HelpInfo {
id: timer_back_button_info
x: closebutton1.x - width - 18
y: closebutton1.y
width: 180
helptext: qsTr("This button will get you back to the main view of the app.")
}
HelpInfoLine {
id: timer_back_button_info_line
width: 12
x: timer_back_button_info.x + timer_back_button_info.width
y: timer_back_button_info.y + 14
}
}