<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>BlockEditor</class>
 <widget class="QWidget" name="BlockEditor">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>847</width>
    <height>810</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Block editor</string>
  </property>
  <property name="windowIcon">
   <iconset resource="qad_blockview.qrc">
    <normaloff>:/icons/blockview.png</normaloff>:/icons/blockview.png</iconset>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_4">
   <item>
    <widget class="QSplitter" name="splitter_2">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <widget class="QSplitter" name="splitter">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
      </property>
      <widget class="QGroupBox" name="groupParameters">
       <property name="title">
        <string>Block parameters</string>
       </property>
       <property name="alignment">
        <set>Qt::AlignCenter</set>
       </property>
       <layout class="QFormLayout" name="formLayout">
        <property name="fieldGrowthPolicy">
         <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
        </property>
        <property name="labelAlignment">
         <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
        </property>
        <property name="leftMargin">
         <number>4</number>
        </property>
        <property name="topMargin">
         <number>4</number>
        </property>
        <property name="rightMargin">
         <number>4</number>
        </property>
        <property name="bottomMargin">
         <number>4</number>
        </property>
        <item row="0" column="0">
         <widget class="QLabel" name="label">
          <property name="text">
           <string>Width:</string>
          </property>
         </widget>
        </item>
        <item row="0" column="1">
         <widget class="QSpinBox" name="spin_w">
          <property name="maximum">
           <number>1000</number>
          </property>
          <property name="singleStep">
           <number>20</number>
          </property>
          <property name="value">
           <number>100</number>
          </property>
         </widget>
        </item>
        <item row="1" column="0">
         <widget class="QLabel" name="label_2">
          <property name="text">
           <string>Heigth:</string>
          </property>
         </widget>
        </item>
        <item row="1" column="1">
         <widget class="QSpinBox" name="spin_h">
          <property name="maximum">
           <number>1000</number>
          </property>
          <property name="singleStep">
           <number>20</number>
          </property>
          <property name="value">
           <number>60</number>
          </property>
         </widget>
        </item>
        <item row="2" column="0">
         <widget class="QLabel" name="label_3">
          <property name="text">
           <string>Pins margin:</string>
          </property>
         </widget>
        </item>
        <item row="2" column="1">
         <widget class="QSpinBox" name="spin_margin">
          <property name="maximum">
           <number>100</number>
          </property>
          <property name="singleStep">
           <number>10</number>
          </property>
          <property name="value">
           <number>10</number>
          </property>
         </widget>
        </item>
        <item row="3" column="0">
         <widget class="QLabel" name="label_4">
          <property name="text">
           <string>Color:</string>
          </property>
         </widget>
        </item>
        <item row="3" column="1">
         <widget class="ColorButton" name="button_color"/>
        </item>
       </layout>
      </widget>
      <widget class="QGroupBox" name="groupPins">
       <property name="title">
        <string>Pins</string>
       </property>
       <property name="alignment">
        <set>Qt::AlignCenter</set>
       </property>
       <layout class="QHBoxLayout" name="horizontalLayout_3">
        <property name="leftMargin">
         <number>2</number>
        </property>
        <property name="topMargin">
         <number>2</number>
        </property>
        <property name="rightMargin">
         <number>2</number>
        </property>
        <property name="bottomMargin">
         <number>2</number>
        </property>
        <item>
         <widget class="QTreeWidget" name="treePins">
          <property name="minimumSize">
           <size>
            <width>0</width>
            <height>200</height>
           </size>
          </property>
          <property name="dragDropMode">
           <enum>QAbstractItemView::InternalMove</enum>
          </property>
          <property name="defaultDropAction">
           <enum>Qt::MoveAction</enum>
          </property>
          <property name="selectionMode">
           <enum>QAbstractItemView::ExtendedSelection</enum>
          </property>
          <property name="verticalScrollMode">
           <enum>QAbstractItemView::ScrollPerPixel</enum>
          </property>
          <property name="rootIsDecorated">
           <bool>false</bool>
          </property>
          <property name="itemsExpandable">
           <bool>false</bool>
          </property>
          <attribute name="headerDefaultSectionSize">
           <number>200</number>
          </attribute>
          <column>
           <property name="text">
            <string>Name</string>
           </property>
          </column>
          <column>
           <property name="text">
            <string>Bus</string>
           </property>
          </column>
         </widget>
        </item>
        <item>
         <layout class="QVBoxLayout" name="verticalLayout_3">
          <item>
           <widget class="QToolButton" name="buttonPinAdd">
            <property name="toolTip">
             <string>Add</string>
            </property>
            <property name="icon">
             <iconset resource="../utils/qad_utils.qrc">
              <normaloff>:/icons/list-add.png</normaloff>:/icons/list-add.png</iconset>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QToolButton" name="buttonPinDup">
            <property name="toolTip">
             <string>Clone</string>
            </property>
            <property name="icon">
             <iconset resource="../utils/qad_utils.qrc">
              <normaloff>:/icons/edit-copy.png</normaloff>:/icons/edit-copy.png</iconset>
            </property>
           </widget>
          </item>
          <item>
           <spacer name="horizontalSpacer_5">
            <property name="orientation">
             <enum>Qt::Vertical</enum>
            </property>
            <property name="sizeType">
             <enum>QSizePolicy::Preferred</enum>
            </property>
            <property name="sizeHint" stdset="0">
             <size>
              <width>20</width>
              <height>20</height>
             </size>
            </property>
           </spacer>
          </item>
          <item>
           <widget class="QToolButton" name="buttonPinDelete">
            <property name="toolTip">
             <string>Remove selected</string>
            </property>
            <property name="icon">
             <iconset resource="../utils/qad_utils.qrc">
              <normaloff>:/icons/edit-delete.png</normaloff>:/icons/edit-delete.png</iconset>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QToolButton" name="buttonPinClear">
            <property name="toolTip">
             <string>Remove all</string>
            </property>
            <property name="icon">
             <iconset resource="../utils/qad_utils.qrc">
              <normaloff>:/icons/edit-clear.png</normaloff>:/icons/edit-clear.png</iconset>
            </property>
           </widget>
          </item>
          <item>
           <spacer name="horizontalSpacer_4">
            <property name="orientation">
             <enum>Qt::Vertical</enum>
            </property>
            <property name="sizeHint" stdset="0">
             <size>
              <width>20</width>
              <height>1</height>
             </size>
            </property>
           </spacer>
          </item>
         </layout>
        </item>
       </layout>
      </widget>
     </widget>
     <widget class="QWidget" name="layoutWidget">
      <layout class="QVBoxLayout" name="verticalLayout_2">
       <property name="spacing">
        <number>0</number>
       </property>
       <item>
        <widget class="QFrame" name="frameProperties">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="frameShape">
          <enum>QFrame::StyledPanel</enum>
         </property>
         <property name="frameShadow">
          <enum>QFrame::Raised</enum>
         </property>
         <layout class="QHBoxLayout" name="layoutProperties">
          <property name="leftMargin">
           <number>2</number>
          </property>
          <property name="topMargin">
           <number>2</number>
          </property>
          <property name="rightMargin">
           <number>2</number>
          </property>
          <property name="bottomMargin">
           <number>2</number>
          </property>
         </layout>
        </widget>
       </item>
       <item>
        <layout class="QHBoxLayout" name="horizontalLayout">
         <item>
          <layout class="QVBoxLayout" name="verticalLayout">
           <item>
            <widget class="QWidget" name="widgetBar" native="true"/>
           </item>
           <item>
            <widget class="QWidget" name="widgetBarZ" native="true"/>
           </item>
          </layout>
         </item>
         <item>
          <widget class="BlockView" name="blockView">
           <property name="verticalScrollBarPolicy">
            <enum>Qt::ScrollBarAlwaysOff</enum>
           </property>
           <property name="horizontalScrollBarPolicy">
            <enum>Qt::ScrollBarAlwaysOff</enum>
           </property>
           <property name="navigateAnimationEnabled">
            <bool>true</bool>
           </property>
           <property name="miniMap" stdset="0">
            <bool>false</bool>
           </property>
           <property name="zoomWheelOnly">
            <bool>true</bool>
           </property>
          </widget>
         </item>
        </layout>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
   <item>
    <layout class="QHBoxLayout" name="horizontalLayout_2">
     <item>
      <widget class="QPushButton" name="buttonSave">
       <property name="text">
        <string>Save</string>
       </property>
       <property name="icon">
        <iconset resource="../utils/qad_utils.qrc">
         <normaloff>:/icons/document-save.png</normaloff>:/icons/document-save.png</iconset>
       </property>
       <property name="shortcut">
        <string>Ctrl+S</string>
       </property>
      </widget>
     </item>
     <item>
      <spacer name="horizontalSpacer_3">
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="sizeType">
        <enum>QSizePolicy::Preferred</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>10</width>
         <height>20</height>
        </size>
       </property>
      </spacer>
     </item>
     <item>
      <widget class="QPushButton" name="buttonSaveAs">
       <property name="text">
        <string>Save as ...</string>
       </property>
       <property name="icon">
        <iconset resource="../utils/qad_utils.qrc">
         <normaloff>:/icons/document-save.png</normaloff>:/icons/document-save.png</iconset>
       </property>
       <property name="shortcut">
        <string>Ctrl+S</string>
       </property>
      </widget>
     </item>
     <item>
      <spacer name="horizontalSpacer_2">
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="sizeType">
        <enum>QSizePolicy::Preferred</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>20</width>
         <height>20</height>
        </size>
       </property>
      </spacer>
     </item>
     <item>
      <widget class="QPushButton" name="buttonLoad">
       <property name="text">
        <string>Load ...</string>
       </property>
       <property name="icon">
        <iconset resource="../application/qad_application.qrc">
         <normaloff>:/icons/document-open.png</normaloff>:/icons/document-open.png</iconset>
       </property>
       <property name="shortcut">
        <string>Ctrl+O</string>
       </property>
      </widget>
     </item>
     <item>
      <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>
      <widget class="QPushButton" name="buttonClear">
       <property name="text">
        <string>Clear</string>
       </property>
       <property name="icon">
        <iconset resource="../utils/qad_utils.qrc">
         <normaloff>:/icons/edit-clear.png</normaloff>:/icons/edit-clear.png</iconset>
       </property>
      </widget>
     </item>
    </layout>
   </item>
  </layout>
  <action name="actionRemove_items">
   <property name="icon">
    <iconset resource="../utils/qad_utils.qrc">
     <normaloff>:/icons/edit-delete.png</normaloff>:/icons/edit-delete.png</iconset>
   </property>
   <property name="text">
    <string>Remove items</string>
   </property>
   <property name="shortcut">
    <string>Del</string>
   </property>
  </action>
 </widget>
 <customwidgets>
  <customwidget>
   <class>BlockView</class>
   <extends>QGraphicsView</extends>
   <header>blockview.h</header>
  </customwidget>
  <customwidget>
   <class>ColorButton</class>
   <extends>QPushButton</extends>
   <header>colorbutton.h</header>
  </customwidget>
 </customwidgets>
 <resources>
  <include location="../utils/qad_utils.qrc"/>
  <include location="../application/qad_application.qrc"/>
  <include location="qad_blockview.qrc"/>
 </resources>
 <connections>
  <connection>
   <sender>spin_w</sender>
   <signal>valueChanged(int)</signal>
   <receiver>BlockEditor</receiver>
   <slot>updateBlock()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>170</x>
     <y>21</y>
    </hint>
    <hint type="destinationlabel">
     <x>254</x>
     <y>1</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>spin_h</sender>
   <signal>valueChanged(int)</signal>
   <receiver>BlockEditor</receiver>
   <slot>updateBlock()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>250</x>
     <y>49</y>
    </hint>
    <hint type="destinationlabel">
     <x>373</x>
     <y>5</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>spin_margin</sender>
   <signal>valueChanged(int)</signal>
   <receiver>BlockEditor</receiver>
   <slot>updateBlock()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>350</x>
     <y>90</y>
    </hint>
    <hint type="destinationlabel">
     <x>492</x>
     <y>8</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>button_color</sender>
   <signal>colorChanged(QColor)</signal>
   <receiver>BlockEditor</receiver>
   <slot>updateBlock()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>561</x>
     <y>115</y>
    </hint>
    <hint type="destinationlabel">
     <x>613</x>
     <y>6</y>
    </hint>
   </hints>
  </connection>
 </connections>
 <slots>
  <slot>updateBlock()</slot>
 </slots>
</ui>
