forked from lxqt/lxqt-panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlxqtworldclockconfigurationmanualformat.ui
190 lines (190 loc) · 9.79 KB
/
lxqtworldclockconfigurationmanualformat.ui
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>LXQtWorldClockConfigurationManualFormat</class>
<widget class="QDialog" name="LXQtWorldClockConfigurationManualFormat">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>500</height>
</rect>
</property>
<property name="windowTitle">
<string>World Clock Time Zones</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="0,0">
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QPlainTextEdit" name="manualFormatPTE">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
</widget>
<widget class="QScrollArea" name="scrollArea">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>100</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>766</width>
<height>1050</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="helpL">
<property name="text">
<string><h1>Custom Date/Time Format Syntax</h1>
<p>A date pattern is a string of characters, where specific strings of characters are replaced with date and time data from a calendar when formatting or used to generate data for a calendar when parsing.</p>
<p>The Date Field Symbol Table below contains the characters used in patterns to show the appropriate formats for a given locale, such as yyyy for the year. Characters may be used multiple times. For example, if y is used for the year, 'yy' might produce '99', whereas 'yyyy' produces '1999'. For most numerical fields, the number of characters specifies the field width. For example, if h is the hour, 'h' might produce '5', but 'hh' produces '05'. For some characters, the count specifies whether an abbreviated or full form should be used, but may have other choices, as given below.</p>
<p>Two single quotes represents a literal single quote, either inside or outside single quotes. Text within single quotes is not interpreted in any way (except for two adjacent single quotes). Otherwise all ASCII letter from a to z and A to Z are reserved as syntax characters, and require quoting if they are to represent literal characters. In addition, certain ASCII punctuation characters may become variable in the future (eg ":" being interpreted as the time separator and '/' as a date separator, and replaced by respective locale-sensitive characters in display).<br /></p>
<table border="1" width="100%" cellpadding="4" cellspacing="0">
<tr><th width="20%">Code</th><th>Meaning</th></tr>
<tr><td>d</td><td>the day as number without a leading zero (1 to 31)</td></tr>
<tr><td>dd</td><td>the day as number with a leading zero (01 to 31)</td></tr>
<tr><td>ddd</td><td>the abbreviated localized day name (e.g. 'Mon' to 'Sun').</td></tr>
<tr><td>dddd</td><td>the long localized day name (e.g. 'Monday' to 'Sunday</td></tr>
<tr><td>M</td><td>the month as number without a leading zero (1-12)</td></tr>
<tr><td>MM</td><td>the month as number with a leading zero (01-12)</td></tr>
<tr><td>MMM</td><td>the abbreviated localized month name (e.g. 'Jan' to 'Dec').</td></tr>
<tr><td>MMMM</td><td>the long localized month name (e.g. 'January' to 'December').</td></tr>
<tr><td>yy</td><td>the year as two digit number (00-99)</td></tr>
<tr><td>yyyy</td><td>the year as four digit number</td></tr>
<tr><td>h</td><td>the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)</td></tr>
<tr><td>hh</td><td>the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)</td></tr>
<tr><td>H</td><td>the hour without a leading zero (0 to 23, even with AM/PM display)</td></tr>
<tr><td>HH</td><td>the hour with a leading zero (00 to 23, even with AM/PM display)</td></tr>
<tr><td>m</td><td>the minute without a leading zero (0 to 59)</td></tr>
<tr><td>mm</td><td>the minute with a leading zero (00 to 59)</td></tr>
<tr><td>s</td><td>the second without a leading zero (0 to 59)</td></tr>
<tr><td>ss</td><td>the second with a leading zero (00 to 59)</td></tr>
<tr><td>z</td><td>the milliseconds without leading zeroes (0 to 999)</td></tr>
<tr><td>zzz</td><td>the milliseconds with leading zeroes (000 to 999)</td></tr>
<tr><td>AP <i>or</i> A</td><td>use AM/PM display. <b>A/AP</b> will be replaced by either "AM" or "PM".<</td></tr>
<tr><td>ap <i>or</i> a</td><td>use am/pm display. <b>a/ap</b> will be replaced by either "am" or "pm".<</td></tr>
<tr><td>t</td><td>the timezone (for example "CEST")</td></tr>
<tr><td>T</td><td>the offset from UTC</td></tr>
<tr><td>TT</td><td>the timezone IANA id</td></tr>
<tr><td>TTT</td><td>the timezone abbreviation</td></tr>
<tr><td>TTTT</td><td>the timezone short display name</td></tr>
<tr><td>TTTTT</td><td>the timezone long display name</td></tr>
<tr><td>TTTTTT</td><td>the timezone custom name. You can change it the 'Time zones' tab of the configuration window</td></tr></table>
<br /><b>Notes:</b> <ul><li>Any characters in the pattern that are not in the ranges of ['a'..'z'] and ['A'..'Z'] will be treated as quoted text. For instance, characters like ':', '.', ' ', '#' and '@' will appear in the resulting time text even they are not enclosed within single quotes.The single quote is used to 'escape' letters. Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.</li><li>Minimal update interval is 1 second. If z or zzz is configured time is shown with the milliseconds fraction, but not updated on millisecond basis (avoiding big performance hit).</li><ul>
</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttons">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>manualFormatPTE</tabstop>
<tabstop>scrollArea</tabstop>
<tabstop>buttons</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttons</sender>
<signal>accepted()</signal>
<receiver>LXQtWorldClockConfigurationManualFormat</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>95</x>
<y>490</y>
</hint>
<hint type="destinationlabel">
<x>97</x>
<y>253</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttons</sender>
<signal>rejected()</signal>
<receiver>LXQtWorldClockConfigurationManualFormat</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>76</x>
<y>490</y>
</hint>
<hint type="destinationlabel">
<x>62</x>
<y>253</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<signal>maximumNetSpeedChanged(QString)</signal>
<slot>on_typeCOB_currentIndexChanged(int)</slot>
<slot>on_sourceCOB_currentIndexChanged(int)</slot>
<slot>on_maximumHS_valueChanged(int)</slot>
<slot>saveSettings()</slot>
</slots>
</ui>