]> git.cworth.org Git - apitrace/blobdiff - gui/ui/profiledialog.ui
Combine timeline and histogram tabs.
[apitrace] / gui / ui / profiledialog.ui
index 49b77bd1505dbb3e0ce01df019682e778a19a115..7a54ef72595e8c68b964c98b8e5de9636422c6c7 100644 (file)
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>1079</width>
-    <height>768</height>
+    <width>1105</width>
+    <height>804</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>Profile Results</string>
   </property>
-  <layout class="QVBoxLayout" name="verticalLayout_3">
-   <property name="spacing">
-    <number>0</number>
-   </property>
+  <property name="styleSheet">
+   <string notr="true"/>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout_2">
    <property name="margin">
     <number>0</number>
    </property>
    <item>
-    <widget class="QTabWidget" name="tabWidget">
-     <property name="currentIndex">
-      <number>1</number>
+    <widget class="QSplitter" name="splitter">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
      </property>
-     <widget class="QWidget" name="tabTimeline">
-      <attribute name="title">
-       <string>Timeline</string>
-      </attribute>
-      <layout class="QVBoxLayout" name="verticalLayout_2">
+     <property name="opaqueResize">
+      <bool>false</bool>
+     </property>
+     <widget class="QWidget" name="timelineContainer" native="true">
+      <property name="sizePolicy">
+       <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+        <horstretch>0</horstretch>
+        <verstretch>1</verstretch>
+       </sizepolicy>
+      </property>
+      <property name="focusPolicy">
+       <enum>Qt::WheelFocus</enum>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout">
+       <property name="spacing">
+        <number>0</number>
+       </property>
        <property name="margin">
         <number>0</number>
        </property>
        <item>
-        <widget class="QSplitter" name="splitter">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <property name="orientation">
-          <enum>Qt::Vertical</enum>
+        <layout class="QGridLayout" name="gridLayout">
+         <property name="spacing">
+          <number>2</number>
          </property>
-         <widget class="QWidget" name="timelineContainer" native="true">
-          <property name="sizePolicy">
-           <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-            <horstretch>0</horstretch>
-            <verstretch>1</verstretch>
-           </sizepolicy>
-          </property>
-          <property name="focusPolicy">
-           <enum>Qt::WheelFocus</enum>
-          </property>
-          <layout class="QVBoxLayout" name="verticalLayout">
-           <property name="spacing">
-            <number>0</number>
+         <item row="0" column="0">
+          <widget class="TimelineWidget" name="m_timeline" native="true">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
-           <property name="margin">
-            <number>0</number>
+           <property name="focusPolicy">
+            <enum>Qt::WheelFocus</enum>
            </property>
-           <item>
-            <layout class="QGridLayout" name="gridLayout">
-             <property name="spacing">
-              <number>2</number>
-             </property>
-             <item row="0" column="0">
-              <widget class="TimelineWidget" name="m_timeline" native="true">
-               <property name="sizePolicy">
-                <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-                 <horstretch>0</horstretch>
-                 <verstretch>0</verstretch>
-                </sizepolicy>
-               </property>
-               <property name="focusPolicy">
-                <enum>Qt::WheelFocus</enum>
-               </property>
-              </widget>
-             </item>
-             <item row="0" column="1">
-              <widget class="QScrollBar" name="m_verticalScrollBar">
-               <property name="sizePolicy">
-                <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
-                 <horstretch>0</horstretch>
-                 <verstretch>0</verstretch>
-                </sizepolicy>
-               </property>
-               <property name="orientation">
-                <enum>Qt::Vertical</enum>
-               </property>
-              </widget>
-             </item>
-             <item row="1" column="0">
-              <widget class="QScrollBar" name="m_horizontalScrollBar">
-               <property name="sizePolicy">
-                <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
-                 <horstretch>0</horstretch>
-                 <verstretch>0</verstretch>
-                </sizepolicy>
-               </property>
-               <property name="maximum">
-                <number>10000</number>
-               </property>
-               <property name="orientation">
-                <enum>Qt::Horizontal</enum>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </item>
-          </layout>
-         </widget>
-         <widget class="QTableView" name="m_table">
-          <property name="sizePolicy">
-           <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-            <horstretch>0</horstretch>
-            <verstretch>0</verstretch>
-           </sizepolicy>
-          </property>
-          <property name="editTriggers">
-           <set>QAbstractItemView::NoEditTriggers</set>
-          </property>
-          <property name="selectionMode">
-           <enum>QAbstractItemView::SingleSelection</enum>
-          </property>
-          <property name="verticalScrollMode">
-           <enum>QAbstractItemView::ScrollPerPixel</enum>
-          </property>
-          <property name="horizontalScrollMode">
-           <enum>QAbstractItemView::ScrollPerPixel</enum>
-          </property>
-          <property name="sortingEnabled">
-           <bool>true</bool>
-          </property>
-          <property name="wordWrap">
-           <bool>false</bool>
-          </property>
-          <attribute name="verticalHeaderVisible">
-           <bool>false</bool>
-          </attribute>
-         </widget>
-        </widget>
+          </widget>
+         </item>
+         <item row="0" column="1">
+          <widget class="QScrollBar" name="m_verticalScrollBar">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="orientation">
+            <enum>Qt::Vertical</enum>
+           </property>
+          </widget>
+         </item>
+         <item row="1" column="0">
+          <widget class="QScrollBar" name="m_horizontalScrollBar">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="maximum">
+            <number>10000</number>
+           </property>
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+          </widget>
+         </item>
+        </layout>
        </item>
       </layout>
      </widget>
-     <widget class="QWidget" name="tabCalls">
-      <attribute name="title">
-       <string>Histogram</string>
-      </attribute>
-      <layout class="QVBoxLayout" name="verticalLayout_4">
+     <widget class="QWidget" name="graphContainer" native="true">
+      <property name="sizePolicy">
+       <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+        <horstretch>0</horstretch>
+        <verstretch>0</verstretch>
+       </sizepolicy>
+      </property>
+      <property name="minimumSize">
+       <size>
+        <width>0</width>
+        <height>200</height>
+       </size>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout_3">
+       <property name="spacing">
+        <number>0</number>
+       </property>
        <property name="margin">
         <number>0</number>
        </property>
        <item>
-        <widget class="QSplitter" name="splitter_2">
-         <property name="orientation">
-          <enum>Qt::Vertical</enum>
+        <widget class="GraphWidget" name="m_gpuGraph" native="true">
+         <property name="sizePolicy">
+          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+           <horstretch>0</horstretch>
+           <verstretch>0</verstretch>
+          </sizepolicy>
+         </property>
+         <property name="minimumSize">
+          <size>
+           <width>0</width>
+           <height>0</height>
+          </size>
+         </property>
+         <property name="focusPolicy">
+          <enum>Qt::WheelFocus</enum>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <widget class="GraphWidget" name="m_cpuGraph" native="true">
+         <property name="sizePolicy">
+          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+           <horstretch>0</horstretch>
+           <verstretch>0</verstretch>
+          </sizepolicy>
+         </property>
+         <property name="minimumSize">
+          <size>
+           <width>0</width>
+           <height>0</height>
+          </size>
          </property>
-         <widget class="GraphWidget" name="m_gpuGraph" native="true">
-          <property name="sizePolicy">
-           <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-            <horstretch>0</horstretch>
-            <verstretch>0</verstretch>
-           </sizepolicy>
-          </property>
-          <property name="focusPolicy">
-           <enum>Qt::WheelFocus</enum>
-          </property>
-         </widget>
-         <widget class="GraphWidget" name="m_cpuGraph" native="true">
-          <property name="sizePolicy">
-           <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-            <horstretch>0</horstretch>
-            <verstretch>0</verstretch>
-           </sizepolicy>
-          </property>
-         </widget>
         </widget>
        </item>
       </layout>
      </widget>
+     <widget class="QTableView" name="m_table">
+      <property name="sizePolicy">
+       <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+        <horstretch>0</horstretch>
+        <verstretch>0</verstretch>
+       </sizepolicy>
+      </property>
+      <property name="editTriggers">
+       <set>QAbstractItemView::NoEditTriggers</set>
+      </property>
+      <property name="selectionMode">
+       <enum>QAbstractItemView::SingleSelection</enum>
+      </property>
+      <property name="selectionBehavior">
+       <enum>QAbstractItemView::SelectRows</enum>
+      </property>
+      <property name="verticalScrollMode">
+       <enum>QAbstractItemView::ScrollPerPixel</enum>
+      </property>
+      <property name="horizontalScrollMode">
+       <enum>QAbstractItemView::ScrollPerPixel</enum>
+      </property>
+      <property name="sortingEnabled">
+       <bool>true</bool>
+      </property>
+      <property name="wordWrap">
+       <bool>false</bool>
+      </property>
+      <attribute name="verticalHeaderVisible">
+       <bool>false</bool>
+      </attribute>
+     </widget>
     </widget>
    </item>
   </layout>
     <signal>horizontalScrollMaxChanged(int)</signal>
     <signal>verticalScrollMaxChanged(int)</signal>
     <signal>jumpToCall(int)</signal>
+    <signal>selectedTime(int64_t,int64_t)</signal>
+    <signal>selectedProgram(unsigned)</signal>
+    <signal>selectedNone()</signal>
     <slot>setHorizontalScrollValue(int)</slot>
     <slot>setVerticalScrollValue(int)</slot>
    </slots>
    <extends>QWidget</extends>
    <header>graphwidget.h</header>
    <container>1</container>
+   <slots>
+    <signal>viewChanged(int,int)</signal>
+    <signal>selectedTime(int64_t,int64_t)</signal>
+    <signal>selectedProgram(unsigned)</signal>
+    <signal>selectedNone()</signal>
+    <slot>changeView(int,int)</slot>
+   </slots>
   </customwidget>
  </customwidgets>
  <resources/>
    <slot>setHorizontalScrollValue(int)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>402</x>
-     <y>195</y>
+     <x>373</x>
+     <y>434</y>
     </hint>
     <hint type="destinationlabel">
-     <x>402</x>
-     <y>93</y>
+     <x>373</x>
+     <y>213</y>
     </hint>
    </hints>
   </connection>
    <slot>setVerticalScrollValue(int)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>813</x>
-     <y>93</y>
+     <x>754</x>
+     <y>213</y>
     </hint>
     <hint type="destinationlabel">
-     <x>402</x>
-     <y>93</y>
+     <x>373</x>
+     <y>213</y>
     </hint>
    </hints>
   </connection>
    <slot>setValue(int)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>402</x>
-     <y>93</y>
+     <x>373</x>
+     <y>213</y>
     </hint>
     <hint type="destinationlabel">
-     <x>402</x>
-     <y>195</y>
+     <x>373</x>
+     <y>434</y>
     </hint>
    </hints>
   </connection>
    <slot>setValue(int)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>402</x>
-     <y>93</y>
+     <x>373</x>
+     <y>213</y>
     </hint>
     <hint type="destinationlabel">
-     <x>813</x>
-     <y>93</y>
+     <x>754</x>
+     <y>213</y>
     </hint>
    </hints>
   </connection>
    <slot>setHorizontalScrollMax(int)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>504</x>
-     <y>277</y>
+     <x>373</x>
+     <y>213</y>
     </hint>
     <hint type="destinationlabel">
      <x>511</x>
    <slot>setVerticalScrollMax(int)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>504</x>
-     <y>277</y>
+     <x>373</x>
+     <y>213</y>
     </hint>
     <hint type="destinationlabel">
      <x>511</x>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>m_cpuGraph</sender>
+   <signal>viewChanged(int,int)</signal>
+   <receiver>m_gpuGraph</receiver>
+   <slot>changeView(int,int)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>511</x>
+     <y>687</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>511</x>
+     <y>527</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_gpuGraph</sender>
+   <signal>viewChanged(int,int)</signal>
+   <receiver>m_cpuGraph</receiver>
+   <slot>changeView(int,int)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>511</x>
+     <y>527</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>511</x>
+     <y>687</y>
+    </hint>
+   </hints>
+  </connection>
   <connection>
    <sender>m_table</sender>
    <signal>doubleClicked(QModelIndex)</signal>
    <slot>tableDoubleClicked(QModelIndex)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>511</x>
-     <y>671</y>
+     <x>895</x>
+     <y>220</y>
     </hint>
     <hint type="destinationlabel">
      <x>511</x>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>m_cpuGraph</sender>
+   <signal>selectedTime(int64_t,int64_t)</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectTime(int64_t,int64_t)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>552</x>
+     <y>555</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_gpuGraph</sender>
+   <signal>selectedTime(int64_t,int64_t)</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectTime(int64_t,int64_t)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>552</x>
+     <y>455</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_timeline</sender>
+   <signal>selectedTime(int64_t,int64_t)</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectTime(int64_t,int64_t)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>544</x>
+     <y>192</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_cpuGraph</sender>
+   <signal>selectedProgram(unsigned)</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectProgram(unsigned)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>552</x>
+     <y>555</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_gpuGraph</sender>
+   <signal>selectedProgram(unsigned)</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectProgram(unsigned)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>552</x>
+     <y>455</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_timeline</sender>
+   <signal>selectedProgram(unsigned)</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectProgram(unsigned)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>544</x>
+     <y>192</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_cpuGraph</sender>
+   <signal>selectedNone()</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectNone()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>552</x>
+     <y>555</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_gpuGraph</sender>
+   <signal>selectedNone()</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectNone()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>552</x>
+     <y>455</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>m_timeline</sender>
+   <signal>selectedNone()</signal>
+   <receiver>ProfileDialog</receiver>
+   <slot>selectNone()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>544</x>
+     <y>192</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>552</x>
+     <y>401</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <signal>jumpToCall(int)</signal>
   <slot>setVerticalScrollMax(int)</slot>
   <slot>setHorizontalScrollMax(int)</slot>
   <slot>tableDoubleClicked(QModelIndex)</slot>
+  <slot>selectTime(int64_t,int64_t)</slot>
+  <slot>selectProgram(unsigned)</slot>
+  <slot>selectNone()</slot>
  </slots>
 </ui>