Advertisement
Guest User

UI

a guest
Jan 17th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.58 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3.  <class>NewGameDialog</class>
  4.  <widget class="QDialog" name="NewGameDialog">
  5.   <property name="windowModality">
  6.    <enum>Qt::ApplicationModal</enum>
  7.   </property>
  8.   <property name="geometry">
  9.    <rect>
  10.     <x>0</x>
  11.     <y>0</y>
  12.     <width>265</width>
  13.     <height>200</height>
  14.    </rect>
  15.   </property>
  16.   <property name="sizePolicy">
  17.    <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  18.     <horstretch>0</horstretch>
  19.     <verstretch>0</verstretch>
  20.    </sizepolicy>
  21.   </property>
  22.   <property name="windowTitle">
  23.    <string>New Game</string>
  24.   </property>
  25.   <property name="windowIcon">
  26.    <iconset resource="rsdesktop.qrc">
  27.     <normaloff>:/images/Resources/icon.png</normaloff>:/images/Resources/icon.png</iconset>
  28.   </property>
  29.   <layout class="QGridLayout" name="gridLayoutMain">
  30.    <item row="2" column="0">
  31.     <layout class="QHBoxLayout" name="horizontalLayout">
  32.      <item>
  33.       <spacer name="horizontalSpacerLeft">
  34.        <property name="orientation">
  35.         <enum>Qt::Horizontal</enum>
  36.        </property>
  37.        <property name="sizeType">
  38.         <enum>QSizePolicy::Fixed</enum>
  39.        </property>
  40.        <property name="sizeHint" stdset="0">
  41.         <size>
  42.          <width>20</width>
  43.          <height>20</height>
  44.         </size>
  45.        </property>
  46.       </spacer>
  47.      </item>
  48.      <item>
  49.       <widget class="QPushButton" name="pushButtonStart">
  50.        <property name="text">
  51.         <string>Start</string>
  52.        </property>
  53.       </widget>
  54.      </item>
  55.      <item>
  56.       <spacer name="horizontalSpacerMiddle">
  57.        <property name="orientation">
  58.         <enum>Qt::Horizontal</enum>
  59.        </property>
  60.        <property name="sizeType">
  61.         <enum>QSizePolicy::Fixed</enum>
  62.        </property>
  63.        <property name="sizeHint" stdset="0">
  64.         <size>
  65.          <width>10</width>
  66.          <height>20</height>
  67.         </size>
  68.        </property>
  69.       </spacer>
  70.      </item>
  71.      <item>
  72.       <widget class="QPushButton" name="pushButtonCancel">
  73.        <property name="text">
  74.         <string>Cancel</string>
  75.        </property>
  76.       </widget>
  77.      </item>
  78.      <item>
  79.       <spacer name="horizontalSpacerRight">
  80.        <property name="orientation">
  81.         <enum>Qt::Horizontal</enum>
  82.        </property>
  83.        <property name="sizeType">
  84.         <enum>QSizePolicy::Fixed</enum>
  85.        </property>
  86.        <property name="sizeHint" stdset="0">
  87.         <size>
  88.          <width>20</width>
  89.          <height>20</height>
  90.         </size>
  91.        </property>
  92.       </spacer>
  93.      </item>
  94.     </layout>
  95.    </item>
  96.    <item row="1" column="0">
  97.     <spacer name="verticalSpacer">
  98.      <property name="orientation">
  99.       <enum>Qt::Vertical</enum>
  100.      </property>
  101.      <property name="sizeType">
  102.       <enum>QSizePolicy::Fixed</enum>
  103.      </property>
  104.      <property name="sizeHint" stdset="0">
  105.       <size>
  106.        <width>20</width>
  107.        <height>10</height>
  108.       </size>
  109.      </property>
  110.     </spacer>
  111.    </item>
  112.    <item row="0" column="0">
  113.     <widget class="QGroupBox" name="groupBox">
  114.      <property name="title">
  115.       <string>Options</string>
  116.      </property>
  117.      <layout class="QGridLayout" name="gridLayoutGroupBox" columnstretch="0,0">
  118.       <property name="leftMargin">
  119.        <number>0</number>
  120.       </property>
  121.       <property name="topMargin">
  122.        <number>0</number>
  123.       </property>
  124.       <property name="rightMargin">
  125.        <number>20</number>
  126.       </property>
  127.       <property name="bottomMargin">
  128.        <number>0</number>
  129.       </property>
  130.       <property name="spacing">
  131.        <number>10</number>
  132.       </property>
  133.       <item row="0" column="0">
  134.        <widget class="QLabel" name="labelGridSize">
  135.         <property name="text">
  136.          <string>Grid Size:</string>
  137.         </property>
  138.         <property name="alignment">
  139.          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  140.         </property>
  141.        </widget>
  142.       </item>
  143.       <item row="0" column="1">
  144.        <widget class="QComboBox" name="comboBoxGridSize">
  145.         <property name="sizePolicy">
  146.          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  147.           <horstretch>0</horstretch>
  148.           <verstretch>0</verstretch>
  149.          </sizepolicy>
  150.         </property>
  151.         <property name="minimumSize">
  152.          <size>
  153.           <width>100</width>
  154.           <height>25</height>
  155.          </size>
  156.         </property>
  157.         <property name="maximumSize">
  158.          <size>
  159.           <width>16777215</width>
  160.           <height>16777215</height>
  161.          </size>
  162.         </property>
  163.        </widget>
  164.       </item>
  165.       <item row="2" column="0">
  166.        <widget class="QLabel" name="labelPlayerTwo">
  167.         <property name="text">
  168.          <string>Player Two:</string>
  169.         </property>
  170.         <property name="alignment">
  171.          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  172.         </property>
  173.        </widget>
  174.       </item>
  175.       <item row="1" column="0">
  176.        <widget class="QLabel" name="labelPlayerOne">
  177.         <property name="text">
  178.          <string>Player One:</string>
  179.         </property>
  180.         <property name="alignment">
  181.          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  182.         </property>
  183.        </widget>
  184.       </item>
  185.       <item row="2" column="1">
  186.        <widget class="QComboBox" name="comboBoxPlayerTwo">
  187.         <property name="sizePolicy">
  188.          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  189.           <horstretch>0</horstretch>
  190.           <verstretch>0</verstretch>
  191.          </sizepolicy>
  192.         </property>
  193.         <property name="minimumSize">
  194.          <size>
  195.           <width>75</width>
  196.           <height>25</height>
  197.          </size>
  198.         </property>
  199.         <property name="maximumSize">
  200.          <size>
  201.           <width>16777215</width>
  202.           <height>16777215</height>
  203.          </size>
  204.         </property>
  205.        </widget>
  206.       </item>
  207.       <item row="1" column="1">
  208.        <widget class="QComboBox" name="comboBoxPlayerOne">
  209.         <property name="sizePolicy">
  210.          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  211.           <horstretch>0</horstretch>
  212.           <verstretch>0</verstretch>
  213.          </sizepolicy>
  214.         </property>
  215.         <property name="minimumSize">
  216.          <size>
  217.           <width>75</width>
  218.           <height>25</height>
  219.          </size>
  220.         </property>
  221.         <property name="maximumSize">
  222.          <size>
  223.           <width>16777215</width>
  224.           <height>16777215</height>
  225.          </size>
  226.         </property>
  227.        </widget>
  228.       </item>
  229.      </layout>
  230.     </widget>
  231.    </item>
  232.   </layout>
  233.  </widget>
  234.  <resources>
  235.   <include location="rsdesktop.qrc"/>
  236.  </resources>
  237.  <connections>
  238.   <connection>
  239.    <sender>pushButtonStart</sender>
  240.    <signal>clicked()</signal>
  241.    <receiver>NewGameDialog</receiver>
  242.    <slot>pushButtonStartClick()</slot>
  243.    <hints>
  244.     <hint type="sourcelabel">
  245.      <x>78</x>
  246.      <y>162</y>
  247.     </hint>
  248.     <hint type="destinationlabel">
  249.      <x>132</x>
  250.      <y>92</y>
  251.     </hint>
  252.    </hints>
  253.   </connection>
  254.   <connection>
  255.    <sender>pushButtonCancel</sender>
  256.    <signal>clicked()</signal>
  257.    <receiver>NewGameDialog</receiver>
  258.    <slot>pushButtonCancelClick()</slot>
  259.    <hints>
  260.     <hint type="sourcelabel">
  261.      <x>186</x>
  262.      <y>162</y>
  263.     </hint>
  264.     <hint type="destinationlabel">
  265.      <x>132</x>
  266.      <y>92</y>
  267.     </hint>
  268.    </hints>
  269.   </connection>
  270.  </connections>
  271.  <slots>
  272.   <slot>pushButtonStartClick()</slot>
  273.   <slot>pushButtonCancelClick()</slot>
  274.  </slots>
  275. </ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement