src/ui/objecteditor.ui

Sun, 26 Jun 2022 20:54:09 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sun, 26 Jun 2022 20:54:09 +0300
changeset 262
dc33f8a707c4
parent 258
fe094d0687ad
child 264
76a025db4948
permissions
-rw-r--r--

Add action to make a model unofficial (modifies the !LDRAW_ORG line)

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>ObjectEditor</class>
 <widget class="QWidget" name="ObjectEditor">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>941</width>
    <height>400</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Form</string>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_2">
   <item>
    <widget class="QScrollArea" name="scrollArea">
     <property name="widgetResizable">
      <bool>true</bool>
     </property>
     <widget class="QWidget" name="scrollAreaWidgetContents">
      <property name="geometry">
       <rect>
        <x>0</x>
        <y>0</y>
        <width>908</width>
        <height>857</height>
       </rect>
      </property>
      <layout class="QHBoxLayout" name="horizontalLayout_2">
       <item>
        <layout class="QVBoxLayout" name="verticalLayout_3">
         <item>
          <layout class="QVBoxLayout" name="verticalLayout">
           <item>
            <layout class="QHBoxLayout" name="horizontalLayout">
             <item>
              <widget class="QLabel" name="typeIconLabel">
               <property name="text">
                <string>&lt;icon&gt;</string>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QLabel" name="typeNameLabel">
               <property name="styleSheet">
                <string notr="true">font-weight: bold</string>
               </property>
               <property name="text">
                <string>Object</string>
               </property>
              </widget>
             </item>
            </layout>
           </item>
           <item>
            <widget class="QGroupBox" name="properties">
             <property name="title">
              <string>Properties</string>
             </property>
             <layout class="QFormLayout" name="formLayout">
              <item row="1" column="0">
               <widget class="QLabel" name="point1Label">
                <property name="text">
                 <string>Point 1</string>
                </property>
                <property name="buddy">
                 <cstring>point1Label</cstring>
                </property>
               </widget>
              </item>
              <item row="1" column="1">
               <widget class="VectorInput" name="point1"/>
              </item>
              <item row="2" column="0">
               <widget class="QLabel" name="point2Label">
                <property name="text">
                 <string>Point 2</string>
                </property>
                <property name="buddy">
                 <cstring>point2Label</cstring>
                </property>
               </widget>
              </item>
              <item row="2" column="1">
               <widget class="VectorInput" name="point2"/>
              </item>
              <item row="3" column="0">
               <widget class="QLabel" name="point3Label">
                <property name="text">
                 <string>Point 3</string>
                </property>
               </widget>
              </item>
              <item row="3" column="1">
               <widget class="VectorInput" name="point3"/>
              </item>
              <item row="4" column="0">
               <widget class="QLabel" name="point4Label">
                <property name="text">
                 <string>Point 4</string>
                </property>
               </widget>
              </item>
              <item row="4" column="1">
               <widget class="VectorInput" name="point4"/>
              </item>
              <item row="5" column="0">
               <widget class="QLabel" name="control1Label">
                <property name="text">
                 <string>Control 1</string>
                </property>
               </widget>
              </item>
              <item row="5" column="1">
               <widget class="VectorInput" name="control1"/>
              </item>
              <item row="6" column="0">
               <widget class="QLabel" name="control2Label">
                <property name="text">
                 <string>Control 2</string>
                </property>
               </widget>
              </item>
              <item row="6" column="1">
               <widget class="VectorInput" name="control2"/>
              </item>
              <item row="8" column="0">
               <widget class="QLabel" name="transformLabel">
                <property name="text">
                 <string>Transform</string>
                </property>
               </widget>
              </item>
              <item row="8" column="1">
               <widget class="MatrixEditor" name="transformation"/>
              </item>
              <item row="9" column="0">
               <widget class="QLabel" name="nameLabel">
                <property name="text">
                 <string>Name</string>
                </property>
                <property name="buddy">
                 <cstring>name</cstring>
                </property>
               </widget>
              </item>
              <item row="10" column="0">
               <widget class="QLabel" name="textLabel">
                <property name="text">
                 <string>Text</string>
                </property>
                <property name="buddy">
                 <cstring>text</cstring>
                </property>
               </widget>
              </item>
              <item row="11" column="0">
               <widget class="QLabel" name="codeLabel">
                <property name="text">
                 <string>Code</string>
                </property>
                <property name="buddy">
                 <cstring>code</cstring>
                </property>
               </widget>
              </item>
              <item row="12" column="0">
               <widget class="QLabel" name="fractionLabel">
                <property name="text">
                 <string>Fraction</string>
                </property>
               </widget>
              </item>
              <item row="9" column="1">
               <widget class="QLineEdit" name="name"/>
              </item>
              <item row="10" column="1">
               <widget class="QLineEdit" name="text"/>
              </item>
              <item row="11" column="1">
               <widget class="QLineEdit" name="code"/>
              </item>
              <item row="0" column="0">
               <widget class="QLabel" name="colorLabel">
                <property name="text">
                 <string>Colour</string>
                </property>
                <property name="buddy">
                 <cstring>color</cstring>
                </property>
               </widget>
              </item>
              <item row="0" column="1">
               <widget class="ColorIndexInput" name="color" native="true"/>
              </item>
             </layout>
            </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>
       <item>
        <spacer name="horizontalSpacer">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>508</width>
           <height>20</height>
          </size>
         </property>
        </spacer>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>VectorInput</class>
   <extends>QWidget</extends>
   <header>vec3editor.h</header>
  </customwidget>
  <customwidget>
   <class>MatrixEditor</class>
   <extends>QWidget</extends>
   <header>matrixeditor.h</header>
  </customwidget>
  <customwidget>
   <class>ColorIndexInput</class>
   <extends>QWidget</extends>
   <header>widgets/colorindexinput.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections/>
</ui>

mercurial