all repos — mgba @ 9f36284fd1b62a62bdd0bee765895bd8cac8eb72

mGBA Game Boy Advance Emulator

src/platform/qt/ShortcutView.ui (view raw)

  1<?xml version="1.0" encoding="UTF-8"?>
  2<ui version="4.0">
  3 <class>ShortcutView</class>
  4 <widget class="QWidget" name="ShortcutView">
  5  <property name="geometry">
  6   <rect>
  7    <x>0</x>
  8    <y>0</y>
  9    <width>425</width>
 10    <height>443</height>
 11   </rect>
 12  </property>
 13  <property name="windowTitle">
 14   <string>Edit Shortcuts</string>
 15  </property>
 16  <layout class="QVBoxLayout" name="verticalLayout">
 17   <item>
 18    <widget class="QTreeView" name="shortcutTable">
 19     <attribute name="headerDefaultSectionSize">
 20      <number>120</number>
 21     </attribute>
 22    </widget>
 23   </item>
 24   <item>
 25    <layout class="QHBoxLayout" name="horizontalLayout">
 26     <item>
 27      <widget class="QRadioButton" name="keyboardButton">
 28       <property name="text">
 29        <string>Keyboard</string>
 30       </property>
 31       <property name="checked">
 32        <bool>true</bool>
 33       </property>
 34      </widget>
 35     </item>
 36     <item>
 37      <widget class="QRadioButton" name="gamepadButton">
 38       <property name="text">
 39        <string>Gamepad</string>
 40       </property>
 41      </widget>
 42     </item>
 43     <item>
 44      <widget class="QPushButton" name="clearButton">
 45       <property name="text">
 46        <string>Clear</string>
 47       </property>
 48      </widget>
 49     </item>
 50     <item>
 51      <spacer name="horizontalSpacer_2">
 52       <property name="orientation">
 53        <enum>Qt::Horizontal</enum>
 54       </property>
 55       <property name="sizeHint" stdset="0">
 56        <size>
 57         <width>40</width>
 58         <height>20</height>
 59        </size>
 60       </property>
 61      </spacer>
 62     </item>
 63     <item>
 64      <widget class="QKeySequenceEdit" name="keySequenceEdit">
 65       <property name="sizePolicy">
 66        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 67         <horstretch>0</horstretch>
 68         <verstretch>0</verstretch>
 69        </sizepolicy>
 70       </property>
 71      </widget>
 72     </item>
 73     <item>
 74      <widget class="QGBA::KeyEditor" name="keyEdit">
 75       <property name="sizePolicy">
 76        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 77         <horstretch>0</horstretch>
 78         <verstretch>0</verstretch>
 79        </sizepolicy>
 80       </property>
 81       <property name="visible">
 82        <bool>false</bool>
 83       </property>
 84      </widget>
 85     </item>
 86    </layout>
 87   </item>
 88  </layout>
 89 </widget>
 90 <customwidgets>
 91  <customwidget>
 92   <class>QGBA::KeyEditor</class>
 93   <extends>QLineEdit</extends>
 94   <header>KeyEditor.h</header>
 95  </customwidget>
 96 </customwidgets>
 97 <resources/>
 98 <connections>
 99  <connection>
100   <sender>keyboardButton</sender>
101   <signal>toggled(bool)</signal>
102   <receiver>keySequenceEdit</receiver>
103   <slot>setVisible(bool)</slot>
104   <hints>
105    <hint type="sourcelabel">
106     <x>86</x>
107     <y>374</y>
108    </hint>
109    <hint type="destinationlabel">
110     <x>66</x>
111     <y>20</y>
112    </hint>
113   </hints>
114  </connection>
115  <connection>
116   <sender>gamepadButton</sender>
117   <signal>toggled(bool)</signal>
118   <receiver>keyEdit</receiver>
119   <slot>setVisible(bool)</slot>
120   <hints>
121    <hint type="sourcelabel">
122     <x>213</x>
123     <y>374</y>
124    </hint>
125    <hint type="destinationlabel">
126     <x>206</x>
127     <y>340</y>
128    </hint>
129   </hints>
130  </connection>
131 </connections>
132</ui>