source: tspsg-svn/trunk/ui/settingsdialog.ui @ 10

Last change on this file since 10 was 10, checked in by laleppa, 17 years ago

Now label hint (and Settings Dialog) aren't resized when text changes from one-line to two-line and vice versa.
This is a hack! Any better solution?

File size: 14.2 KB
Line 
1<ui version="4.0" >
2 <class>SettingsDialog</class>
3 <widget class="QWidget" name="SettingsDialog" >
4  <property name="geometry" >
5   <rect>
6    <x>0</x>
7    <y>0</y>
8    <width>436</width>
9    <height>172</height>
10   </rect>
11  </property>
12  <property name="windowTitle" >
13   <string>Параметры</string>
14  </property>
15  <property name="windowIcon" >
16   <iconset resource="../resources/tspsg.qrc" >:/images/Settings.png</iconset>
17  </property>
18  <layout class="QVBoxLayout" >
19   <property name="spacing" >
20    <number>0</number>
21   </property>
22   <property name="leftMargin" >
23    <number>0</number>
24   </property>
25   <property name="topMargin" >
26    <number>0</number>
27   </property>
28   <property name="rightMargin" >
29    <number>0</number>
30   </property>
31   <property name="bottomMargin" >
32    <number>0</number>
33   </property>
34   <item>
35    <layout class="QHBoxLayout" >
36     <property name="spacing" >
37      <number>0</number>
38     </property>
39     <item>
40      <widget class="QLabel" name="imageSide" >
41       <property name="minimumSize" >
42        <size>
43         <width>130</width>
44         <height>0</height>
45        </size>
46       </property>
47       <property name="styleSheet" >
48        <string>background-color: #0080C0</string>
49       </property>
50       <property name="frameShape" >
51        <enum>QFrame::StyledPanel</enum>
52       </property>
53       <property name="lineWidth" >
54        <number>0</number>
55       </property>
56       <property name="text" >
57        <string/>
58       </property>
59       <property name="pixmap" >
60        <pixmap resource="../resources/tspsg.qrc" >:/images/Settings.png</pixmap>
61       </property>
62       <property name="alignment" >
63        <set>Qt::AlignCenter</set>
64       </property>
65      </widget>
66     </item>
67     <item>
68      <widget class="Line" name="lineVertical" >
69       <property name="frameShadow" >
70        <enum>QFrame::Plain</enum>
71       </property>
72       <property name="lineWidth" >
73        <number>2</number>
74       </property>
75       <property name="orientation" >
76        <enum>Qt::Vertical</enum>
77       </property>
78      </widget>
79     </item>
80     <item>
81      <widget class="QWidget" native="1" name="background" >
82       <property name="palette" >
83        <palette>
84         <active>
85          <colorrole role="Base" >
86           <brush brushstyle="SolidPattern" >
87            <color alpha="255" >
88             <red>255</red>
89             <green>255</green>
90             <blue>255</blue>
91            </color>
92           </brush>
93          </colorrole>
94          <colorrole role="Window" >
95           <brush brushstyle="SolidPattern" >
96            <color alpha="255" >
97             <red>255</red>
98             <green>255</green>
99             <blue>255</blue>
100            </color>
101           </brush>
102          </colorrole>
103         </active>
104         <inactive>
105          <colorrole role="Base" >
106           <brush brushstyle="SolidPattern" >
107            <color alpha="255" >
108             <red>255</red>
109             <green>255</green>
110             <blue>255</blue>
111            </color>
112           </brush>
113          </colorrole>
114          <colorrole role="Window" >
115           <brush brushstyle="SolidPattern" >
116            <color alpha="255" >
117             <red>255</red>
118             <green>255</green>
119             <blue>255</blue>
120            </color>
121           </brush>
122          </colorrole>
123         </inactive>
124         <disabled>
125          <colorrole role="Base" >
126           <brush brushstyle="SolidPattern" >
127            <color alpha="255" >
128             <red>255</red>
129             <green>255</green>
130             <blue>255</blue>
131            </color>
132           </brush>
133          </colorrole>
134          <colorrole role="Window" >
135           <brush brushstyle="SolidPattern" >
136            <color alpha="255" >
137             <red>255</red>
138             <green>255</green>
139             <blue>255</blue>
140            </color>
141           </brush>
142          </colorrole>
143         </disabled>
144        </palette>
145       </property>
146       <property name="autoFillBackground" >
147        <bool>true</bool>
148       </property>
149       <layout class="QVBoxLayout" >
150        <item>
151         <layout class="QHBoxLayout" >
152          <property name="spacing" >
153           <number>6</number>
154          </property>
155          <item>
156           <widget class="QGroupBox" name="groupRandomSettings" >
157            <property name="title" >
158             <string>Случайные значения:</string>
159            </property>
160            <layout class="QVBoxLayout" >
161             <item>
162              <layout class="QHBoxLayout" >
163               <item>
164                <widget class="QLabel" name="labelRandMin" >
165                 <property name="sizePolicy" >
166                  <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
167                   <horstretch>0</horstretch>
168                   <verstretch>0</verstretch>
169                  </sizepolicy>
170                 </property>
171                 <property name="text" >
172                  <string>Ми&amp;нимум:</string>
173                 </property>
174                 <property name="buddy" >
175                  <cstring>spinRandMin</cstring>
176                 </property>
177                </widget>
178               </item>
179               <item>
180                <widget class="QSpinBox" name="spinRandMin" >
181                 <property name="cursor" >
182                  <cursorShape>PointingHandCursor</cursorShape>
183                 </property>
184                 <property name="statusTip" >
185                  <string>Нижняя граница для генерации случайных значений</string>
186                 </property>
187                 <property name="maximum" >
188                  <number>1000</number>
189                 </property>
190                 <property name="value" >
191                  <number>1</number>
192                 </property>
193                </widget>
194               </item>
195              </layout>
196             </item>
197             <item>
198              <layout class="QHBoxLayout" >
199               <item>
200                <widget class="QLabel" name="labelRandMax" >
201                 <property name="sizePolicy" >
202                  <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
203                   <horstretch>0</horstretch>
204                   <verstretch>0</verstretch>
205                  </sizepolicy>
206                 </property>
207                 <property name="text" >
208                  <string>&amp;Максимум:</string>
209                 </property>
210                 <property name="buddy" >
211                  <cstring>spinRandMax</cstring>
212                 </property>
213                </widget>
214               </item>
215               <item>
216                <widget class="QSpinBox" name="spinRandMax" >
217                 <property name="cursor" >
218                  <cursorShape>PointingHandCursor</cursorShape>
219                 </property>
220                 <property name="statusTip" >
221                  <string>Верхняя граница для генерации случайных значений</string>
222                 </property>
223                 <property name="minimum" >
224                  <number>1</number>
225                 </property>
226                 <property name="maximum" >
227                  <number>1000</number>
228                 </property>
229                 <property name="value" >
230                  <number>10</number>
231                 </property>
232                </widget>
233               </item>
234              </layout>
235             </item>
236            </layout>
237           </widget>
238          </item>
239          <item>
240           <widget class="QGroupBox" name="groupPrintSetup" >
241            <property name="title" >
242             <string>Настройки печати:</string>
243            </property>
244            <layout class="QVBoxLayout" >
245             <item>
246              <layout class="QHBoxLayout" >
247               <item>
248                <widget class="QLabel" name="labelLeftMargin" >
249                 <property name="text" >
250                  <string>&amp;Левый отступ:</string>
251                 </property>
252                 <property name="buddy" >
253                  <cstring>spinLeftMargin</cstring>
254                 </property>
255                </widget>
256               </item>
257               <item>
258                <widget class="QSpinBox" name="spinLeftMargin" >
259                 <property name="cursor" >
260                  <cursorShape>PointingHandCursor</cursorShape>
261                 </property>
262                 <property name="statusTip" >
263                  <string>Размер отступа от левого края страницы</string>
264                 </property>
265                 <property name="maximum" >
266                  <number>999</number>
267                 </property>
268                 <property name="singleStep" >
269                  <number>10</number>
270                 </property>
271                 <property name="value" >
272                  <number>100</number>
273                 </property>
274                </widget>
275               </item>
276              </layout>
277             </item>
278             <item>
279              <widget class="QPushButton" name="buttonFont" >
280               <property name="cursor" >
281                <cursorShape>PointingHandCursor</cursorShape>
282               </property>
283               <property name="statusTip" >
284                <string>Задать параметры шрифта, используемого при печати</string>
285               </property>
286               <property name="text" >
287                <string>&amp;Шрифт...</string>
288               </property>
289               <property name="icon" >
290                <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Font.png</iconset>
291               </property>
292              </widget>
293             </item>
294            </layout>
295           </widget>
296          </item>
297         </layout>
298        </item>
299        <item>
300         <widget class="QCheckBox" name="checkBox" >
301          <property name="cursor" >
302           <cursorShape>PointingHandCursor</cursorShape>
303          </property>
304          <property name="statusTip" >
305           <string>Восстанавливать состояние и размеры окна после перезапуска программы</string>
306          </property>
307          <property name="text" >
308           <string>Сохранять состояние и положение главного окна</string>
309          </property>
310         </widget>
311        </item>
312       </layout>
313      </widget>
314     </item>
315    </layout>
316   </item>
317   <item>
318    <widget class="Line" name="lineHorizontal" >
319     <property name="maximumSize" >
320      <size>
321       <width>16777215</width>
322       <height>2</height>
323      </size>
324     </property>
325     <property name="frameShadow" >
326      <enum>QFrame::Plain</enum>
327     </property>
328     <property name="lineWidth" >
329      <number>2</number>
330     </property>
331     <property name="orientation" >
332      <enum>Qt::Horizontal</enum>
333     </property>
334    </widget>
335   </item>
336   <item>
337    <layout class="QHBoxLayout" >
338     <property name="spacing" >
339      <number>6</number>
340     </property>
341     <property name="leftMargin" >
342      <number>6</number>
343     </property>
344     <property name="topMargin" >
345      <number>6</number>
346     </property>
347     <property name="rightMargin" >
348      <number>6</number>
349     </property>
350     <property name="bottomMargin" >
351      <number>6</number>
352     </property>
353     <item>
354      <widget class="QToolButton" name="toolButton" >
355       <property name="cursor" >
356        <cursorShape>PointingHandCursor</cursorShape>
357       </property>
358       <property name="toolTip" >
359        <string>Справка</string>
360       </property>
361       <property name="statusTip" >
362        <string>Получить помощь по настройкам</string>
363       </property>
364       <property name="text" >
365        <string>Помощь</string>
366       </property>
367       <property name="icon" >
368        <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Help.png</iconset>
369       </property>
370       <property name="autoRaise" >
371        <bool>true</bool>
372       </property>
373      </widget>
374     </item>
375     <item>
376      <widget class="QLabel" name="labelHint" >
377       <property name="sizePolicy" >
378        <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
379         <horstretch>0</horstretch>
380         <verstretch>0</verstretch>
381        </sizepolicy>
382       </property>
383       <property name="statusTip" >
384        <string>Наведите указатель мыши на элемент диалога, чтоб получить подсказку</string>
385       </property>
386       <property name="text" >
387        <string/>
388       </property>
389       <property name="textFormat" >
390        <enum>Qt::PlainText</enum>
391       </property>
392       <property name="alignment" >
393        <set>Qt::AlignJustify|Qt::AlignTop</set>
394       </property>
395       <property name="wordWrap" >
396        <bool>true</bool>
397       </property>
398      </widget>
399     </item>
400     <item>
401      <widget class="QPushButton" name="buttonOK" >
402       <property name="cursor" >
403        <cursorShape>PointingHandCursor</cursorShape>
404       </property>
405       <property name="statusTip" >
406        <string>Сохранить новые параметры</string>
407       </property>
408       <property name="text" >
409        <string>&amp;OK</string>
410       </property>
411       <property name="icon" >
412        <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/OK.png</iconset>
413       </property>
414       <property name="default" >
415        <bool>true</bool>
416       </property>
417      </widget>
418     </item>
419     <item>
420      <widget class="QPushButton" name="buttonCancel" >
421       <property name="cursor" >
422        <cursorShape>PointingHandCursor</cursorShape>
423       </property>
424       <property name="statusTip" >
425        <string>Закрыть окно без сохранения параметров</string>
426       </property>
427       <property name="text" >
428        <string>&amp;Отмена</string>
429       </property>
430       <property name="icon" >
431        <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Critical.png</iconset>
432       </property>
433      </widget>
434     </item>
435    </layout>
436   </item>
437  </layout>
438 </widget>
439 <resources>
440  <include location="../resources/tspsg.qrc" />
441 </resources>
442 <connections/>
443</ui>
Note: See TracBrowser for help on using the repository browser.