]> git.cworth.org Git - apitrace/blob - gui/ui/mainwindow.ui
gui/mainwindow: Add functions that toggle actions enables and use it.
[apitrace] / gui / ui / mainwindow.ui
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>787</width>
10     <height>756</height>
11    </rect>
12   </property>
13   <property name="windowTitle">
14    <string>ApiTrace</string>
15   </property>
16   <property name="documentMode">
17    <bool>false</bool>
18   </property>
19   <property name="dockNestingEnabled">
20    <bool>false</bool>
21   </property>
22   <property name="dockOptions">
23    <set>QMainWindow::AnimatedDocks|QMainWindow::ForceTabbedDocks</set>
24   </property>
25   <widget class="QWidget" name="centralwidget">
26    <layout class="QVBoxLayout" name="centralLayout">
27     <item>
28      <widget class="QTreeView" name="callView">
29       <property name="alternatingRowColors">
30        <bool>true</bool>
31       </property>
32       <property name="textElideMode">
33        <enum>Qt::ElideMiddle</enum>
34       </property>
35       <property name="uniformRowHeights">
36        <bool>true</bool>
37       </property>
38      </widget>
39     </item>
40    </layout>
41   </widget>
42   <widget class="QMenuBar" name="menubar">
43    <property name="geometry">
44     <rect>
45      <x>0</x>
46      <y>0</y>
47      <width>787</width>
48      <height>21</height>
49     </rect>
50    </property>
51    <widget class="QMenu" name="menuFile">
52     <property name="title">
53      <string>&amp;File</string>
54     </property>
55     <addaction name="actionNew"/>
56     <addaction name="actionOpen"/>
57     <addaction name="separator"/>
58     <addaction name="actionQuit"/>
59    </widget>
60    <widget class="QMenu" name="menuEdit">
61     <property name="title">
62      <string>&amp;Edit</string>
63     </property>
64     <addaction name="actionFind"/>
65     <addaction name="actionGo"/>
66     <addaction name="actionGoFrameStart"/>
67     <addaction name="actionGoFrameEnd"/>
68    </widget>
69    <widget class="QMenu" name="menu_Trace">
70     <property name="title">
71      <string>&amp;Trace</string>
72     </property>
73     <addaction name="actionReplay"/>
74     <addaction name="actionProfile"/>
75     <addaction name="actionStop"/>
76     <addaction name="actionLookupState"/>
77     <addaction name="actionShowThumbnails"/>
78     <addaction name="actionTrim"/>
79     <addaction name="separator"/>
80     <addaction name="actionOptions"/>
81    </widget>
82    <widget class="QMenu" name="menuView">
83     <property name="title">
84      <string>&amp;View</string>
85     </property>
86     <addaction name="actionShowErrorsDock"/>
87     <addaction name="actionShowProfileDialog"/>
88    </widget>
89    <addaction name="menuFile"/>
90    <addaction name="menuEdit"/>
91    <addaction name="menuView"/>
92    <addaction name="menu_Trace"/>
93   </widget>
94   <widget class="QStatusBar" name="statusbar"/>
95   <widget class="QDockWidget" name="detailsDock">
96    <property name="sizePolicy">
97     <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
98      <horstretch>0</horstretch>
99      <verstretch>0</verstretch>
100     </sizepolicy>
101    </property>
102    <property name="minimumSize">
103     <size>
104      <width>77</width>
105      <height>100</height>
106     </size>
107    </property>
108    <property name="floating">
109     <bool>false</bool>
110    </property>
111    <property name="windowTitle">
112     <string>Call Details</string>
113    </property>
114    <attribute name="dockWidgetArea">
115     <number>8</number>
116    </attribute>
117    <widget class="QWidget" name="dockWidgetContents">
118     <layout class="QHBoxLayout" name="horizontalLayout_2">
119      <item>
120       <widget class="QWebView" name="detailsWebView" native="true">
121        <property name="sizePolicy">
122         <sizepolicy hsizetype="Preferred" vsizetype="Ignored">
123          <horstretch>0</horstretch>
124          <verstretch>0</verstretch>
125         </sizepolicy>
126        </property>
127        <property name="url">
128         <url>
129          <string>about:blank</string>
130         </url>
131        </property>
132       </widget>
133      </item>
134     </layout>
135    </widget>
136   </widget>
137   <widget class="QDockWidget" name="stateDock">
138    <property name="features">
139     <set>QDockWidget::AllDockWidgetFeatures</set>
140    </property>
141    <property name="windowTitle">
142     <string>Current State</string>
143    </property>
144    <attribute name="dockWidgetArea">
145     <number>2</number>
146    </attribute>
147    <widget class="QWidget" name="dockWidgetContents_2">
148     <layout class="QVBoxLayout" name="verticalLayout">
149      <item>
150       <widget class="QTabWidget" name="stateTabWidget">
151        <property name="currentIndex">
152         <number>0</number>
153        </property>
154        <widget class="QWidget" name="parametersTab">
155         <attribute name="title">
156          <string>Parameters</string>
157         </attribute>
158         <layout class="QVBoxLayout" name="verticalLayout_3">
159          <item>
160           <widget class="QCheckBox" name="nonDefaultsCB">
161            <property name="text">
162             <string>Only show non-defaults</string>
163            </property>
164           </widget>
165          </item>
166          <item>
167           <widget class="QTreeWidget" name="stateTreeWidget">
168            <property name="editTriggers">
169             <set>QAbstractItemView::NoEditTriggers</set>
170            </property>
171            <property name="alternatingRowColors">
172             <bool>true</bool>
173            </property>
174            <property name="sortingEnabled">
175             <bool>true</bool>
176            </property>
177            <property name="allColumnsShowFocus">
178             <bool>true</bool>
179            </property>
180            <column>
181             <property name="text">
182              <string>Variable</string>
183             </property>
184            </column>
185            <column>
186             <property name="text">
187              <string>Value</string>
188             </property>
189            </column>
190           </widget>
191          </item>
192         </layout>
193        </widget>
194        <widget class="QWidget" name="shadersTab">
195         <attribute name="title">
196          <string>Shaders</string>
197         </attribute>
198        </widget>
199        <widget class="QWidget" name="surfacesTab">
200         <attribute name="title">
201          <string>Surfaces</string>
202         </attribute>
203         <layout class="QVBoxLayout" name="verticalLayout_5">
204          <item>
205           <widget class="QTreeWidget" name="surfacesTreeWidget">
206            <column>
207             <property name="text">
208              <string>Thumbnail</string>
209             </property>
210            </column>
211            <column>
212             <property name="text">
213              <string>Description</string>
214             </property>
215            </column>
216           </widget>
217          </item>
218         </layout>
219        </widget>
220        <widget class="QWidget" name="uniformsTab">
221         <attribute name="title">
222          <string>Uniforms</string>
223         </attribute>
224         <layout class="QVBoxLayout" name="verticalLayout_6">
225          <item>
226           <widget class="QTreeWidget" name="uniformsTreeWidget">
227            <property name="editTriggers">
228             <set>QAbstractItemView::NoEditTriggers</set>
229            </property>
230            <property name="alternatingRowColors">
231             <bool>true</bool>
232            </property>
233            <property name="sortingEnabled">
234             <bool>true</bool>
235            </property>
236            <property name="allColumnsShowFocus">
237             <bool>true</bool>
238            </property>
239            <column>
240             <property name="text">
241              <string>Name</string>
242             </property>
243            </column>
244            <column>
245             <property name="text">
246              <string>Value</string>
247             </property>
248            </column>
249           </widget>
250          </item>
251         </layout>
252        </widget>
253       </widget>
254      </item>
255     </layout>
256    </widget>
257   </widget>
258   <widget class="QDockWidget" name="vertexDataDock">
259    <property name="allowedAreas">
260     <set>Qt::AllDockWidgetAreas</set>
261    </property>
262    <property name="windowTitle">
263     <string>Vertex Data</string>
264    </property>
265    <attribute name="dockWidgetArea">
266     <number>2</number>
267    </attribute>
268    <widget class="QWidget" name="dockWidgetContents_3">
269     <layout class="QVBoxLayout" name="verticalLayout_2">
270      <item>
271       <layout class="QFormLayout" name="formLayout">
272        <property name="fieldGrowthPolicy">
273         <enum>QFormLayout::ExpandingFieldsGrow</enum>
274        </property>
275        <item row="0" column="0">
276         <widget class="QLabel" name="label">
277          <property name="text">
278           <string>Type</string>
279          </property>
280         </widget>
281        </item>
282        <item row="0" column="1">
283         <widget class="QComboBox" name="vertexTypeCB">
284          <property name="currentIndex">
285           <number>6</number>
286          </property>
287          <item>
288           <property name="text">
289            <string>GL_BYTE</string>
290           </property>
291          </item>
292          <item>
293           <property name="text">
294            <string>GL_UNSIGNED_BYTE</string>
295           </property>
296          </item>
297          <item>
298           <property name="text">
299            <string>GL_SHORT</string>
300           </property>
301          </item>
302          <item>
303           <property name="text">
304            <string>GL_UNSIGNED_SHORT</string>
305           </property>
306          </item>
307          <item>
308           <property name="text">
309            <string>GL_INT</string>
310           </property>
311          </item>
312          <item>
313           <property name="text">
314            <string>GL_UNSIGNED_INT</string>
315           </property>
316          </item>
317          <item>
318           <property name="text">
319            <string>GL_FLOAT</string>
320           </property>
321          </item>
322          <item>
323           <property name="text">
324            <string>GL_DOUBLE</string>
325           </property>
326          </item>
327         </widget>
328        </item>
329        <item row="1" column="0">
330         <widget class="QLabel" name="label_2">
331          <property name="text">
332           <string>Stride</string>
333          </property>
334         </widget>
335        </item>
336        <item row="1" column="1">
337         <widget class="QSpinBox" name="vertexStrideSB">
338          <property name="maximum">
339           <number>1000</number>
340          </property>
341          <property name="value">
342           <number>8</number>
343          </property>
344         </widget>
345        </item>
346        <item row="2" column="0">
347         <widget class="QLabel" name="label_4">
348          <property name="text">
349           <string>Components</string>
350          </property>
351         </widget>
352        </item>
353        <item row="2" column="1">
354         <widget class="QSpinBox" name="vertexComponentsSB">
355          <property name="minimum">
356           <number>1</number>
357          </property>
358          <property name="maximum">
359           <number>256</number>
360          </property>
361          <property name="value">
362           <number>4</number>
363          </property>
364         </widget>
365        </item>
366        <item row="3" column="0">
367         <widget class="QLabel" name="label_3">
368          <property name="text">
369           <string>Starting Offset</string>
370          </property>
371         </widget>
372        </item>
373        <item row="3" column="1">
374         <widget class="QSpinBox" name="startingOffsetSB"/>
375        </item>
376       </layout>
377      </item>
378      <item>
379       <layout class="QHBoxLayout" name="horizontalLayout_3">
380        <item>
381         <spacer name="horizontalSpacer">
382          <property name="orientation">
383           <enum>Qt::Horizontal</enum>
384          </property>
385          <property name="sizeHint" stdset="0">
386           <size>
387            <width>40</width>
388            <height>20</height>
389           </size>
390          </property>
391         </spacer>
392        </item>
393        <item>
394         <widget class="QPushButton" name="vertexInterpretButton">
395          <property name="text">
396           <string>Interpret</string>
397          </property>
398         </widget>
399        </item>
400        <item>
401         <spacer name="horizontalSpacer_2">
402          <property name="orientation">
403           <enum>Qt::Horizontal</enum>
404          </property>
405          <property name="sizeHint" stdset="0">
406           <size>
407            <width>40</width>
408            <height>20</height>
409           </size>
410          </property>
411         </spacer>
412        </item>
413       </layout>
414      </item>
415      <item>
416       <widget class="QListWidget" name="vertexDataListWidget"/>
417      </item>
418     </layout>
419    </widget>
420   </widget>
421   <widget class="QDockWidget" name="errorsDock">
422    <property name="features">
423     <set>QDockWidget::AllDockWidgetFeatures</set>
424    </property>
425    <property name="windowTitle">
426     <string>Errors</string>
427    </property>
428    <attribute name="dockWidgetArea">
429     <number>8</number>
430    </attribute>
431    <widget class="QWidget" name="dockWidgetContents_4">
432     <layout class="QVBoxLayout" name="verticalLayout_4">
433      <item>
434       <widget class="QTreeWidget" name="errorsTreeWidget">
435        <column>
436         <property name="text">
437          <string>Index</string>
438         </property>
439        </column>
440        <column>
441         <property name="text">
442          <string>Type</string>
443         </property>
444        </column>
445        <column>
446         <property name="text">
447          <string>Error</string>
448         </property>
449        </column>
450       </widget>
451      </item>
452     </layout>
453    </widget>
454   </widget>
455   <action name="actionExit">
456    <property name="text">
457     <string>Exit</string>
458    </property>
459   </action>
460   <action name="actionExit_2">
461    <property name="text">
462     <string>Exit</string>
463    </property>
464   </action>
465   <action name="actionOpen">
466    <property name="icon">
467     <iconset resource="../qapitrace.qrc">
468      <normaloff>:/resources/document-open.png</normaloff>:/resources/document-open.png</iconset>
469    </property>
470    <property name="text">
471     <string>&amp;Open...</string>
472    </property>
473    <property name="shortcut">
474     <string>Ctrl+O</string>
475    </property>
476   </action>
477   <action name="actionQuit">
478    <property name="icon">
479     <iconset resource="../qapitrace.qrc">
480      <normaloff>:/resources/application-exit.png</normaloff>:/resources/application-exit.png</iconset>
481    </property>
482    <property name="text">
483     <string>&amp;Quit</string>
484    </property>
485    <property name="shortcut">
486     <string>Ctrl+Q</string>
487    </property>
488    <property name="shortcutContext">
489     <enum>Qt::ApplicationShortcut</enum>
490    </property>
491    <property name="menuRole">
492     <enum>QAction::QuitRole</enum>
493    </property>
494   </action>
495   <action name="actionReplay">
496    <property name="icon">
497     <iconset resource="../qapitrace.qrc">
498      <normaloff>:/resources/media-playback-start.png</normaloff>:/resources/media-playback-start.png</iconset>
499    </property>
500    <property name="text">
501     <string>&amp;Replay</string>
502    </property>
503    <property name="shortcut">
504     <string>Ctrl+R</string>
505    </property>
506   </action>
507   <action name="actionStop">
508    <property name="icon">
509     <iconset resource="../qapitrace.qrc">
510      <normaloff>:/resources/media-playback-stop.png</normaloff>:/resources/media-playback-stop.png</iconset>
511    </property>
512    <property name="text">
513     <string>&amp;Stop</string>
514    </property>
515   </action>
516   <action name="actionLookupState">
517    <property name="icon">
518     <iconset resource="../qapitrace.qrc">
519      <normaloff>:/resources/media-record.png</normaloff>:/resources/media-record.png</iconset>
520    </property>
521    <property name="text">
522     <string>Lookup State</string>
523    </property>
524    <property name="shortcut">
525     <string>Ctrl+L</string>
526    </property>
527   </action>
528   <action name="actionShowThumbnails">
529    <property name="text">
530     <string>Show &amp;Thumbnails</string>
531    </property>
532    <property name="shortcut">
533     <string>Ctrl+T</string>
534    </property>
535   </action>
536   <action name="actionTrim">
537    <property name="text">
538     <string>Tr&amp;im</string>
539    </property>
540    <property name="shortcut">
541     <string>Ctrl+I</string>
542    </property>
543   </action>
544   <action name="actionOptions">
545    <property name="text">
546     <string>Options</string>
547    </property>
548   </action>
549   <action name="actionNew">
550    <property name="icon">
551     <iconset resource="../qapitrace.qrc">
552      <normaloff>:/resources/document-new.png</normaloff>:/resources/document-new.png</iconset>
553    </property>
554    <property name="text">
555     <string>&amp;New...</string>
556    </property>
557    <property name="shortcut">
558     <string>Ctrl+N</string>
559    </property>
560   </action>
561   <action name="actionFind">
562    <property name="icon">
563     <iconset resource="../qapitrace.qrc">
564      <normaloff>:/resources/edit-find.png</normaloff>:/resources/edit-find.png</iconset>
565    </property>
566    <property name="text">
567     <string>&amp;Find</string>
568    </property>
569    <property name="shortcut">
570     <string>Ctrl+F</string>
571    </property>
572   </action>
573   <action name="actionGo">
574    <property name="icon">
575     <iconset resource="../qapitrace.qrc">
576      <normaloff>:/resources/go-jump.png</normaloff>:/resources/go-jump.png</iconset>
577    </property>
578    <property name="text">
579     <string>Go to Call</string>
580    </property>
581    <property name="shortcut">
582     <string>Ctrl+G</string>
583    </property>
584   </action>
585   <action name="actionGoFrameStart">
586    <property name="icon">
587     <iconset resource="../qapitrace.qrc">
588      <normaloff>:/resources/go-top.png</normaloff>:/resources/go-top.png</iconset>
589    </property>
590    <property name="text">
591     <string>Go to Frame Start</string>
592    </property>
593    <property name="shortcut">
594     <string>Ctrl+A</string>
595    </property>
596   </action>
597   <action name="actionGoFrameEnd">
598    <property name="icon">
599     <iconset resource="../qapitrace.qrc">
600      <normaloff>:/resources/go-bottom.png</normaloff>:/resources/go-bottom.png</iconset>
601    </property>
602    <property name="text">
603     <string>Go to Frame End</string>
604    </property>
605    <property name="shortcut">
606     <string>Ctrl+E</string>
607    </property>
608   </action>
609   <action name="actionShowErrorsDock">
610    <property name="checkable">
611     <bool>true</bool>
612    </property>
613    <property name="enabled">
614     <bool>false</bool>
615    </property>
616    <property name="text">
617     <string>Show &amp;Errors Dock</string>
618    </property>
619   </action>
620   <action name="actionShowProfileDialog">
621    <property name="enabled">
622     <bool>false</bool>
623    </property>
624    <property name="text">
625     <string>Show &amp;Profile Results</string>
626    </property>
627   </action>
628   <action name="actionProfile">
629    <property name="text">
630     <string>&amp;Profile</string>
631    </property>
632    <property name="shortcut">
633     <string>Ctrl+P</string>
634    </property>
635   </action>
636   <zorder>stateDock</zorder>
637   <zorder>vertexDataDock</zorder>
638   <zorder>errorsDock</zorder>
639  </widget>
640  <customwidgets>
641   <customwidget>
642    <class>QWebView</class>
643    <extends>QWidget</extends>
644    <header>QtWebKit/QWebView</header>
645   </customwidget>
646  </customwidgets>
647  <resources>
648   <include location="../qapitrace.qrc"/>
649  </resources>
650  <connections/>
651 </ui>