]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/ui/BoxUi.ui
GuiBox.cpp: fix update of height checkbox
[lyx.git] / src / frontends / qt4 / ui / BoxUi.ui
1 <ui version="4.0" >
2  <class>BoxUi</class>
3  <widget class="QDialog" name="BoxUi" >
4   <property name="geometry" >
5    <rect>
6     <x>0</x>
7     <y>0</y>
8     <width>348</width>
9     <height>256</height>
10    </rect>
11   </property>
12   <property name="windowTitle" >
13    <string/>
14   </property>
15   <property name="sizeGripEnabled" >
16    <bool>true</bool>
17   </property>
18   <widget class="QWidget" name="layoutWidget_1" >
19    <property name="geometry" >
20     <rect>
21      <x>10</x>
22      <y>220</y>
23      <width>328</width>
24      <height>27</height>
25     </rect>
26    </property>
27    <layout class="QHBoxLayout" >
28     <property name="margin" >
29      <number>0</number>
30     </property>
31     <property name="spacing" >
32      <number>6</number>
33     </property>
34     <item>
35      <widget class="QPushButton" name="restorePB" >
36       <property name="toolTip" >
37        <string/>
38       </property>
39       <property name="text" >
40        <string>&amp;Restore</string>
41       </property>
42       <property name="autoDefault" >
43        <bool>false</bool>
44       </property>
45       <property name="default" >
46        <bool>false</bool>
47       </property>
48      </widget>
49     </item>
50     <item>
51      <spacer>
52       <property name="orientation" >
53        <enum>Qt::Horizontal</enum>
54       </property>
55       <property name="sizeType" >
56        <enum>QSizePolicy::Expanding</enum>
57       </property>
58       <property name="sizeHint" >
59        <size>
60         <width>20</width>
61         <height>20</height>
62        </size>
63       </property>
64      </spacer>
65     </item>
66     <item>
67      <widget class="QPushButton" name="okPB" >
68       <property name="toolTip" >
69        <string/>
70       </property>
71       <property name="text" >
72        <string>&amp;OK</string>
73       </property>
74       <property name="default" >
75        <bool>true</bool>
76       </property>
77      </widget>
78     </item>
79     <item>
80      <widget class="QPushButton" name="applyPB" >
81       <property name="toolTip" >
82        <string/>
83       </property>
84       <property name="text" >
85        <string>&amp;Apply</string>
86       </property>
87       <property name="autoDefault" >
88        <bool>false</bool>
89       </property>
90       <property name="default" >
91        <bool>false</bool>
92       </property>
93      </widget>
94     </item>
95     <item>
96      <widget class="QPushButton" name="closePB" >
97       <property name="text" >
98        <string>&amp;Close</string>
99       </property>
100       <property name="autoDefault" >
101        <bool>false</bool>
102       </property>
103       <property name="default" >
104        <bool>false</bool>
105       </property>
106      </widget>
107     </item>
108    </layout>
109   </widget>
110   <widget class="QWidget" name="layoutWidget_2" >
111    <property name="geometry" >
112     <rect>
113      <x>10</x>
114      <y>80</y>
115      <width>321</width>
116      <height>24</height>
117     </rect>
118    </property>
119    <layout class="QHBoxLayout" >
120     <property name="margin" >
121      <number>1</number>
122     </property>
123     <property name="spacing" >
124      <number>6</number>
125     </property>
126     <item>
127      <widget class="QCheckBox" name="heightCB" >
128       <property name="toolTip" >
129        <string/>
130       </property>
131       <property name="text" >
132        <string>&amp;Height (optional):</string>
133       </property>
134       <property name="checked" >
135        <bool>false</bool>
136       </property>
137       <property name="tristate" >
138        <bool>false</bool>
139       </property>
140      </widget>
141     </item>
142     <item>
143      <widget class="QLineEdit" name="heightED" >
144       <property name="enabled" >
145        <bool>false</bool>
146       </property>
147       <property name="sizePolicy" >
148        <sizepolicy>
149         <hsizetype>1</hsizetype>
150         <vsizetype>0</vsizetype>
151         <horstretch>0</horstretch>
152         <verstretch>0</verstretch>
153        </sizepolicy>
154       </property>
155       <property name="toolTip" >
156        <string>Height value</string>
157       </property>
158      </widget>
159     </item>
160     <item>
161      <widget class="LengthCombo" name="heightUnitsLC" >
162       <property name="enabled" >
163        <bool>false</bool>
164       </property>
165      </widget>
166     </item>
167    </layout>
168   </widget>
169   <widget class="QWidget" name="layoutWidget_3" >
170    <property name="geometry" >
171     <rect>
172      <x>10</x>
173      <y>10</y>
174      <width>321</width>
175      <height>70</height>
176     </rect>
177    </property>
178    <layout class="QGridLayout" >
179     <property name="margin" >
180      <number>0</number>
181     </property>
182     <property name="spacing" >
183      <number>6</number>
184     </property>
185     <item row="2" column="1" >
186      <widget class="QLineEdit" name="widthED" >
187       <property name="sizePolicy" >
188        <sizepolicy>
189         <hsizetype>1</hsizetype>
190         <vsizetype>0</vsizetype>
191         <horstretch>0</horstretch>
192         <verstretch>0</verstretch>
193        </sizepolicy>
194       </property>
195       <property name="toolTip" >
196        <string>Width value</string>
197       </property>
198      </widget>
199     </item>
200     <item row="0" column="1" colspan="2" >
201      <widget class="QComboBox" name="typeCO" >
202       <property name="toolTip" >
203        <string>Supported box types</string>
204       </property>
205      </widget>
206     </item>
207     <item row="1" column="0" >
208      <widget class="QLabel" name="innerBoxLA" >
209       <property name="toolTip" >
210        <string/>
211       </property>
212       <property name="text" >
213        <string>Inner Bo&amp;x:</string>
214       </property>
215       <property name="buddy" >
216        <cstring>innerBoxCO</cstring>
217       </property>
218      </widget>
219     </item>
220     <item row="2" column="2" >
221      <widget class="LengthCombo" name="widthUnitsLC" />
222     </item>
223     <item row="0" column="0" >
224      <widget class="QLabel" name="typeLA" >
225       <property name="toolTip" >
226        <string/>
227       </property>
228       <property name="text" >
229        <string>&amp;Decoration:</string>
230       </property>
231       <property name="buddy" >
232        <cstring>typeCO</cstring>
233       </property>
234      </widget>
235     </item>
236     <item row="2" column="0" >
237      <widget class="QLabel" name="widthLA" >
238       <property name="toolTip" >
239        <string/>
240       </property>
241       <property name="text" >
242        <string>&amp;Width:</string>
243       </property>
244       <property name="buddy" >
245        <cstring>widthED</cstring>
246       </property>
247      </widget>
248     </item>
249     <item row="1" column="1" colspan="2" >
250      <widget class="QComboBox" name="innerBoxCO" >
251       <property name="toolTip" >
252        <string>Inner box -- needed for fixed width &amp; line breaks</string>
253       </property>
254       <item>
255        <property name="text" >
256         <string>None</string>
257        </property>
258       </item>
259       <item>
260        <property name="text" >
261         <string>Parbox</string>
262        </property>
263       </item>
264       <item>
265        <property name="text" >
266         <string>Minipage</string>
267        </property>
268       </item>
269      </widget>
270     </item>
271    </layout>
272   </widget>
273   <widget class="QGroupBox" name="groupBox_2" >
274    <property name="geometry" >
275     <rect>
276      <x>10</x>
277      <y>110</y>
278      <width>321</width>
279      <height>104</height>
280     </rect>
281    </property>
282    <property name="title" >
283     <string>Alignment</string>
284    </property>
285    <layout class="QGridLayout" >
286     <property name="margin" >
287      <number>9</number>
288     </property>
289     <property name="spacing" >
290      <number>6</number>
291     </property>
292     <item row="1" column="2" >
293      <widget class="QComboBox" name="halignCO" >
294       <property name="toolTip" >
295        <string>Horizontal alignment of the content inside the box</string>
296       </property>
297       <item>
298        <property name="text" >
299         <string>Left</string>
300        </property>
301       </item>
302       <item>
303        <property name="text" >
304         <string>Center</string>
305        </property>
306       </item>
307       <item>
308        <property name="text" >
309         <string>Right</string>
310        </property>
311       </item>
312       <item>
313        <property name="text" >
314         <string>Stretch</string>
315        </property>
316       </item>
317      </widget>
318     </item>
319     <item row="0" column="2" >
320      <widget class="QLabel" name="halignLA" >
321       <property name="toolTip" >
322        <string>Horizontal alignment of the content inside the box</string>
323       </property>
324       <property name="text" >
325        <string>Horizontal</string>
326       </property>
327      </widget>
328     </item>
329     <item row="2" column="1" >
330      <widget class="QComboBox" name="valignCO" >
331       <property name="toolTip" >
332        <string>Vertical alignment of the box (with regard to baseline)</string>
333       </property>
334       <item>
335        <property name="text" >
336         <string>Top</string>
337        </property>
338       </item>
339       <item>
340        <property name="text" >
341         <string>Middle</string>
342        </property>
343       </item>
344       <item>
345        <property name="text" >
346         <string>Bottom</string>
347        </property>
348       </item>
349      </widget>
350     </item>
351     <item row="2" column="0" >
352      <widget class="QLabel" name="valignLA" >
353       <property name="toolTip" >
354        <string>Vertical alignment of the box (with regard to baseline)</string>
355       </property>
356       <property name="text" >
357        <string>&amp;Box:</string>
358       </property>
359       <property name="buddy" >
360        <cstring>valignCO</cstring>
361       </property>
362      </widget>
363     </item>
364     <item row="1" column="0" >
365      <widget class="QLabel" name="label" >
366       <property name="text" >
367        <string>Co&amp;ntent:</string>
368       </property>
369       <property name="buddy" >
370        <cstring>ialignCO</cstring>
371       </property>
372      </widget>
373     </item>
374     <item row="1" column="1" >
375      <widget class="QComboBox" name="ialignCO" >
376       <property name="toolTip" >
377        <string>Vertical alignment of the content inside the box</string>
378       </property>
379       <item>
380        <property name="text" >
381         <string>Top</string>
382        </property>
383       </item>
384       <item>
385        <property name="text" >
386         <string>Middle</string>
387        </property>
388       </item>
389       <item>
390        <property name="text" >
391         <string>Bottom</string>
392        </property>
393       </item>
394       <item>
395        <property name="text" >
396         <string>Stretch</string>
397        </property>
398       </item>
399      </widget>
400     </item>
401     <item row="0" column="1" >
402      <widget class="QLabel" name="ialignLA" >
403       <property name="toolTip" >
404        <string>Vertical alignment of the content inside the box</string>
405       </property>
406       <property name="text" >
407        <string>Vertical</string>
408       </property>
409      </widget>
410     </item>
411    </layout>
412   </widget>
413  </widget>
414  <customwidgets>
415   <customwidget>
416    <class>LengthCombo</class>
417    <extends>QComboBox</extends>
418    <header>LengthCombo.h</header>
419   </customwidget>
420  </customwidgets>
421  <tabstops>
422   <tabstop>typeCO</tabstop>
423   <tabstop>innerBoxCO</tabstop>
424   <tabstop>widthED</tabstop>
425   <tabstop>widthUnitsLC</tabstop>
426   <tabstop>heightCB</tabstop>
427   <tabstop>heightED</tabstop>
428   <tabstop>heightUnitsLC</tabstop>
429   <tabstop>ialignCO</tabstop>
430   <tabstop>halignCO</tabstop>
431   <tabstop>valignCO</tabstop>
432   <tabstop>restorePB</tabstop>
433   <tabstop>okPB</tabstop>
434   <tabstop>closePB</tabstop>
435   <tabstop>applyPB</tabstop>
436  </tabstops>
437  <includes>
438   <include location="local" >qt_helpers.h</include>
439  </includes>
440  <resources/>
441  <connections>
442   <connection>
443    <sender>heightCB</sender>
444    <signal>toggled(bool)</signal>
445    <receiver>heightED</receiver>
446    <slot>setEnabled(bool)</slot>
447    <hints>
448     <hint type="sourcelabel" >
449      <x>75</x>
450      <y>83</y>
451     </hint>
452     <hint type="destinationlabel" >
453      <x>171</x>
454      <y>83</y>
455     </hint>
456    </hints>
457   </connection>
458   <connection>
459    <sender>heightCB</sender>
460    <signal>toggled(bool)</signal>
461    <receiver>heightUnitsLC</receiver>
462    <slot>setEnabled(bool)</slot>
463    <hints>
464     <hint type="sourcelabel" >
465      <x>86</x>
466      <y>100</y>
467     </hint>
468     <hint type="destinationlabel" >
469      <x>283</x>
470      <y>100</y>
471     </hint>
472    </hints>
473   </connection>
474  </connections>
475 </ui>