]> git.cworth.org Git - apitrace/blob - gui/ui/profiledialog.ui
Add gui support for trace profiling.
[apitrace] / gui / ui / profiledialog.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>ProfileDialog</class>
4  <widget class="QDialog" name="ProfileDialog">
5   <property name="windowModality">
6    <enum>Qt::WindowModal</enum>
7   </property>
8   <property name="geometry">
9    <rect>
10     <x>0</x>
11     <y>0</y>
12     <width>1079</width>
13     <height>768</height>
14    </rect>
15   </property>
16   <property name="windowTitle">
17    <string>Profile Results</string>
18   </property>
19   <layout class="QHBoxLayout" name="horizontalLayout">
20    <property name="spacing">
21     <number>0</number>
22    </property>
23    <property name="margin">
24     <number>0</number>
25    </property>
26    <item>
27     <widget class="QSplitter" name="splitter">
28      <property name="sizePolicy">
29       <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
30        <horstretch>0</horstretch>
31        <verstretch>0</verstretch>
32       </sizepolicy>
33      </property>
34      <property name="orientation">
35       <enum>Qt::Vertical</enum>
36      </property>
37      <widget class="QWidget" name="timelineContainer" native="true">
38       <property name="sizePolicy">
39        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
40         <horstretch>0</horstretch>
41         <verstretch>1</verstretch>
42        </sizepolicy>
43       </property>
44       <property name="focusPolicy">
45        <enum>Qt::WheelFocus</enum>
46       </property>
47       <layout class="QVBoxLayout" name="verticalLayout">
48        <property name="spacing">
49         <number>0</number>
50        </property>
51        <property name="margin">
52         <number>0</number>
53        </property>
54        <item>
55         <layout class="QGridLayout" name="gridLayout">
56          <property name="spacing">
57           <number>2</number>
58          </property>
59          <item row="0" column="0">
60           <widget class="TimelineWidget" name="m_timeline" native="true">
61            <property name="sizePolicy">
62             <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
63              <horstretch>0</horstretch>
64              <verstretch>0</verstretch>
65             </sizepolicy>
66            </property>
67            <property name="focusPolicy">
68             <enum>Qt::WheelFocus</enum>
69            </property>
70           </widget>
71          </item>
72          <item row="0" column="1">
73           <widget class="QScrollBar" name="m_verticalScrollBar">
74            <property name="sizePolicy">
75             <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
76              <horstretch>0</horstretch>
77              <verstretch>0</verstretch>
78             </sizepolicy>
79            </property>
80            <property name="orientation">
81             <enum>Qt::Vertical</enum>
82            </property>
83           </widget>
84          </item>
85          <item row="1" column="0">
86           <widget class="QScrollBar" name="m_horizontalScrollBar">
87            <property name="sizePolicy">
88             <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
89              <horstretch>0</horstretch>
90              <verstretch>0</verstretch>
91             </sizepolicy>
92            </property>
93            <property name="maximum">
94             <number>10000</number>
95            </property>
96            <property name="orientation">
97             <enum>Qt::Horizontal</enum>
98            </property>
99           </widget>
100          </item>
101         </layout>
102        </item>
103       </layout>
104      </widget>
105      <widget class="QTableView" name="m_table">
106       <property name="sizePolicy">
107        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
108         <horstretch>0</horstretch>
109         <verstretch>0</verstretch>
110        </sizepolicy>
111       </property>
112       <property name="editTriggers">
113        <set>QAbstractItemView::NoEditTriggers</set>
114       </property>
115       <property name="selectionMode">
116        <enum>QAbstractItemView::SingleSelection</enum>
117       </property>
118       <property name="verticalScrollMode">
119        <enum>QAbstractItemView::ScrollPerPixel</enum>
120       </property>
121       <property name="horizontalScrollMode">
122        <enum>QAbstractItemView::ScrollPerPixel</enum>
123       </property>
124       <property name="sortingEnabled">
125        <bool>true</bool>
126       </property>
127       <property name="wordWrap">
128        <bool>false</bool>
129       </property>
130       <attribute name="verticalHeaderVisible">
131        <bool>false</bool>
132       </attribute>
133      </widget>
134     </widget>
135    </item>
136   </layout>
137  </widget>
138  <customwidgets>
139   <customwidget>
140    <class>TimelineWidget</class>
141    <extends>QWidget</extends>
142    <header>timelinewidget.h</header>
143    <container>1</container>
144    <slots>
145     <signal>horizontalScrollValueChanged(int)</signal>
146     <signal>verticalScrollValueChanged(int)</signal>
147     <signal>horizontalScrollMaxChanged(int)</signal>
148     <signal>verticalScrollMaxChanged(int)</signal>
149     <signal>jumpToCall(int)</signal>
150     <slot>setHorizontalScrollValue(int)</slot>
151     <slot>setVerticalScrollValue(int)</slot>
152    </slots>
153   </customwidget>
154  </customwidgets>
155  <resources/>
156  <connections>
157   <connection>
158    <sender>m_horizontalScrollBar</sender>
159    <signal>sliderMoved(int)</signal>
160    <receiver>m_timeline</receiver>
161    <slot>setHorizontalScrollValue(int)</slot>
162    <hints>
163     <hint type="sourcelabel">
164      <x>402</x>
165      <y>195</y>
166     </hint>
167     <hint type="destinationlabel">
168      <x>402</x>
169      <y>93</y>
170     </hint>
171    </hints>
172   </connection>
173   <connection>
174    <sender>m_verticalScrollBar</sender>
175    <signal>sliderMoved(int)</signal>
176    <receiver>m_timeline</receiver>
177    <slot>setVerticalScrollValue(int)</slot>
178    <hints>
179     <hint type="sourcelabel">
180      <x>813</x>
181      <y>93</y>
182     </hint>
183     <hint type="destinationlabel">
184      <x>402</x>
185      <y>93</y>
186     </hint>
187    </hints>
188   </connection>
189   <connection>
190    <sender>m_timeline</sender>
191    <signal>horizontalScrollValueChanged(int)</signal>
192    <receiver>m_horizontalScrollBar</receiver>
193    <slot>setValue(int)</slot>
194    <hints>
195     <hint type="sourcelabel">
196      <x>402</x>
197      <y>93</y>
198     </hint>
199     <hint type="destinationlabel">
200      <x>402</x>
201      <y>195</y>
202     </hint>
203    </hints>
204   </connection>
205   <connection>
206    <sender>m_timeline</sender>
207    <signal>verticalScrollValueChanged(int)</signal>
208    <receiver>m_verticalScrollBar</receiver>
209    <slot>setValue(int)</slot>
210    <hints>
211     <hint type="sourcelabel">
212      <x>402</x>
213      <y>93</y>
214     </hint>
215     <hint type="destinationlabel">
216      <x>813</x>
217      <y>93</y>
218     </hint>
219    </hints>
220   </connection>
221   <connection>
222    <sender>m_timeline</sender>
223    <signal>horizontalScrollMaxChanged(int)</signal>
224    <receiver>ProfileDialog</receiver>
225    <slot>setHorizontalScrollMax(int)</slot>
226    <hints>
227     <hint type="sourcelabel">
228      <x>504</x>
229      <y>277</y>
230     </hint>
231     <hint type="destinationlabel">
232      <x>511</x>
233      <y>383</y>
234     </hint>
235    </hints>
236   </connection>
237   <connection>
238    <sender>m_timeline</sender>
239    <signal>verticalScrollMaxChanged(int)</signal>
240    <receiver>ProfileDialog</receiver>
241    <slot>setVerticalScrollMax(int)</slot>
242    <hints>
243     <hint type="sourcelabel">
244      <x>504</x>
245      <y>277</y>
246     </hint>
247     <hint type="destinationlabel">
248      <x>511</x>
249      <y>383</y>
250     </hint>
251    </hints>
252   </connection>
253   <connection>
254    <sender>m_table</sender>
255    <signal>doubleClicked(QModelIndex)</signal>
256    <receiver>ProfileDialog</receiver>
257    <slot>tableDoubleClicked(QModelIndex)</slot>
258    <hints>
259     <hint type="sourcelabel">
260      <x>511</x>
261      <y>671</y>
262     </hint>
263     <hint type="destinationlabel">
264      <x>511</x>
265      <y>383</y>
266     </hint>
267    </hints>
268   </connection>
269  </connections>
270  <slots>
271   <signal>jumpToCall(int)</signal>
272   <slot>setVerticalScrollMax(int)</slot>
273   <slot>setHorizontalScrollMax(int)</slot>
274   <slot>tableDoubleClicked(QModelIndex)</slot>
275  </slots>
276 </ui>