Sfoglia il codice sorgente

icons for buttons; buttons exclusive selected

Sven Sickert 8 anni fa
parent
commit
22fd403fae

+ 481 - 189
ui/ImageLabeler.ui

@@ -17,9 +17,9 @@
    <string>ImageLabeler</string>
   </property>
   <widget class="QWidget" name="central_widget_">
-   <layout class="QHBoxLayout" name="layout_main_" stretch="1,1,1">
+   <layout class="QHBoxLayout" name="layout_main_" stretch="1,1,0">
     <item>
-     <layout class="QVBoxLayout" name="layout_left_" stretch="0,0,0,0,0,0">
+     <layout class="QVBoxLayout" name="verticalLayout">
       <item>
        <widget class="QFrame" name="frame_toolbox_">
         <property name="frameShape">
@@ -37,84 +37,195 @@
           </widget>
          </item>
          <item>
-          <widget class="QPushButton" name="button_bound_box_tool_">
-           <property name="enabled">
-            <bool>false</bool>
-           </property>
-           <property name="text">
-            <string>bbox</string>
-           </property>
-           <property name="checkable">
-            <bool>true</bool>
-           </property>
-          </widget>
-         </item>
-         <item>
-          <widget class="QPushButton" name="button_polygon_tool_">
-           <property name="enabled">
-            <bool>false</bool>
-           </property>
-           <property name="text">
-            <string>poly tool</string>
-           </property>
-           <property name="checkable">
-            <bool>true</bool>
-           </property>
-           <property name="checked">
-            <bool>false</bool>
-           </property>
-          </widget>
-         </item>
-         <item>
-          <spacer name="verticalSpacer">
-           <property name="orientation">
-            <enum>Qt::Vertical</enum>
-           </property>
-           <property name="sizeType">
-            <enum>QSizePolicy::Fixed</enum>
-           </property>
-           <property name="sizeHint" stdset="0">
-            <size>
-             <width>20</width>
-             <height>10</height>
-            </size>
-           </property>
-          </spacer>
-         </item>
-         <item>
-          <widget class="QPushButton" name="button_tagging_tool_">
-           <property name="enabled">
-            <bool>false</bool>
-           </property>
-           <property name="text">
-            <string>tagging</string>
-           </property>
-          </widget>
-         </item>
-         <item>
-          <spacer name="verticalSpacer_2">
-           <property name="orientation">
-            <enum>Qt::Vertical</enum>
-           </property>
-           <property name="sizeType">
-            <enum>QSizePolicy::Fixed</enum>
-           </property>
-           <property name="sizeHint" stdset="0">
+          <widget class="QWidget" name="tool_box" native="true">
+           <property name="minimumSize">
             <size>
-             <width>20</width>
-             <height>10</height>
+             <width>0</width>
+             <height>45</height>
             </size>
            </property>
-          </spacer>
-         </item>
-         <item>
-          <widget class="QPushButton" name="button_clear_selection_tool_">
-           <property name="enabled">
-            <bool>false</bool>
-           </property>
-           <property name="text">
-            <string>clear selection</string>
-           </property>
+           <widget class="QPushButton" name="button_bound_box_tool_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>0</x>
+              <y>1</y>
+              <width>40</width>
+              <height>40</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>40</width>
+              <height>40</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>40</width>
+              <height>40</height>
+             </size>
+            </property>
+            <property name="focusPolicy">
+             <enum>Qt::StrongFocus</enum>
+            </property>
+            <property name="acceptDrops">
+             <bool>true</bool>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normaloff>../../../src/projects/imagelabeler/ui/icons/bbox.gif</normaloff>../../../src/projects/imagelabeler/ui/icons/bbox.gif</iconset>
+            </property>
+            <property name="iconSize">
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="checkable">
+             <bool>true</bool>
+            </property>
+            <property name="checked">
+             <bool>false</bool>
+            </property>
+            <property name="autoExclusive">
+             <bool>true</bool>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="button_polygon_tool_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>45</x>
+              <y>1</y>
+              <width>40</width>
+              <height>40</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>40</width>
+              <height>40</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>40</width>
+              <height>40</height>
+             </size>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normaloff>../../../src/projects/imagelabeler/ui/icons/poly.gif</normaloff>../../../src/projects/imagelabeler/ui/icons/poly.gif</iconset>
+            </property>
+            <property name="iconSize">
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="checkable">
+             <bool>true</bool>
+            </property>
+            <property name="checked">
+             <bool>false</bool>
+            </property>
+            <property name="autoExclusive">
+             <bool>true</bool>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="button_tagging_tool_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>91</x>
+              <y>1</y>
+              <width>40</width>
+              <height>40</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>40</width>
+              <height>40</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>40</width>
+              <height>40</height>
+             </size>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normaloff>../../../src/projects/imagelabeler/ui/icons/tag.gif</normaloff>../../../src/projects/imagelabeler/ui/icons/tag.gif</iconset>
+            </property>
+            <property name="iconSize">
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="autoExclusive">
+             <bool>true</bool>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="button_clear_selection_tool_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>136</x>
+              <y>1</y>
+              <width>40</width>
+              <height>40</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>40</width>
+              <height>40</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>40</width>
+              <height>40</height>
+             </size>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normaloff>../../../src/projects/imagelabeler/ui/icons/clear.gif</normaloff>../../../src/projects/imagelabeler/ui/icons/clear.gif</iconset>
+            </property>
+            <property name="iconSize">
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="autoExclusive">
+             <bool>true</bool>
+            </property>
+           </widget>
           </widget>
          </item>
          <item>
@@ -123,7 +234,7 @@
             <bool>false</bool>
            </property>
            <property name="text">
-            <string>delete all labels</string>
+            <string>Delete all labels</string>
            </property>
           </widget>
          </item>
@@ -149,7 +260,7 @@
             <bool>false</bool>
            </property>
            <property name="text">
-            <string>generate label colors</string>
+            <string>Generate label colors</string>
            </property>
           </widget>
          </item>
@@ -157,33 +268,90 @@
        </widget>
       </item>
       <item>
-       <widget class="QLabel" name="label_list_images_">
-        <property name="text">
-         <string>Loaded Images:</string>
+       <widget class="QWidget" name="images_toolbox_" native="true">
+        <property name="minimumSize">
+         <size>
+          <width>0</width>
+          <height>50</height>
+         </size>
         </property>
+        <widget class="QPushButton" name="button_add_image_">
+         <property name="geometry">
+          <rect>
+           <x>10</x>
+           <y>20</y>
+           <width>30</width>
+           <height>30</height>
+          </rect>
+         </property>
+         <property name="minimumSize">
+          <size>
+           <width>30</width>
+           <height>30</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>30</width>
+           <height>30</height>
+          </size>
+         </property>
+         <property name="text">
+          <string/>
+         </property>
+         <property name="icon">
+          <iconset>
+           <normaloff>../../../src/projects/imagelabeler/ui/icons/add.gif</normaloff>../../../src/projects/imagelabeler/ui/icons/add.gif</iconset>
+         </property>
+        </widget>
+        <widget class="QPushButton" name="button_remove_image_">
+         <property name="enabled">
+          <bool>false</bool>
+         </property>
+         <property name="geometry">
+          <rect>
+           <x>40</x>
+           <y>20</y>
+           <width>30</width>
+           <height>30</height>
+          </rect>
+         </property>
+         <property name="minimumSize">
+          <size>
+           <width>30</width>
+           <height>30</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>30</width>
+           <height>30</height>
+          </size>
+         </property>
+         <property name="text">
+          <string/>
+         </property>
+         <property name="icon">
+          <iconset>
+           <normalon>../../../src/projects/imagelabeler/ui/icons/remove.gif</normalon>
+          </iconset>
+         </property>
+        </widget>
+        <widget class="QLabel" name="label_list_images_">
+         <property name="geometry">
+          <rect>
+           <x>13</x>
+           <y>3</y>
+           <width>200</width>
+           <height>15</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Images</string>
+         </property>
+        </widget>
        </widget>
       </item>
-      <item>
-       <layout class="QHBoxLayout" name="layout_imagelist_buttons_">
-        <item>
-         <widget class="QPushButton" name="button_add_image_">
-          <property name="text">
-           <string>Add</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="button_remove_image_">
-          <property name="enabled">
-           <bool>false</bool>
-          </property>
-          <property name="text">
-           <string>Remove</string>
-          </property>
-         </widget>
-        </item>
-       </layout>
-      </item>
       <item>
        <widget class="QListWidget" name="list_images_widget_">
         <property name="maximumSize">
@@ -194,22 +362,6 @@
         </property>
        </widget>
       </item>
-      <item>
-       <spacer name="horizontalSpacer">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeType">
-         <enum>QSizePolicy::Minimum</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>1</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
       <item>
        <widget class="QPushButton" name="button_confirm_selection_">
         <property name="enabled">
@@ -250,8 +402,8 @@
            <widget class="QWidget" name="scrollAreaWidgetContents">
             <property name="geometry">
              <rect>
-              <x>0</x>
-              <y>0</y>
+              <x>14</x>
+              <y>5</y>
               <width>250</width>
               <height>501</height>
              </rect>
@@ -306,83 +458,223 @@
         </property>
         <layout class="QVBoxLayout" name="layout_labelbox_">
          <item>
-          <widget class="QLabel" name="label_list_label_">
-           <property name="text">
-            <string>Object labels:</string>
+          <widget class="QWidget" name="widget" native="true">
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>50</height>
+            </size>
            </property>
+           <widget class="QLabel" name="label_list_label_">
+            <property name="geometry">
+             <rect>
+              <x>0</x>
+              <y>0</y>
+              <width>180</width>
+              <height>15</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>0</width>
+              <height>0</height>
+             </size>
+            </property>
+            <property name="text">
+             <string>Classes</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="button_remove_label_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>30</x>
+              <y>18</y>
+              <width>30</width>
+              <height>30</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>30</width>
+              <height>29</height>
+             </size>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normalon>../../../src/projects/imagelabeler/ui/icons/remove.gif</normalon>
+             </iconset>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="button_add_label_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>0</x>
+              <y>18</y>
+              <width>30</width>
+              <height>30</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normaloff>../../../src/projects/imagelabeler/ui/icons/add.gif</normaloff>../../../src/projects/imagelabeler/ui/icons/add.gif</iconset>
+            </property>
+           </widget>
           </widget>
          </item>
-         <item>
-          <layout class="QHBoxLayout" name="layout_labelbox_buttons_">
-           <item>
-            <widget class="QPushButton" name="button_add_label_">
-             <property name="enabled">
-              <bool>false</bool>
-             </property>
-             <property name="text">
-              <string>Add label</string>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QPushButton" name="button_remove_label_">
-             <property name="enabled">
-              <bool>false</bool>
-             </property>
-             <property name="text">
-              <string>Remove label</string>
-             </property>
-            </widget>
-           </item>
-          </layout>
-         </item>
          <item>
           <widget class="QListWidget" name="list_label_"/>
          </item>
          <item>
-          <widget class="QLabel" name="label_list_areas_">
-           <property name="text">
-            <string>Selected areas:</string>
+          <widget class="QWidget" name="widget_2" native="true">
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>50</height>
+            </size>
            </property>
+           <widget class="QLabel" name="label_list_areas_">
+            <property name="geometry">
+             <rect>
+              <x>0</x>
+              <y>0</y>
+              <width>180</width>
+              <height>15</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>Objects</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="button_delete_area_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>60</x>
+              <y>20</y>
+              <width>30</width>
+              <height>30</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normaloff>../../../src/projects/imagelabeler/ui/icons/remove.gif</normaloff>../../../src/projects/imagelabeler/ui/icons/remove.gif</iconset>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="button_change_area_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>0</x>
+              <y>20</y>
+              <width>30</width>
+              <height>30</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normalon>../../../src/projects/imagelabeler/ui/icons/modify.gif</normalon>
+             </iconset>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="button_change_area_text_">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="geometry">
+             <rect>
+              <x>30</x>
+              <y>20</y>
+              <width>30</width>
+              <height>30</height>
+             </rect>
+            </property>
+            <property name="minimumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>30</width>
+              <height>30</height>
+             </size>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="icon">
+             <iconset>
+              <normalon>../../../src/projects/imagelabeler/ui/icons/text.gif</normalon>
+             </iconset>
+            </property>
+           </widget>
           </widget>
          </item>
-         <item>
-          <layout class="QVBoxLayout" name="layout_areabox_buttons_">
-           <property name="spacing">
-            <number>0</number>
-           </property>
-           <item>
-            <widget class="QPushButton" name="button_delete_area_">
-             <property name="enabled">
-              <bool>false</bool>
-             </property>
-             <property name="text">
-              <string>Delete area</string>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QPushButton" name="button_change_area_">
-             <property name="enabled">
-              <bool>false</bool>
-             </property>
-             <property name="text">
-              <string>Change area</string>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QPushButton" name="button_change_area_text_">
-             <property name="enabled">
-              <bool>false</bool>
-             </property>
-             <property name="text">
-              <string>Change area text</string>
-             </property>
-            </widget>
-           </item>
-          </layout>
-         </item>
          <item>
           <widget class="QListWidget" name="list_areas_"/>
          </item>
@@ -399,7 +691,7 @@
      <x>0</x>
      <y>0</y>
      <width>800</width>
-     <height>29</height>
+     <height>23</height>
     </rect>
    </property>
    <widget class="QMenu" name="menu_file_">

BIN
ui/icons/add.gif


BIN
ui/icons/add.xcf


BIN
ui/icons/bbox.gif


BIN
ui/icons/bbox.xcf


BIN
ui/icons/clear.gif


BIN
ui/icons/clear.xcf


BIN
ui/icons/modify.gif


BIN
ui/icons/modify.xcf


BIN
ui/icons/poly.gif


BIN
ui/icons/poly.xcf


BIN
ui/icons/remove.gif


BIN
ui/icons/remove.xcf


BIN
ui/icons/tag.gif


BIN
ui/icons/tag.xcf


BIN
ui/icons/text.gif


BIN
ui/icons/text.xcf