src/dialogs/generateprimitivedialog.ui

Sun, 08 May 2016 15:26:58 +0300

author
Teemu Piippo <teemu@compsta2.com>
date
Sun, 08 May 2016 15:26:58 +0300
changeset 1033
32153a1dbb15
parent 1019
a2e4286adb0d
child 1339
1f342d5abc85
permissions
-rw-r--r--

- Refactoring...
- Camera icons don't have to be heap allocated anymore

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>GeneratePrimitiveDialog</class>
 <widget class="QDialog" name="GeneratePrimitiveDialog">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>413</width>
    <height>169</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Generate Primitive</string>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <item>
    <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
     <item>
      <layout class="QVBoxLayout" name="verticalLayout_6">
       <item>
        <widget class="QGroupBox" name="groupbox">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="title">
          <string>Type</string>
         </property>
         <layout class="QGridLayout" name="gridLayout_3">
          <item row="1" column="0">
           <widget class="QRadioButton" name="typeCircle">
            <property name="text">
             <string>Circle</string>
            </property>
            <property name="checked">
             <bool>true</bool>
            </property>
            <property name="autoRepeat">
             <bool>false</bool>
            </property>
           </widget>
          </item>
          <item row="1" column="1">
           <widget class="QRadioButton" name="typeCylinder">
            <property name="text">
             <string>Cylinder</string>
            </property>
           </widget>
          </item>
          <item row="2" column="0">
           <widget class="QRadioButton" name="typeDisc">
            <property name="text">
             <string>Disc</string>
            </property>
           </widget>
          </item>
          <item row="2" column="1">
           <widget class="QRadioButton" name="typeDiscNegative">
            <property name="text">
             <string>Disc Negative</string>
            </property>
           </widget>
          </item>
          <item row="3" column="0">
           <widget class="QRadioButton" name="typeRing">
            <property name="text">
             <string>Ring</string>
            </property>
           </widget>
          </item>
          <item row="3" column="1">
           <widget class="QRadioButton" name="typeCone">
            <property name="text">
             <string>Cone</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
      </layout>
     </item>
     <item>
      <layout class="QVBoxLayout" name="verticalLayout_2">
       <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>
       <item>
        <widget class="QCheckBox" name="highResolution">
         <property name="text">
          <string>High resolution (48)</string>
         </property>
        </widget>
       </item>
       <item>
        <layout class="QGridLayout" name="gridLayout_2">
         <item row="0" column="0">
          <widget class="QLabel" name="label">
           <property name="text">
            <string>Segments:</string>
           </property>
          </widget>
         </item>
         <item row="1" column="0">
          <widget class="QLabel" name="label_2">
           <property name="text">
            <string>Ring number:</string>
           </property>
          </widget>
         </item>
         <item row="0" column="1">
          <widget class="QSpinBox" name="segments">
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>16</number>
           </property>
           <property name="value">
            <number>16</number>
           </property>
          </widget>
         </item>
         <item row="1" column="1">
          <widget class="QSpinBox" name="ringNumber">
           <property name="enabled">
            <bool>false</bool>
           </property>
          </widget>
         </item>
        </layout>
       </item>
       <item>
        <spacer name="verticalSpacer">
         <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>
     </item>
    </layout>
   </item>
   <item>
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="standardButtons">
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <resources/>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>GeneratePrimitiveDialog</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>254</x>
     <y>140</y>
    </hint>
    <hint type="destinationlabel">
     <x>157</x>
     <y>146</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>GeneratePrimitiveDialog</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>322</x>
     <y>140</y>
    </hint>
    <hint type="destinationlabel">
     <x>286</x>
     <y>146</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>typeCircle</sender>
   <signal>clicked(bool)</signal>
   <receiver>ringNumber</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>45</x>
     <y>41</y>
    </hint>
    <hint type="destinationlabel">
     <x>305</x>
     <y>86</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>typeCylinder</sender>
   <signal>clicked(bool)</signal>
   <receiver>ringNumber</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>109</x>
     <y>42</y>
    </hint>
    <hint type="destinationlabel">
     <x>287</x>
     <y>86</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>typeDisc</sender>
   <signal>clicked(bool)</signal>
   <receiver>ringNumber</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>49</x>
     <y>66</y>
    </hint>
    <hint type="destinationlabel">
     <x>287</x>
     <y>87</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>typeDiscNegative</sender>
   <signal>clicked(bool)</signal>
   <receiver>ringNumber</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>121</x>
     <y>58</y>
    </hint>
    <hint type="destinationlabel">
     <x>288</x>
     <y>83</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>typeRing</sender>
   <signal>clicked(bool)</signal>
   <receiver>ringNumber</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>45</x>
     <y>90</y>
    </hint>
    <hint type="destinationlabel">
     <x>301</x>
     <y>86</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>typeCone</sender>
   <signal>clicked(bool)</signal>
   <receiver>ringNumber</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>111</x>
     <y>89</y>
    </hint>
    <hint type="destinationlabel">
     <x>302</x>
     <y>85</y>
    </hint>
   </hints>
  </connection>
 </connections>
 <slots>
  <slot>enableRingNumber()</slot>
 </slots>
</ui>

mercurial