demos/undo/mainwindow.ui
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 <ui version="4.0" >
       
     2  <class>MainWindow</class>
       
     3  <widget class="QMainWindow" name="MainWindow" >
       
     4   <property name="geometry" >
       
     5    <rect>
       
     6     <x>0</x>
       
     7     <y>0</y>
       
     8     <width>567</width>
       
     9     <height>600</height>
       
    10    </rect>
       
    11   </property>
       
    12   <property name="iconSize" >
       
    13    <size>
       
    14     <width>32</width>
       
    15     <height>32</height>
       
    16    </size>
       
    17   </property>
       
    18   <widget class="QWidget" name="centralwidget" >
       
    19    <layout class="QVBoxLayout" >
       
    20     <property name="margin" >
       
    21      <number>0</number>
       
    22     </property>
       
    23     <property name="spacing" >
       
    24      <number>0</number>
       
    25     </property>
       
    26     <item>
       
    27      <widget class="QTabWidget" name="documentTabs" >
       
    28       <property name="currentIndex" >
       
    29        <number>0</number>
       
    30       </property>
       
    31       <widget class="QWidget" name="tab" >
       
    32        <attribute name="title" >
       
    33         <string>Tab 1</string>
       
    34        </attribute>
       
    35       </widget>
       
    36      </widget>
       
    37     </item>
       
    38    </layout>
       
    39   </widget>
       
    40   <widget class="QMenuBar" name="menubar" >
       
    41    <property name="geometry" >
       
    42     <rect>
       
    43      <x>0</x>
       
    44      <y>0</y>
       
    45      <width>567</width>
       
    46      <height>27</height>
       
    47     </rect>
       
    48    </property>
       
    49    <widget class="QMenu" name="menuFile" >
       
    50     <property name="title" >
       
    51      <string>File</string>
       
    52     </property>
       
    53     <addaction name="actionNew" />
       
    54     <addaction name="actionOpen" />
       
    55     <addaction name="actionSave" />
       
    56     <addaction name="actionClose" />
       
    57     <addaction name="separator" />
       
    58     <addaction name="actionExit" />
       
    59    </widget>
       
    60    <widget class="QMenu" name="menuShape" >
       
    61     <property name="title" >
       
    62      <string>Edit</string>
       
    63     </property>
       
    64     <widget class="QMenu" name="menuMacros" >
       
    65      <property name="title" >
       
    66       <string>Macros</string>
       
    67      </property>
       
    68      <addaction name="actionAddRobot" />
       
    69      <addaction name="actionAddSnowman" />
       
    70     </widget>
       
    71     <addaction name="separator" />
       
    72     <addaction name="actionAddCircle" />
       
    73     <addaction name="actionAddRectangle" />
       
    74     <addaction name="actionAddTriangle" />
       
    75     <addaction name="actionRemoveShape" />
       
    76     <addaction name="separator" />
       
    77     <addaction name="actionRed" />
       
    78     <addaction name="actionGreen" />
       
    79     <addaction name="actionBlue" />
       
    80     <addaction name="separator" />
       
    81     <addaction name="menuMacros" />
       
    82    </widget>
       
    83    <widget class="QMenu" name="menuHelp" >
       
    84     <property name="title" >
       
    85      <string>Help</string>
       
    86     </property>
       
    87     <addaction name="actionAbout" />
       
    88     <addaction name="actionAboutQt" />
       
    89    </widget>
       
    90    <addaction name="menuFile" />
       
    91    <addaction name="menuShape" />
       
    92    <addaction name="menuHelp" />
       
    93   </widget>
       
    94   <widget class="QStatusBar" name="statusbar" />
       
    95   <widget class="QToolBar" name="toolBar" >
       
    96    <property name="windowTitle" >
       
    97     <string>File actions</string>
       
    98    </property>
       
    99    <property name="orientation" >
       
   100     <enum>Qt::Horizontal</enum>
       
   101    </property>
       
   102    <attribute name="toolBarArea" >
       
   103     <enum>TopToolBarArea</enum>
       
   104    </attribute>
       
   105    <attribute name="toolBarBreak" >
       
   106     <bool>false</bool>
       
   107    </attribute>
       
   108    <addaction name="actionNew" />
       
   109    <addaction name="actionOpen" />
       
   110    <addaction name="actionSave" />
       
   111    <addaction name="actionClose" />
       
   112    <addaction name="separator" />
       
   113   </widget>
       
   114   <widget class="QToolBar" name="shapeToolBar" >
       
   115    <property name="windowTitle" >
       
   116     <string>Shape actions</string>
       
   117    </property>
       
   118    <property name="orientation" >
       
   119     <enum>Qt::Vertical</enum>
       
   120    </property>
       
   121    <attribute name="toolBarArea" >
       
   122     <enum>LeftToolBarArea</enum>
       
   123    </attribute>
       
   124    <attribute name="toolBarBreak" >
       
   125     <bool>false</bool>
       
   126    </attribute>
       
   127    <addaction name="actionAddRectangle" />
       
   128    <addaction name="actionAddCircle" />
       
   129    <addaction name="actionAddTriangle" />
       
   130    <addaction name="actionRemoveShape" />
       
   131    <addaction name="separator" />
       
   132    <addaction name="actionRed" />
       
   133    <addaction name="actionGreen" />
       
   134    <addaction name="actionBlue" />
       
   135   </widget>
       
   136   <widget class="QDockWidget" name="dockWidget" >
       
   137    <property name="windowTitle" >
       
   138     <string>Undo Stack</string>
       
   139    </property>
       
   140    <attribute name="dockWidgetArea" >
       
   141     <number>2</number>
       
   142    </attribute>
       
   143    <widget class="QWidget" name="dockWidgetContents" >
       
   144     <layout class="QVBoxLayout" >
       
   145      <property name="margin" >
       
   146       <number>0</number>
       
   147      </property>
       
   148      <property name="spacing" >
       
   149       <number>4</number>
       
   150      </property>
       
   151      <item>
       
   152       <layout class="QHBoxLayout" >
       
   153        <property name="margin" >
       
   154         <number>0</number>
       
   155        </property>
       
   156        <property name="spacing" >
       
   157         <number>6</number>
       
   158        </property>
       
   159        <item>
       
   160         <spacer>
       
   161          <property name="orientation" >
       
   162           <enum>Qt::Horizontal</enum>
       
   163          </property>
       
   164          <property name="sizeHint" >
       
   165           <size>
       
   166            <width>40</width>
       
   167            <height>20</height>
       
   168           </size>
       
   169          </property>
       
   170         </spacer>
       
   171        </item>
       
   172        <item>
       
   173         <widget class="QLabel" name="label" >
       
   174          <property name="text" >
       
   175           <string>Undo limit</string>
       
   176          </property>
       
   177         </widget>
       
   178        </item>
       
   179        <item>
       
   180         <widget class="QSpinBox" name="undoLimit" />
       
   181        </item>
       
   182       </layout>
       
   183      </item>
       
   184      <item>
       
   185       <widget class="QUndoView" name="undoView" >
       
   186        <property name="alternatingRowColors" >
       
   187         <bool>false</bool>
       
   188        </property>
       
   189       </widget>
       
   190      </item>
       
   191     </layout>
       
   192    </widget>
       
   193   </widget>
       
   194   <action name="actionOpen" >
       
   195    <property name="icon" >
       
   196     <iconset resource="undo.qrc" >:/icons/fileopen.png</iconset>
       
   197    </property>
       
   198    <property name="text" >
       
   199     <string>&amp;Open</string>
       
   200    </property>
       
   201   </action>
       
   202   <action name="actionClose" >
       
   203    <property name="icon" >
       
   204     <iconset resource="undo.qrc" >:/icons/fileclose.png</iconset>
       
   205    </property>
       
   206    <property name="text" >
       
   207     <string>&amp;Close</string>
       
   208    </property>
       
   209   </action>
       
   210   <action name="actionNew" >
       
   211    <property name="icon" >
       
   212     <iconset resource="undo.qrc" >:/icons/filenew.png</iconset>
       
   213    </property>
       
   214    <property name="text" >
       
   215     <string>&amp;New</string>
       
   216    </property>
       
   217   </action>
       
   218   <action name="actionSave" >
       
   219    <property name="icon" >
       
   220     <iconset resource="undo.qrc" >:/icons/filesave.png</iconset>
       
   221    </property>
       
   222    <property name="text" >
       
   223     <string>&amp;Save</string>
       
   224    </property>
       
   225   </action>
       
   226   <action name="actionExit" >
       
   227    <property name="icon" >
       
   228     <iconset resource="undo.qrc" >:/icons/exit.png</iconset>
       
   229    </property>
       
   230    <property name="text" >
       
   231     <string>E&amp;xit</string>
       
   232    </property>
       
   233   </action>
       
   234   <action name="actionRed" >
       
   235    <property name="icon" >
       
   236     <iconset resource="undo.qrc" >:/icons/red.png</iconset>
       
   237    </property>
       
   238    <property name="text" >
       
   239     <string>Red</string>
       
   240    </property>
       
   241   </action>
       
   242   <action name="actionGreen" >
       
   243    <property name="icon" >
       
   244     <iconset resource="undo.qrc" >:/icons/green.png</iconset>
       
   245    </property>
       
   246    <property name="text" >
       
   247     <string>Green</string>
       
   248    </property>
       
   249   </action>
       
   250   <action name="actionBlue" >
       
   251    <property name="icon" >
       
   252     <iconset resource="undo.qrc" >:/icons/blue.png</iconset>
       
   253    </property>
       
   254    <property name="text" >
       
   255     <string>Blue</string>
       
   256    </property>
       
   257   </action>
       
   258   <action name="actionAddRectangle" >
       
   259    <property name="icon" >
       
   260     <iconset resource="undo.qrc" >:/icons/rectangle.png</iconset>
       
   261    </property>
       
   262    <property name="text" >
       
   263     <string>Add Rectangle</string>
       
   264    </property>
       
   265   </action>
       
   266   <action name="actionAddCircle" >
       
   267    <property name="icon" >
       
   268     <iconset resource="undo.qrc" >:/icons/circle.png</iconset>
       
   269    </property>
       
   270    <property name="text" >
       
   271     <string>Add Circle</string>
       
   272    </property>
       
   273   </action>
       
   274   <action name="actionRemoveShape" >
       
   275    <property name="icon" >
       
   276     <iconset resource="undo.qrc" >:/icons/remove.png</iconset>
       
   277    </property>
       
   278    <property name="text" >
       
   279     <string>Remove Shape</string>
       
   280    </property>
       
   281   </action>
       
   282   <action name="actionAddRobot" >
       
   283    <property name="text" >
       
   284     <string>Add robot</string>
       
   285    </property>
       
   286   </action>
       
   287   <action name="actionAddSnowman" >
       
   288    <property name="text" >
       
   289     <string>Add snowan</string>
       
   290    </property>
       
   291   </action>
       
   292   <action name="actionAddTriangle" >
       
   293    <property name="icon" >
       
   294     <iconset resource="undo.qrc" >:/icons/triangle.png</iconset>
       
   295    </property>
       
   296    <property name="text" >
       
   297     <string>addTriangle</string>
       
   298    </property>
       
   299   </action>
       
   300   <action name="actionAbout" >
       
   301    <property name="text" >
       
   302     <string>About</string>
       
   303    </property>
       
   304   </action>
       
   305   <action name="actionAboutQt" >
       
   306    <property name="text" >
       
   307     <string>About Qt</string>
       
   308    </property>
       
   309   </action>
       
   310  </widget>
       
   311  <customwidgets>
       
   312   <customwidget>
       
   313    <class>QUndoView</class>
       
   314    <extends>QListView</extends>
       
   315    <header>qundoview.h</header>
       
   316   </customwidget>
       
   317  </customwidgets>
       
   318  <resources>
       
   319   <include location="undo.qrc" />
       
   320  </resources>
       
   321  <connections/>
       
   322 </ui>