]> git.sesse.net Git - pkanalytics/blobdiff - mainwindow.ui
Support splitting filters, instead of creating all of them manually.
[pkanalytics] / mainwindow.ui
index a84289e55f646a1ed8eda579a4effca59e7ba171..14608d3c9da48c8a032fb8abec00214cf1e07aa4 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>1031</width>
-    <height>706</height>
+    <width>1278</width>
+    <height>754</height>
    </rect>
   </property>
   <property name="windowTitle">
   <widget class="QWidget" name="centralwidget">
    <layout class="QGridLayout" name="gridLayout_2">
     <item row="0" column="0">
-     <layout class="QGridLayout" name="main_grid" rowstretch="1,0,0,0,0,0" columnstretch="1,0">
-      <item row="3" column="0" colspan="2">
-       <layout class="QHBoxLayout" name="nav_buttons" stretch="1,0,0,0,0,0,0,0,2">
-        <item>
-         <widget class="QLabel" name="timestamp">
-          <property name="text">
-           <string>0:00:00.000</string>
-          </property>
-          <property name="alignment">
-           <set>Qt::AlignCenter</set>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="minus10s">
-          <property name="text">
-           <string>-10s (&amp;K)</string>
-          </property>
-          <property name="shortcut">
-           <string>K</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="plus10s">
-          <property name="text">
-           <string>+10s (&amp;L)</string>
-          </property>
-          <property name="shortcut">
-           <string>L</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="minus2s">
-          <property name="text">
-           <string>-2s (&amp;←)</string>
-          </property>
-          <property name="shortcut">
-           <string>Left</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="plus2s">
-          <property name="text">
-           <string>+2s (&amp;→)</string>
-          </property>
-          <property name="shortcut">
-           <string>Right</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="minus1f">
-          <property name="text">
-           <string>-1f (&amp;,)</string>
-          </property>
-          <property name="shortcut">
-           <string>,</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="plus1f">
-          <property name="text">
-           <string>+1f (&amp;.)</string>
-          </property>
-          <property name="shortcut">
-           <string>.</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="play_pause">
-          <property name="minimumSize">
-           <size>
-            <width>110</width>
-            <height>0</height>
-           </size>
-          </property>
-          <property name="text">
-           <string>Pause (space)</string>
-          </property>
-          <property name="shortcut">
-           <string>Space</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QLabel" name="status">
-          <property name="text">
-           <string>0–0 | offense | 0 passes, 0 sec possession</string>
-          </property>
-          <property name="alignment">
-           <set>Qt::AlignCenter</set>
-          </property>
-         </widget>
-        </item>
-       </layout>
-      </item>
-      <item row="0" column="0">
-       <widget class="QVideoWidget" name="video" native="true">
-        <property name="minimumSize">
-         <size>
-          <width>320</width>
-          <height>240</height>
-         </size>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="1">
-       <layout class="QVBoxLayout" name="buttons">
-        <item>
-         <spacer name="verticalSpacer_2">
-          <property name="orientation">
-           <enum>Qt::Vertical</enum>
-          </property>
-          <property name="sizeHint" stdset="0">
-           <size>
-            <width>20</width>
-            <height>40</height>
-           </size>
-          </property>
-         </spacer>
-        </item>
+     <layout class="QGridLayout" name="main_grid" rowstretch="1,0,0,0" columnstretch="1,0">
+      <item row="0" column="1" rowspan="4">
+       <layout class="QVBoxLayout" name="buttons" stretch="0,0,0,0,0,0,0,1,0">
         <item>
          <layout class="QGridLayout" name="player_grid">
           <item row="3" column="0" colspan="2">
             <property name="text">
              <string>Player 3 (&amp;e)</string>
             </property>
+            <property name="shortcut">
+             <string>E</string>
+            </property>
            </widget>
           </item>
           <item row="4" column="2" colspan="2">
            <widget class="QPushButton" name="player_6">
             <property name="text">
-             <string>Player 6 (&amp;e)</string>
+             <string>Player 6 (&amp;d)</string>
+            </property>
+            <property name="shortcut">
+             <string>D</string>
             </property>
            </widget>
           </item>
             <property name="text">
              <string>Player 7 (&amp;f)</string>
             </property>
+            <property name="shortcut">
+             <string>F</string>
+            </property>
            </widget>
           </item>
           <item row="3" column="2" colspan="2">
             <property name="text">
              <string>Player 4 (&amp;a)</string>
             </property>
+            <property name="shortcut">
+             <string>A</string>
+            </property>
            </widget>
           </item>
           <item row="4" column="0" colspan="2">
             <property name="text">
              <string>Player 5 (&amp;s)</string>
             </property>
+            <property name="shortcut">
+             <string>S</string>
+            </property>
            </widget>
           </item>
           <item row="2" column="0" colspan="2">
             <property name="text">
              <string>Player 1 (&amp;q)</string>
             </property>
+            <property name="shortcut">
+             <string>Q</string>
+            </property>
            </widget>
           </item>
           <item row="2" column="2" colspan="2">
             <property name="text">
              <string>Player 2 (&amp;w)</string>
             </property>
+            <property name="shortcut">
+             <string>W</string>
+            </property>
            </widget>
           </item>
          </layout>
         </item>
         <item>
-         <widget class="QLabel" name="offense_label">
+         <widget class="ClickableLabel" name="offense_label">
           <property name="text">
            <string>Offense</string>
           </property>
         </item>
         <item>
          <layout class="QGridLayout" name="offense_grid">
-          <item row="4" column="0">
-           <widget class="QPushButton" name="pushButton_7">
+          <item row="1" column="2" colspan="2">
+           <widget class="QPushButton" name="goal">
             <property name="text">
-             <string>Pull (&amp;p)</string>
+             <string>Goal (&amp;g)</string>
             </property>
-           </widget>
-          </item>
-          <item row="0" column="0">
-           <widget class="QPushButton" name="pushButton">
-            <property name="text">
-             <string>Catch/take (&amp;c)</string>
+            <property name="shortcut">
+             <string>G</string>
             </property>
            </widget>
           </item>
-          <item row="4" column="1">
-           <widget class="QPushButton" name="pushButton_8">
+          <item row="0" column="2" colspan="2">
+           <widget class="QPushButton" name="throwaway">
             <property name="text">
-             <string>Pull landed (&amp;p)</string>
+             <string>Throwaway (&amp;t)</string>
+            </property>
+            <property name="shortcut">
+             <string>T</string>
             </property>
            </widget>
           </item>
-          <item row="0" column="1">
-           <widget class="QPushButton" name="pushButton_2">
+          <item row="1" column="0" colspan="2">
+           <widget class="QPushButton" name="drop">
             <property name="text">
-             <string>Throwaway (&amp;t)</string>
+             <string>Drop (&amp;x)</string>
+            </property>
+            <property name="shortcut">
+             <string>X</string>
             </property>
            </widget>
           </item>
-          <item row="2" column="0">
-           <widget class="QPushButton" name="pushButton_3">
+          <item row="0" column="0" colspan="2">
+           <widget class="QPushButton" name="catch_">
             <property name="text">
-             <string>Soft plus (&amp;+)</string>
+             <string>Catch/take (&amp;c)</string>
+            </property>
+            <property name="shortcut">
+             <string>C</string>
             </property>
            </widget>
           </item>
-          <item row="2" column="1">
-           <widget class="QPushButton" name="pushButton_6">
+          <item row="4" column="1" colspan="2">
+           <widget class="QPushButton" name="stallout">
             <property name="text">
-             <string>Soft minus (&amp;-)</string>
+             <string>Stallout (&amp;u)</string>
+            </property>
+            <property name="shortcut">
+             <string>U</string>
             </property>
            </widget>
           </item>
-          <item row="1" column="0">
-           <widget class="QPushButton" name="pushButton_4">
+          <item row="3" column="0" colspan="2">
+           <widget class="QPushButton" name="pull_or_was_d">
             <property name="text">
-             <string>Drop (&amp;x)</string>
+             <string>Pull (&amp;p)</string>
+            </property>
+            <property name="shortcut">
+             <string>P</string>
             </property>
            </widget>
           </item>
-          <item row="1" column="1">
-           <widget class="QPushButton" name="pushButton_5">
+          <item row="3" column="2" colspan="2">
+           <widget class="QPushButton" name="offensive_formation">
+            <property name="enabled">
+             <bool>true</bool>
+            </property>
             <property name="text">
-             <string>Goal (&amp;g)</string>
+             <string>Formation (&amp;o)</string>
             </property>
            </widget>
           </item>
          </layout>
         </item>
         <item>
-         <widget class="QLabel" name="defense_label">
+         <widget class="ClickableLabel" name="defense_label">
           <property name="text">
            <string>Defense</string>
           </property>
         <item>
          <layout class="QGridLayout" name="defense_grid">
           <item row="1" column="0">
-           <widget class="QPushButton" name="pushButton_11">
+           <widget class="QPushButton" name="our_defense">
             <property name="text">
              <string>Defense (&amp;x)</string>
             </property>
-           </widget>
-          </item>
-          <item row="2" column="0">
-           <widget class="QPushButton" name="pushButton_13">
-            <property name="text">
-             <string>Soft plus (&amp;+)</string>
+            <property name="shortcut">
+             <string>X</string>
             </property>
            </widget>
           </item>
           <item row="0" column="1">
-           <widget class="QPushButton" name="pushButton_10">
+           <widget class="QPushButton" name="their_throwaway">
             <property name="text">
              <string>Their t.away (&amp;t)</string>
             </property>
+            <property name="shortcut">
+             <string>T</string>
+            </property>
            </widget>
           </item>
           <item row="0" column="0">
-           <widget class="QPushButton" name="pushButton_9">
+           <widget class="QPushButton" name="interception">
             <property name="text">
              <string>Interception (&amp;c)</string>
             </property>
-           </widget>
-          </item>
-          <item row="2" column="1">
-           <widget class="QPushButton" name="pushButton_14">
-            <property name="text">
-             <string>Soft minus (&amp;-)</string>
+            <property name="shortcut">
+             <string>C</string>
             </property>
            </widget>
           </item>
           <item row="1" column="1">
-           <widget class="QPushButton" name="pushButton_12">
+           <widget class="QPushButton" name="their_goal">
             <property name="text">
              <string>Their goal (&amp;g)</string>
             </property>
+            <property name="shortcut">
+             <string>G</string>
+            </property>
            </widget>
           </item>
-          <item row="3" column="0">
-           <widget class="QPushButton" name="pushButton_16">
+          <item row="2" column="0">
+           <widget class="QPushButton" name="their_pull">
             <property name="text">
-             <string>Pull (&amp;p)</string>
+             <string>Their pull (&amp;p)</string>
+            </property>
+            <property name="shortcut">
+             <string>P</string>
             </property>
            </widget>
           </item>
-          <item row="3" column="1">
-           <widget class="QPushButton" name="pushButton_15">
+          <item row="2" column="1">
+           <widget class="QPushButton" name="defensive_formation">
+            <property name="enabled">
+             <bool>true</bool>
+            </property>
             <property name="text">
-             <string>Our foul (&amp;o)</string>
+             <string>Formation (&amp;p)</string>
+            </property>
+            <property name="shortcut">
+             <string>O</string>
             </property>
            </widget>
           </item>
         </item>
         <item>
          <layout class="QGridLayout" name="misc_grid">
-          <item row="0" column="0">
-           <widget class="QPushButton" name="pushButton_17">
+          <item row="1" column="1">
+           <widget class="QPushButton" name="stoppage">
             <property name="text">
-             <string>Substitution (&amp;b)</string>
+             <string>Stoppage (&amp;v)</string>
+            </property>
+            <property name="shortcut">
+             <string>V</string>
             </property>
            </widget>
           </item>
           <item row="1" column="0">
-           <widget class="QPushButton" name="pushButton_18">
+           <widget class="QPushButton" name="substitution">
+            <property name="text">
+             <string>Substitution (&amp;b)</string>
+            </property>
+            <property name="shortcut">
+             <string>B</string>
+            </property>
+           </widget>
+          </item>
+          <item row="2" column="0">
+           <widget class="QPushButton" name="unknown">
             <property name="text">
              <string>Unknown (&amp;?)</string>
             </property>
+            <property name="shortcut">
+             <string>?</string>
+            </property>
            </widget>
           </item>
-          <item row="1" column="1">
-           <widget class="QPushButton" name="pushButton_20">
+          <item row="2" column="1">
+           <widget class="QPushButton" name="delete_">
             <property name="text">
              <string>Delete (⌫)</string>
             </property>
+            <property name="shortcut">
+             <string>Backspace</string>
+            </property>
+           </widget>
+          </item>
+          <item row="0" column="0">
+           <widget class="QPushButton" name="soft_plus">
+            <property name="text">
+             <string>Soft plus (&amp;+)</string>
+            </property>
+            <property name="shortcut">
+             <string>+</string>
+            </property>
            </widget>
           </item>
           <item row="0" column="1">
-           <widget class="QPushButton" name="pushButton_19">
+           <widget class="QPushButton" name="soft_minus">
             <property name="text">
-             <string>Stoppage (&amp;v)</string>
+             <string>Soft minus (&amp;-)</string>
+            </property>
+            <property name="shortcut">
+             <string>-</string>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </item>
+        <item>
+         <widget class="QTableView" name="player_view">
+          <property name="selectionMode">
+           <enum>QAbstractItemView::MultiSelection</enum>
+          </property>
+          <property name="selectionBehavior">
+           <enum>QAbstractItemView::SelectRows</enum>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,0,0">
+          <item>
+           <widget class="QPushButton" name="get_current_players">
+            <property name="text">
+             <string>Current</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QPushButton" name="clear_player_list">
+            <property name="text">
+             <string>Clear</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QLabel" name="selected_gender_ratio">
+            <property name="text">
+             <string>0/0 F, 0/0 M</string>
+            </property>
+            <property name="alignment">
+             <set>Qt::AlignCenter</set>
             </property>
            </widget>
           </item>
          </layout>
         </item>
+       </layout>
+      </item>
+      <item row="0" column="0">
+       <widget class="VideoWidget" name="video">
+        <property name="minimumSize">
+         <size>
+          <width>320</width>
+          <height>240</height>
+         </size>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <layout class="QHBoxLayout" name="nav_buttons" stretch="1,0,0,0,0,0,0,0,2">
+        <item>
+         <widget class="QLabel" name="timestamp">
+          <property name="font">
+           <font>
+            <family>Noto Sans</family>
+           </font>
+          </property>
+          <property name="text">
+           <string>0:00:00.000</string>
+          </property>
+          <property name="alignment">
+           <set>Qt::AlignCenter</set>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="minus10s">
+          <property name="text">
+           <string>-10s (&amp;K)</string>
+          </property>
+          <property name="shortcut">
+           <string>K</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="plus10s">
+          <property name="text">
+           <string>+10s (&amp;L)</string>
+          </property>
+          <property name="shortcut">
+           <string>L</string>
+          </property>
+         </widget>
+        </item>
         <item>
-         <spacer name="verticalSpacer">
-          <property name="orientation">
-           <enum>Qt::Vertical</enum>
+         <widget class="QPushButton" name="minus2s">
+          <property name="text">
+           <string>-2s (&amp;←)</string>
           </property>
-          <property name="sizeHint" stdset="0">
+          <property name="shortcut">
+           <string>Left</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="plus2s">
+          <property name="text">
+           <string>+2s (&amp;→)</string>
+          </property>
+          <property name="shortcut">
+           <string>Right</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="minus1f">
+          <property name="text">
+           <string>-1f (&amp;,)</string>
+          </property>
+          <property name="shortcut">
+           <string>,</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="plus1f">
+          <property name="text">
+           <string>+1f (&amp;.)</string>
+          </property>
+          <property name="shortcut">
+           <string>.</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="play_pause">
+          <property name="minimumSize">
            <size>
-            <width>20</width>
-            <height>40</height>
+            <width>110</width>
+            <height>0</height>
            </size>
           </property>
-         </spacer>
+          <property name="text">
+           <string>Pause (space)</string>
+          </property>
+          <property name="shortcut">
+           <string>Space</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QLabel" name="status">
+          <property name="text">
+           <string>0–0 | offense | 0 passes, 0 sec possession</string>
+          </property>
+          <property name="alignment">
+           <set>Qt::AlignCenter</set>
+          </property>
+         </widget>
         </item>
        </layout>
       </item>
-      <item row="5" column="0" colspan="2">
-       <widget class="QTableView" name="event_view"/>
+      <item row="2" column="0">
+       <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0,0">
+        <item>
+         <widget class="QTableView" name="event_view">
+          <property name="selectionMode">
+           <enum>QAbstractItemView::SingleSelection</enum>
+          </property>
+          <property name="selectionBehavior">
+           <enum>QAbstractItemView::SelectRows</enum>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <layout class="QVBoxLayout" name="offensive_formation_layout">
+          <item>
+           <widget class="QLabel" name="label">
+            <property name="text">
+             <string>Offensive formation</string>
+            </property>
+            <property name="alignment">
+             <set>Qt::AlignCenter</set>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QListView" name="offensive_formation_view"/>
+          </item>
+         </layout>
+        </item>
+        <item>
+         <layout class="QVBoxLayout" name="defensive_formation_layout">
+          <item>
+           <widget class="QLabel" name="label_2">
+            <property name="text">
+             <string>Defensive formation</string>
+            </property>
+            <property name="alignment">
+             <set>Qt::AlignCenter</set>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QListView" name="defensive_formation_view"/>
+          </item>
+         </layout>
+        </item>
+       </layout>
       </item>
      </layout>
     </item>
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>1031</width>
+     <width>1278</width>
      <height>23</height>
     </rect>
    </property>
+   <widget class="QMenu" name="menu_File">
+    <property name="title">
+     <string>&amp;File</string>
+    </property>
+    <addaction name="action_export_json"/>
+    <addaction name="action_exit"/>
+   </widget>
+   <widget class="QMenu" name="menuMatch">
+    <property name="title">
+     <string>Match</string>
+    </property>
+    <addaction name="action_gender_rule_a"/>
+    <addaction name="action_gender_pull_rule"/>
+   </widget>
+   <addaction name="menu_File"/>
+   <addaction name="menuMatch"/>
   </widget>
-  <widget class="QStatusBar" name="statusbar"/>
+  <action name="action_export_json">
+   <property name="text">
+    <string>Export &amp;JSON</string>
+   </property>
+  </action>
+  <action name="action_exit">
+   <property name="text">
+    <string>E&amp;xit</string>
+   </property>
+  </action>
+  <action name="action_gender_rule_a">
+   <property name="checkable">
+    <bool>true</bool>
+   </property>
+   <property name="text">
+    <string>Gender rule &amp;A</string>
+   </property>
+  </action>
+  <action name="action_gender_pull_rule">
+   <property name="checkable">
+    <bool>true</bool>
+   </property>
+   <property name="text">
+    <string>Gender &amp;pull rule</string>
+   </property>
+  </action>
  </widget>
  <customwidgets>
   <customwidget>
-   <class>QVideoWidget</class>
-   <extends>QWidget</extends>
-   <header location="global">QVideoWidget</header>
+   <class>VideoWidget</class>
+   <extends>QOpenGLWidget</extends>
+   <header>video_widget.h</header>
    <container>1</container>
   </customwidget>
+  <customwidget>
+   <class>ClickableLabel</class>
+   <extends>QLabel</extends>
+   <header>clickable_label.h</header>
+  </customwidget>
  </customwidgets>
  <resources/>
  <connections/>