Modified the template editing setup
[biaweb_qt.git] / templates_dialog.ui
index 2b9be0a..e3f77aa 100644 (file)
@@ -6,32 +6,25 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>751</width>
-    <height>535</height>
+    <width>350</width>
+    <height>256</height>
    </rect>
   </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 +33,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>
@@ -75,10 +51,7 @@ modified below</string>
   </layout>
  </widget>
  <tabstops>
-  <tabstop>templates</tabstop>
   <tabstop>edit</tabstop>
-  <tabstop>pushButton</tabstop>
-  <tabstop>template_text</tabstop>
   <tabstop>close</tabstop>
  </tabstops>
  <resources/>
@@ -90,8 +63,8 @@ modified below</string>
    <slot>accept()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>515</x>
-     <y>383</y>
+     <x>741</x>
+     <y>525</y>
     </hint>
     <hint type="destinationlabel">
      <x>288</x>
@@ -100,4 +73,8 @@ modified below</string>
    </hints>
   </connection>
  </connections>
+ <slots>
+  <slot>onEdit()</slot>
+  <slot>onTemplateTextChanged()</slot>
+ </slots>
 </ui>