Completed the template editing functionality
[biaweb_qt.git] / templates_dialog.ui
index 2b9be0a..93e391d 100644 (file)
@@ -6,32 +6,37 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>751</width>
-    <height>535</height>
+    <width>350</width>
+    <height>256</height>
    </rect>
   </property>
+  <property name="minimumSize">
+   <size>
+    <width>350</width>
+    <height>256</height>
+   </size>
+  </property>
+  <property name="maximumSize">
+   <size>
+    <width>350</width>
+    <height>256</height>
+   </size>
+  </property>
   <property name="windowTitle">
-   <string>Template Editor</string>
+   <string>Templates</string>
   </property>
   <layout class="QGridLayout" name="gridLayout">
-   <item row="0" column="0">
+   <item row="0" column="0" colspan="2">
     <widget class="QLabel" name="label">
      <property name="text">
-      <string>Template</string>
+      <string>Choose template</string>
      </property>
     </widget>
    </item>
-   <item row="0" column="1">
-    <widget class="QComboBox" name="templates">
-     <property name="minimumSize">
-      <size>
-       <width>250</width>
-       <height>0</height>
-      </size>
-     </property>
-    </widget>
+   <item row="1" column="0" colspan="3">
+    <widget class="QListWidget" name="templates"/>
    </item>
-   <item row="0" column="2">
+   <item row="2" column="1">
     <widget class="QPushButton" name="edit">
      <property name="toolTip">
       <string>Click to edit the
@@ -40,32 +45,15 @@ selected template</string>
      <property name="text">
       <string>&amp;Edit</string>
      </property>
-    </widget>
-   </item>
-   <item row="0" column="3">
-    <widget class="QPushButton" name="pushButton">
-     <property name="toolTip">
-      <string>Save the template
-modified below</string>
-     </property>
-     <property name="text">
-      <string>&amp;Save</string>
-     </property>
-    </widget>
-   </item>
-   <item row="1" column="0" colspan="4">
-    <widget class="QPlainTextEdit" name="template_text">
-     <property name="font">
-      <font>
-       <family>Monospace</family>
-      </font>
+     <property name="checkable">
+      <bool>false</bool>
      </property>
-     <property name="tabChangesFocus">
-      <bool>true</bool>
+     <property name="checked">
+      <bool>false</bool>
      </property>
     </widget>
    </item>
-   <item row="2" column="3">
+   <item row="2" column="2">
     <widget class="QPushButton" name="close">
      <property name="text">
       <string>&amp;Close</string>
@@ -77,8 +65,6 @@ modified below</string>
  <tabstops>
   <tabstop>templates</tabstop>
   <tabstop>edit</tabstop>
-  <tabstop>pushButton</tabstop>
-  <tabstop>template_text</tabstop>
   <tabstop>close</tabstop>
  </tabstops>
  <resources/>
@@ -90,8 +76,8 @@ modified below</string>
    <slot>accept()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>515</x>
-     <y>383</y>
+     <x>340</x>
+     <y>246</y>
     </hint>
     <hint type="destinationlabel">
      <x>288</x>
@@ -99,5 +85,25 @@ modified below</string>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>edit</sender>
+   <signal>clicked()</signal>
+   <receiver>TemplatesDialog</receiver>
+   <slot>onEdit()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>163</x>
+     <y>235</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>83</x>
+     <y>224</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
+ <slots>
+  <slot>onEdit()</slot>
+  <slot>onTemplateTextChanged()</slot>
+ </slots>
 </ui>