<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>modelCreator</class>
 <widget class="QMainWindow" name="modelCreator">
  <property name="enabled">
   <bool>true</bool>
  </property>
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>766</width>
    <height>608</height>
   </rect>
  </property>
  <property name="sizePolicy">
   <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
   </sizepolicy>
  </property>
  <property name="windowTitle">
   <string>ModelCreator</string>
  </property>
  <property name="styleSheet">
   <string notr="true"/>
  </property>
  <widget class="QWidget" name="centralWidget">
   <layout class="QVBoxLayout" name="verticalLayout_2">
    <item>
     <widget class="QTabWidget" name="meshTab">
      <property name="currentIndex">
       <number>2</number>
      </property>
      <widget class="QWidget" name="model">
       <attribute name="title">
        <string>Model</string>
       </attribute>
       <layout class="QGridLayout" name="gridLayout_2">
        <item row="0" column="0">
         <layout class="QVBoxLayout" name="verticalLayout">
          <item>
           <layout class="QGridLayout" name="gridLayout_3">
            <item row="0" column="1">
             <widget class="QLineEdit" name="modelName">
              <property name="maxLength">
               <number>255</number>
              </property>
             </widget>
            </item>
            <item row="0" column="0">
             <widget class="QLabel" name="label">
              <property name="text">
               <string>Model name:</string>
              </property>
              <property name="buddy">
               <cstring>modelName</cstring>
              </property>
             </widget>
            </item>
            <item row="1" column="1">
             <widget class="QLineEdit" name="modelBastePath">
              <property name="readOnly">
               <bool>false</bool>
              </property>
             </widget>
            </item>
            <item row="1" column="0">
             <widget class="QLabel" name="label_3">
              <property name="text">
               <string>Model base path:</string>
              </property>
              <property name="buddy">
               <cstring>modelBastePath</cstring>
              </property>
             </widget>
            </item>
            <item row="2" column="0">
             <widget class="QLabel" name="label_5">
              <property name="text">
               <string>Mesh name:</string>
              </property>
             </widget>
            </item>
            <item row="3" column="0">
             <widget class="QLabel" name="label_6">
              <property name="text">
               <string>Material name:</string>
              </property>
             </widget>
            </item>
            <item row="2" column="1">
             <widget class="QLineEdit" name="meshName"/>
            </item>
            <item row="3" column="1">
             <widget class="QLineEdit" name="materialName"/>
            </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>
      </widget>
      <widget class="QWidget" name="material">
       <attribute name="title">
        <string>Material</string>
       </attribute>
       <layout class="QVBoxLayout" name="verticalLayout_5">
        <item>
         <layout class="QVBoxLayout" name="verticalLayout_4">
          <item>
           <layout class="QGridLayout" name="gridLayout_5">
            <item row="0" column="1">
             <widget class="QLabel" name="label_2">
              <property name="text">
               <string>Material file:</string>
              </property>
              <property name="buddy">
               <cstring>lineEdit</cstring>
              </property>
             </widget>
            </item>
            <item row="0" column="2">
             <widget class="QLineEdit" name="lineEdit">
              <property name="enabled">
               <bool>true</bool>
              </property>
              <property name="readOnly">
               <bool>true</bool>
              </property>
             </widget>
            </item>
            <item row="0" column="3">
             <widget class="QToolButton" name="materialFileSelect">
              <property name="text">
               <string>Load</string>
              </property>
              <property name="toolButtonStyle">
               <enum>Qt::ToolButtonIconOnly</enum>
              </property>
             </widget>
            </item>
            <item row="1" column="1">
             <widget class="QLabel" name="label_4">
              <property name="text">
               <string>Shader name:</string>
              </property>
             </widget>
            </item>
            <item row="1" column="2">
             <widget class="QLineEdit" name="shaderName"/>
            </item>
           </layout>
          </item>
          <item>
           <layout class="QGridLayout" name="gridLayout_7">
            <item row="0" column="3">
             <spacer name="horizontalSpacer">
              <property name="orientation">
               <enum>Qt::Horizontal</enum>
              </property>
              <property name="sizeHint" stdset="0">
               <size>
                <width>40</width>
                <height>20</height>
               </size>
              </property>
             </spacer>
            </item>
            <item row="0" column="1">
             <widget class="QCheckBox" name="enableBumpMap">
              <property name="text">
               <string>Enable BumpMap</string>
              </property>
             </widget>
            </item>
            <item row="0" column="2">
             <widget class="QCheckBox" name="enableNormalMap">
              <property name="text">
               <string>Enable NormalMap</string>
              </property>
             </widget>
            </item>
            <item row="0" column="0">
             <widget class="QPushButton" name="saveAs">
              <property name="text">
               <string>Save As...</string>
              </property>
             </widget>
            </item>
           </layout>
          </item>
          <item>
           <widget class="QTabWidget" name="tabWidget">
            <property name="enabled">
             <bool>true</bool>
            </property>
            <property name="currentIndex">
             <number>0</number>
            </property>
            <property name="documentMode">
             <bool>false</bool>
            </property>
            <property name="tabsClosable">
             <bool>false</bool>
            </property>
            <property name="movable">
             <bool>false</bool>
            </property>
            <widget class="MaterialLayerInfo" name="difuseTab">
             <property name="enabled">
              <bool>true</bool>
             </property>
             <attribute name="title">
              <string>Diffuse</string>
             </attribute>
             <layout class="QVBoxLayout" name="_2"/>
            </widget>
            <widget class="MaterialLayerInfo" name="ambientTab">
             <attribute name="title">
              <string>Ambient</string>
             </attribute>
            </widget>
            <widget class="MaterialLayerInfo" name="shininessTab">
             <attribute name="title">
              <string>Shininess</string>
             </attribute>
            </widget>
            <widget class="MaterialLayerInfo" name="specularTab">
             <attribute name="title">
              <string>Specular</string>
             </attribute>
            </widget>
            <widget class="MaterialLayerInfo" name="emissionTab">
             <attribute name="title">
              <string>Emission</string>
             </attribute>
            </widget>
            <widget class="MaterialLayerInfo" name="roughnessTab">
             <attribute name="title">
              <string>Roughness</string>
             </attribute>
            </widget>
            <widget class="MaterialLayerInfo" name="bumpMapTab">
             <property name="enabled">
              <bool>true</bool>
             </property>
             <attribute name="title">
              <string>BumpMap</string>
             </attribute>
            </widget>
            <widget class="MaterialLayerInfo" name="normalMapTab">
             <property name="enabled">
              <bool>true</bool>
             </property>
             <attribute name="title">
              <string>NormalMap</string>
             </attribute>
            </widget>
           </widget>
          </item>
         </layout>
        </item>
       </layout>
      </widget>
      <widget class="QWidget" name="tab">
       <attribute name="title">
        <string>Shaders</string>
       </attribute>
       <layout class="QVBoxLayout" name="verticalLayout_3">
        <item>
         <layout class="QGridLayout" name="gridLayout">
          <item row="1" column="0">
           <widget class="QLabel" name="label_8">
            <property name="text">
             <string>Shader path:</string>
            </property>
            <property name="buddy">
             <cstring>shaderPath</cstring>
            </property>
           </widget>
          </item>
          <item row="1" column="1">
           <widget class="QLineEdit" name="shaderPath">
            <property name="readOnly">
             <bool>true</bool>
            </property>
           </widget>
          </item>
          <item row="1" column="2">
           <widget class="QPushButton" name="loadShader">
            <property name="text">
             <string>Load</string>
            </property>
           </widget>
          </item>
          <item row="1" column="3">
           <widget class="QPushButton" name="shaderSaveAs">
            <property name="text">
             <string>Save As...</string>
            </property>
           </widget>
          </item>
         </layout>
        </item>
        <item>
         <widget class="QToolBox" name="toolBox">
          <property name="frameShadow">
           <enum>QFrame::Plain</enum>
          </property>
          <property name="currentIndex">
           <number>0</number>
          </property>
          <widget class="QWidget" name="vertexShader">
           <property name="geometry">
            <rect>
             <x>0</x>
             <y>0</y>
             <width>732</width>
             <height>400</height>
            </rect>
           </property>
           <attribute name="label">
            <string>Vertex shader</string>
           </attribute>
           <layout class="QVBoxLayout" name="verticalLayout_7">
            <item>
             <widget class="QPlainTextEdit" name="vertexShaderCode"/>
            </item>
           </layout>
          </widget>
          <widget class="QWidget" name="fragmentShader">
           <property name="geometry">
            <rect>
             <x>0</x>
             <y>0</y>
             <width>732</width>
             <height>400</height>
            </rect>
           </property>
           <attribute name="label">
            <string>Fragment shader</string>
           </attribute>
           <layout class="QVBoxLayout" name="verticalLayout_6">
            <item>
             <widget class="QPlainTextEdit" name="fragmentShaderCode"/>
            </item>
           </layout>
          </widget>
         </widget>
        </item>
       </layout>
      </widget>
     </widget>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menuBar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>766</width>
     <height>21</height>
    </rect>
   </property>
   <widget class="QMenu" name="menu_File">
    <property name="title">
     <string>&amp;File</string>
    </property>
    <addaction name="action_Create"/>
    <addaction name="action_Open"/>
    <addaction name="actionSave_As"/>
    <addaction name="separator"/>
    <addaction name="action_Exit"/>
   </widget>
   <widget class="QMenu" name="menu_Help">
    <property name="title">
     <string>&amp;Help</string>
    </property>
    <addaction name="actionAbout"/>
    <addaction name="actionAbout_QT"/>
   </widget>
   <addaction name="menu_File"/>
   <addaction name="menu_Help"/>
  </widget>
  <widget class="QToolBar" name="mainToolBar">
   <attribute name="toolBarArea">
    <enum>TopToolBarArea</enum>
   </attribute>
   <attribute name="toolBarBreak">
    <bool>false</bool>
   </attribute>
   <addaction name="action_Create"/>
   <addaction name="action_Open"/>
   <addaction name="actionSave_As"/>
  </widget>
  <widget class="QStatusBar" name="statusBar"/>
  <widget class="QToolBar" name="toolBar">
   <property name="windowTitle">
    <string>toolBar</string>
   </property>
   <attribute name="toolBarArea">
    <enum>TopToolBarArea</enum>
   </attribute>
   <attribute name="toolBarBreak">
    <bool>false</bool>
   </attribute>
  </widget>
  <action name="action_Create">
   <property name="text">
    <string>&amp;New</string>
   </property>
   <property name="toolTip">
    <string>Create new model</string>
   </property>
   <property name="shortcut">
    <string>Ctrl+N</string>
   </property>
  </action>
  <action name="action_Open">
   <property name="text">
    <string>&amp;Open</string>
   </property>
   <property name="shortcut">
    <string>Ctrl+O</string>
   </property>
  </action>
  <action name="action_Exit">
   <property name="text">
    <string>&amp;Exit</string>
   </property>
   <property name="shortcut">
    <string>Ctrl+Q</string>
   </property>
  </action>
  <action name="actionAbout">
   <property name="text">
    <string>&amp;About</string>
   </property>
   <property name="shortcut">
    <string>F1</string>
   </property>
  </action>
  <action name="actionAbout_QT">
   <property name="text">
    <string>About QT</string>
   </property>
  </action>
  <action name="actionSave_As">
   <property name="text">
    <string>Save &amp;As ...</string>
   </property>
   <property name="shortcut">
    <string>Ctrl+S</string>
   </property>
  </action>
 </widget>
 <layoutdefault spacing="6" margin="11"/>
 <customwidgets>
  <customwidget>
   <class>MaterialLayerInfo</class>
   <extends>QWidget</extends>
   <header>materiallayerinfo.h</header>
   <container>1</container>
   <slots>
    <slot>saveLayer()</slot>
   </slots>
  </customwidget>
 </customwidgets>
 <tabstops>
  <tabstop>meshTab</tabstop>
  <tabstop>modelName</tabstop>
  <tabstop>modelBastePath</tabstop>
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>action_Exit</sender>
   <signal>triggered()</signal>
   <receiver>modelCreator</receiver>
   <slot>close()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>-1</x>
     <y>-1</y>
    </hint>
    <hint type="destinationlabel">
     <x>285</x>
     <y>212</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>modelCreator</sender>
   <signal>setBasePath(QString)</signal>
   <receiver>modelBastePath</receiver>
   <slot>setText(QString)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>285</x>
     <y>212</y>
    </hint>
    <hint type="destinationlabel">
     <x>231</x>
     <y>136</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>materialFileSelect</sender>
   <signal>released()</signal>
   <receiver>modelCreator</receiver>
   <slot>materialFileSelect()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>730</x>
     <y>113</y>
    </hint>
    <hint type="destinationlabel">
     <x>382</x>
     <y>303</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>enableBumpMap</sender>
   <signal>stateChanged(int)</signal>
   <receiver>modelCreator</receiver>
   <slot>enableBumpMap(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>233</x>
     <y>185</y>
    </hint>
    <hint type="destinationlabel">
     <x>382</x>
     <y>303</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>enableNormalMap</sender>
   <signal>stateChanged(int)</signal>
   <receiver>modelCreator</receiver>
   <slot>enableNormalMap(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>376</x>
     <y>185</y>
    </hint>
    <hint type="destinationlabel">
     <x>382</x>
     <y>303</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>modelCreator</sender>
   <signal>setMaterialFile(QString)</signal>
   <receiver>lineEdit</receiver>
   <slot>setText(QString)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>2</x>
     <y>229</y>
    </hint>
    <hint type="destinationlabel">
     <x>182</x>
     <y>110</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>saveAs</sender>
   <signal>released()</signal>
   <receiver>modelCreator</receiver>
   <slot>saveModel()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>77</x>
     <y>188</y>
    </hint>
    <hint type="destinationlabel">
     <x>360</x>
     <y>63</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>loadShader</sender>
   <signal>released()</signal>
   <receiver>modelCreator</receiver>
   <slot>loadShader()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>707</x>
     <y>112</y>
    </hint>
    <hint type="destinationlabel">
     <x>382</x>
     <y>303</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>shaderSaveAs</sender>
   <signal>released()</signal>
   <receiver>modelCreator</receiver>
   <slot>saveShader()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>707</x>
     <y>147</y>
    </hint>
    <hint type="destinationlabel">
     <x>382</x>
     <y>303</y>
    </hint>
   </hints>
  </connection>
 </connections>
 <slots>
  <signal>setBasePath(QString)</signal>
  <signal>setSurfaceName(QString)</signal>
  <signal>setMaterialFile(QString)</signal>
  <slot>surfaceNameSelect()</slot>
  <slot>enableBumpMap(int)</slot>
  <slot>enableNormalMap(int)</slot>
  <slot>materialFileSelect()</slot>
  <slot>saveModel()</slot>
  <slot>saveShader()</slot>
  <slot>loadShader()</slot>
 </slots>
</ui>
