combjs

view gui/main.ui @ 2:4e8f2bbe8426

doing the gui
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 15 Jul 2011 06:54:32 +0300
parents dd02002227a2
children
line source
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>MainWindow</class>
4 <widget class="QMainWindow" name="MainWindow">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>796</width>
10 <height>612</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>Joystick Combiner</string>
15 </property>
16 <widget class="QWidget" name="centralwidget">
17 <layout class="QVBoxLayout" name="verticalLayout_6">
18 <item>
19 <widget class="QSplitter" name="splitter">
20 <property name="orientation">
21 <enum>Qt::Horizontal</enum>
22 </property>
23 <widget class="QSplitter" name="splitter_2">
24 <property name="orientation">
25 <enum>Qt::Vertical</enum>
26 </property>
27 <widget class="QGroupBox" name="groupBox">
28 <property name="title">
29 <string>Joystick devices</string>
30 </property>
31 <layout class="QVBoxLayout" name="verticalLayout_3">
32 <item>
33 <widget class="QListWidget" name="list_js">
34 <property name="showDropIndicator" stdset="0">
35 <bool>false</bool>
36 </property>
37 <property name="dragEnabled">
38 <bool>false</bool>
39 </property>
40 <property name="dragDropMode">
41 <enum>QAbstractItemView::NoDragDrop</enum>
42 </property>
43 </widget>
44 </item>
45 <item>
46 <layout class="QHBoxLayout" name="horizontalLayout_3">
47 <item>
48 <widget class="QPushButton" name="bn_add">
49 <property name="enabled">
50 <bool>false</bool>
51 </property>
52 <property name="text">
53 <string>Add joystick</string>
54 </property>
55 </widget>
56 </item>
57 <item>
58 <spacer name="horizontalSpacer_2">
59 <property name="orientation">
60 <enum>Qt::Horizontal</enum>
61 </property>
62 <property name="sizeHint" stdset="0">
63 <size>
64 <width>40</width>
65 <height>20</height>
66 </size>
67 </property>
68 </spacer>
69 </item>
70 <item>
71 <widget class="QPushButton" name="bn_del_virt">
72 <property name="enabled">
73 <bool>false</bool>
74 </property>
75 <property name="text">
76 <string>Delete virtual device</string>
77 </property>
78 </widget>
79 </item>
80 </layout>
81 </item>
82 </layout>
83 </widget>
84 <widget class="QGroupBox" name="groupBox_2">
85 <property name="title">
86 <string>New virtual device</string>
87 </property>
88 <layout class="QVBoxLayout" name="verticalLayout_2">
89 <item>
90 <layout class="QHBoxLayout" name="horizontalLayout">
91 <item>
92 <widget class="QLabel" name="label">
93 <property name="text">
94 <string>Name</string>
95 </property>
96 </widget>
97 </item>
98 <item>
99 <widget class="QLineEdit" name="tx_devname">
100 <property name="text">
101 <string>combjs virtual joystick</string>
102 </property>
103 </widget>
104 </item>
105 </layout>
106 </item>
107 <item>
108 <widget class="QListWidget" name="list_newdev">
109 <property name="acceptDrops">
110 <bool>true</bool>
111 </property>
112 <property name="dragEnabled">
113 <bool>true</bool>
114 </property>
115 <property name="dragDropOverwriteMode">
116 <bool>false</bool>
117 </property>
118 <property name="dragDropMode">
119 <enum>QAbstractItemView::InternalMove</enum>
120 </property>
121 <property name="defaultDropAction">
122 <enum>Qt::MoveAction</enum>
123 </property>
124 <property name="alternatingRowColors">
125 <bool>false</bool>
126 </property>
127 <property name="modelColumn">
128 <number>0</number>
129 </property>
130 </widget>
131 </item>
132 <item>
133 <layout class="QHBoxLayout" name="horizontalLayout_2">
134 <item>
135 <widget class="QPushButton" name="bn_create">
136 <property name="enabled">
137 <bool>false</bool>
138 </property>
139 <property name="text">
140 <string>Create</string>
141 </property>
142 </widget>
143 </item>
144 <item>
145 <spacer name="horizontalSpacer">
146 <property name="orientation">
147 <enum>Qt::Horizontal</enum>
148 </property>
149 <property name="sizeHint" stdset="0">
150 <size>
151 <width>40</width>
152 <height>20</height>
153 </size>
154 </property>
155 </spacer>
156 </item>
157 <item>
158 <widget class="QPushButton" name="bn_remove">
159 <property name="enabled">
160 <bool>false</bool>
161 </property>
162 <property name="text">
163 <string>Remove</string>
164 </property>
165 </widget>
166 </item>
167 </layout>
168 </item>
169 </layout>
170 </widget>
171 </widget>
172 <widget class="QWidget" name="">
173 <layout class="QVBoxLayout" name="verticalLayout_4">
174 <item>
175 <widget class="QGroupBox" name="groupBox_3">
176 <property name="sizePolicy">
177 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
178 <horstretch>0</horstretch>
179 <verstretch>0</verstretch>
180 </sizepolicy>
181 </property>
182 <property name="minimumSize">
183 <size>
184 <width>0</width>
185 <height>0</height>
186 </size>
187 </property>
188 <property name="title">
189 <string>Joystick information</string>
190 </property>
191 <layout class="QVBoxLayout" name="verticalLayout">
192 <item>
193 <layout class="QFormLayout" name="formLayout">
194 <property name="fieldGrowthPolicy">
195 <enum>QFormLayout::ExpandingFieldsGrow</enum>
196 </property>
197 <item row="0" column="0">
198 <widget class="QLabel" name="label_2">
199 <property name="text">
200 <string>Name:</string>
201 </property>
202 </widget>
203 </item>
204 <item row="0" column="1">
205 <widget class="QLabel" name="lb_name">
206 <property name="text">
207 <string/>
208 </property>
209 </widget>
210 </item>
211 <item row="1" column="0">
212 <widget class="QLabel" name="label_3">
213 <property name="text">
214 <string>Device:</string>
215 </property>
216 </widget>
217 </item>
218 <item row="1" column="1">
219 <widget class="QLabel" name="lb_dev">
220 <property name="text">
221 <string/>
222 </property>
223 </widget>
224 </item>
225 <item row="2" column="0">
226 <widget class="QLabel" name="label_5">
227 <property name="text">
228 <string>Axes:</string>
229 </property>
230 </widget>
231 </item>
232 <item row="2" column="1">
233 <widget class="QLabel" name="lb_axes">
234 <property name="text">
235 <string/>
236 </property>
237 </widget>
238 </item>
239 <item row="3" column="0">
240 <widget class="QLabel" name="label_6">
241 <property name="text">
242 <string>Buttons:</string>
243 </property>
244 </widget>
245 </item>
246 <item row="3" column="1">
247 <widget class="QLabel" name="lb_buttons">
248 <property name="text">
249 <string/>
250 </property>
251 </widget>
252 </item>
253 </layout>
254 </item>
255 </layout>
256 </widget>
257 </item>
258 <item>
259 <widget class="QGroupBox" name="groupBox_4">
260 <property name="sizePolicy">
261 <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
262 <horstretch>0</horstretch>
263 <verstretch>0</verstretch>
264 </sizepolicy>
265 </property>
266 <property name="title">
267 <string>Joystick test</string>
268 </property>
269 <layout class="QVBoxLayout" name="verticalLayout_5">
270 <item>
271 <widget class="QScrollArea" name="test_area">
272 <property name="widgetResizable">
273 <bool>true</bool>
274 </property>
275 <widget class="QWidget" name="scrollAreaWidgetContents">
276 <property name="geometry">
277 <rect>
278 <x>0</x>
279 <y>0</y>
280 <width>321</width>
281 <height>394</height>
282 </rect>
283 </property>
284 </widget>
285 </widget>
286 </item>
287 </layout>
288 </widget>
289 </item>
290 </layout>
291 </widget>
292 </widget>
293 </item>
294 </layout>
295 </widget>
296 <widget class="QMenuBar" name="menubar">
297 <property name="geometry">
298 <rect>
299 <x>0</x>
300 <y>0</y>
301 <width>796</width>
302 <height>24</height>
303 </rect>
304 </property>
305 <widget class="QMenu" name="menuFile">
306 <property name="title">
307 <string>Joystick</string>
308 </property>
309 <addaction name="action_addjs"/>
310 <addaction name="action_combine"/>
311 <addaction name="action_delete"/>
312 <addaction name="action_quit"/>
313 </widget>
314 <widget class="QMenu" name="menuHelp">
315 <property name="title">
316 <string>Help</string>
317 </property>
318 <addaction name="action_usage"/>
319 <addaction name="action_about"/>
320 </widget>
321 <addaction name="menuFile"/>
322 <addaction name="menuHelp"/>
323 </widget>
324 <widget class="QStatusBar" name="statusbar"/>
325 <action name="action_usage">
326 <property name="text">
327 <string>Usage</string>
328 </property>
329 </action>
330 <action name="action_about">
331 <property name="text">
332 <string>About</string>
333 </property>
334 </action>
335 <action name="action_combine">
336 <property name="text">
337 <string>Combine</string>
338 </property>
339 </action>
340 <action name="action_delete">
341 <property name="text">
342 <string>Delete</string>
343 </property>
344 </action>
345 <action name="action_quit">
346 <property name="text">
347 <string>Quit</string>
348 </property>
349 </action>
350 <action name="action_addjs">
351 <property name="text">
352 <string>Add joystick</string>
353 </property>
354 </action>
355 <action name="action_remove">
356 <property name="text">
357 <string>Remove</string>
358 </property>
359 </action>
360 </widget>
361 <resources/>
362 <connections>
363 <connection>
364 <sender>action_quit</sender>
365 <signal>triggered()</signal>
366 <receiver>MainWindow</receiver>
367 <slot>close()</slot>
368 <hints>
369 <hint type="sourcelabel">
370 <x>-1</x>
371 <y>-1</y>
372 </hint>
373 <hint type="destinationlabel">
374 <x>397</x>
375 <y>305</y>
376 </hint>
377 </hints>
378 </connection>
379 <connection>
380 <sender>bn_add</sender>
381 <signal>clicked()</signal>
382 <receiver>action_addjs</receiver>
383 <slot>trigger()</slot>
384 <hints>
385 <hint type="sourcelabel">
386 <x>63</x>
387 <y>267</y>
388 </hint>
389 <hint type="destinationlabel">
390 <x>-1</x>
391 <y>-1</y>
392 </hint>
393 </hints>
394 </connection>
395 <connection>
396 <sender>bn_create</sender>
397 <signal>clicked()</signal>
398 <receiver>action_combine</receiver>
399 <slot>trigger()</slot>
400 <hints>
401 <hint type="sourcelabel">
402 <x>58</x>
403 <y>559</y>
404 </hint>
405 <hint type="destinationlabel">
406 <x>-1</x>
407 <y>-1</y>
408 </hint>
409 </hints>
410 </connection>
411 <connection>
412 <sender>bn_remove</sender>
413 <signal>clicked()</signal>
414 <receiver>action_remove</receiver>
415 <slot>trigger()</slot>
416 <hints>
417 <hint type="sourcelabel">
418 <x>345</x>
419 <y>559</y>
420 </hint>
421 <hint type="destinationlabel">
422 <x>-1</x>
423 <y>-1</y>
424 </hint>
425 </hints>
426 </connection>
427 <connection>
428 <sender>bn_del_virt</sender>
429 <signal>clicked()</signal>
430 <receiver>action_delete</receiver>
431 <slot>trigger()</slot>
432 <hints>
433 <hint type="sourcelabel">
434 <x>315</x>
435 <y>267</y>
436 </hint>
437 <hint type="destinationlabel">
438 <x>-1</x>
439 <y>-1</y>
440 </hint>
441 </hints>
442 </connection>
443 </connections>
444 </ui>