OSDN Git Service

Added option to shutdown the computer when all jobs are completed.
[x264-launcher/x264-launcher.git] / gui / win_preferences.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>PreferencesDialog</class>
4  <widget class="QDialog" name="PreferencesDialog">
5   <property name="windowModality">
6    <enum>Qt::ApplicationModal</enum>
7   </property>
8   <property name="geometry">
9    <rect>
10     <x>0</x>
11     <y>0</y>
12     <width>378</width>
13     <height>193</height>
14    </rect>
15   </property>
16   <property name="windowTitle">
17    <string>Preferences</string>
18   </property>
19   <property name="modal">
20    <bool>true</bool>
21   </property>
22   <layout class="QVBoxLayout" name="verticalLayout">
23    <item>
24     <widget class="QGroupBox" name="groupBox">
25      <property name="sizePolicy">
26       <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
27        <horstretch>0</horstretch>
28        <verstretch>0</verstretch>
29       </sizepolicy>
30      </property>
31      <property name="title">
32       <string> Preferences </string>
33      </property>
34      <layout class="QVBoxLayout" name="verticalLayout_2">
35       <item>
36        <layout class="QGridLayout" name="gridLayout">
37         <item row="2" column="2" colspan="2">
38          <widget class="QLabel" name="labelJobCount">
39           <property name="enabled">
40            <bool>false</bool>
41           </property>
42           <property name="toolTip">
43            <string>If the specified number of jobs (or even more) is already running, the next one will NOT be launched yet.</string>
44           </property>
45           <property name="text">
46            <string>Maximum number of running jobs:</string>
47           </property>
48          </widget>
49         </item>
50         <item row="2" column="4">
51          <widget class="QSpinBox" name="spinBoxJobCount">
52           <property name="enabled">
53            <bool>false</bool>
54           </property>
55           <property name="minimumSize">
56            <size>
57             <width>80</width>
58             <height>0</height>
59            </size>
60           </property>
61           <property name="toolTip">
62            <string>If the specified number of jobs (or even more) is already running, the next one will NOT be launched yet.</string>
63           </property>
64           <property name="minimum">
65            <number>1</number>
66           </property>
67           <property name="maximum">
68            <number>16</number>
69           </property>
70          </widget>
71         </item>
72         <item row="2" column="5">
73          <spacer name="horizontalSpacer_4">
74           <property name="orientation">
75            <enum>Qt::Horizontal</enum>
76           </property>
77           <property name="sizeHint" stdset="0">
78            <size>
79             <width>0</width>
80             <height>20</height>
81            </size>
82           </property>
83          </spacer>
84         </item>
85         <item row="1" column="1">
86          <widget class="QCheckBox" name="checkRunNextJob">
87           <property name="text">
88            <string/>
89           </property>
90          </widget>
91         </item>
92         <item row="1" column="2" colspan="4">
93          <widget class="QLabel" name="labelRunNextJob">
94           <property name="text">
95            <string>Automatically launch next job when a running job completes</string>
96           </property>
97          </widget>
98         </item>
99         <item row="1" column="6" rowspan="4">
100          <spacer name="horizontalSpacer_3">
101           <property name="orientation">
102            <enum>Qt::Horizontal</enum>
103           </property>
104           <property name="sizeType">
105            <enum>QSizePolicy::Fixed</enum>
106           </property>
107           <property name="sizeHint" stdset="0">
108            <size>
109             <width>12</width>
110             <height>20</height>
111            </size>
112           </property>
113          </spacer>
114         </item>
115         <item row="1" column="0" rowspan="4">
116          <spacer name="horizontalSpacer_2">
117           <property name="orientation">
118            <enum>Qt::Horizontal</enum>
119           </property>
120           <property name="sizeType">
121            <enum>QSizePolicy::Fixed</enum>
122           </property>
123           <property name="sizeHint" stdset="0">
124            <size>
125             <width>8</width>
126             <height>20</height>
127            </size>
128           </property>
129          </spacer>
130         </item>
131         <item row="3" column="1" colspan="5">
132          <spacer name="verticalSpacer">
133           <property name="orientation">
134            <enum>Qt::Vertical</enum>
135           </property>
136           <property name="sizeType">
137            <enum>QSizePolicy::Fixed</enum>
138           </property>
139           <property name="sizeHint" stdset="0">
140            <size>
141             <width>20</width>
142             <height>8</height>
143            </size>
144           </property>
145          </spacer>
146         </item>
147         <item row="4" column="1">
148          <widget class="QCheckBox" name="checkShutdownComputer">
149           <property name="text">
150            <string/>
151           </property>
152          </widget>
153         </item>
154         <item row="4" column="2" colspan="4">
155          <widget class="QLabel" name="labelShutdownComputer">
156           <property name="text">
157            <string>Shutdown computer as soon as the last job has completed</string>
158           </property>
159          </widget>
160         </item>
161         <item row="0" column="1" colspan="5">
162          <spacer name="verticalSpacer_2">
163           <property name="orientation">
164            <enum>Qt::Vertical</enum>
165           </property>
166           <property name="sizeType">
167            <enum>QSizePolicy::Fixed</enum>
168           </property>
169           <property name="sizeHint" stdset="0">
170            <size>
171             <width>20</width>
172             <height>12</height>
173            </size>
174           </property>
175          </spacer>
176         </item>
177         <item row="5" column="1" colspan="5">
178          <spacer name="verticalSpacer_3">
179           <property name="orientation">
180            <enum>Qt::Vertical</enum>
181           </property>
182           <property name="sizeType">
183            <enum>QSizePolicy::Fixed</enum>
184           </property>
185           <property name="sizeHint" stdset="0">
186            <size>
187             <width>20</width>
188             <height>12</height>
189            </size>
190           </property>
191          </spacer>
192         </item>
193        </layout>
194       </item>
195      </layout>
196     </widget>
197    </item>
198    <item>
199     <layout class="QHBoxLayout" name="horizontalLayout">
200      <item>
201       <spacer name="horizontalSpacer">
202        <property name="orientation">
203         <enum>Qt::Horizontal</enum>
204        </property>
205        <property name="sizeHint" stdset="0">
206         <size>
207          <width>40</width>
208          <height>20</height>
209         </size>
210        </property>
211       </spacer>
212      </item>
213      <item>
214       <widget class="QPushButton" name="closeButton">
215        <property name="minimumSize">
216         <size>
217          <width>100</width>
218          <height>0</height>
219         </size>
220        </property>
221        <property name="text">
222         <string>Close</string>
223        </property>
224        <property name="icon">
225         <iconset resource="../res/resources.qrc">
226          <normaloff>:/buttons/accept.png</normaloff>:/buttons/accept.png</iconset>
227        </property>
228       </widget>
229      </item>
230     </layout>
231    </item>
232   </layout>
233  </widget>
234  <tabstops>
235   <tabstop>closeButton</tabstop>
236   <tabstop>checkRunNextJob</tabstop>
237   <tabstop>spinBoxJobCount</tabstop>
238  </tabstops>
239  <resources>
240   <include location="../res/resources.qrc"/>
241  </resources>
242  <connections>
243   <connection>
244    <sender>closeButton</sender>
245    <signal>clicked()</signal>
246    <receiver>PreferencesDialog</receiver>
247    <slot>accept()</slot>
248    <hints>
249     <hint type="sourcelabel">
250      <x>339</x>
251      <y>157</y>
252     </hint>
253     <hint type="destinationlabel">
254      <x>199</x>
255      <y>89</y>
256     </hint>
257    </hints>
258   </connection>
259   <connection>
260    <sender>checkRunNextJob</sender>
261    <signal>clicked(bool)</signal>
262    <receiver>spinBoxJobCount</receiver>
263    <slot>setEnabled(bool)</slot>
264    <hints>
265     <hint type="sourcelabel">
266      <x>188</x>
267      <y>55</y>
268     </hint>
269     <hint type="destinationlabel">
270      <x>294</x>
271      <y>93</y>
272     </hint>
273    </hints>
274   </connection>
275   <connection>
276    <sender>checkRunNextJob</sender>
277    <signal>clicked(bool)</signal>
278    <receiver>labelJobCount</receiver>
279    <slot>setEnabled(bool)</slot>
280    <hints>
281     <hint type="sourcelabel">
282      <x>188</x>
283      <y>55</y>
284     </hint>
285     <hint type="destinationlabel">
286      <x>136</x>
287      <y>93</y>
288     </hint>
289    </hints>
290   </connection>
291  </connections>
292 </ui>