Resource file and enhanced article dialog
[biaweb_qt.git] / article_dialog.ui
index 375fe2a..70a61bc 100644 (file)
@@ -6,13 +6,19 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>660</width>
-    <height>506</height>
+    <width>624</width>
+    <height>544</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>Article</string>
   </property>
+  <property name="sizeGripEnabled">
+   <bool>true</bool>
+  </property>
+  <property name="modal">
+   <bool>true</bool>
+  </property>
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0">
     <widget class="QLabel" name="label">
      </property>
     </widget>
    </item>
-   <item row="0" column="1" colspan="4">
+   <item row="0" column="3" colspan="14">
     <widget class="QLineEdit" name="article_title"/>
    </item>
-   <item row="1" column="0">
+   <item row="1" column="0" colspan="2">
     <widget class="QLabel" name="label_2">
      <property name="text">
       <string>Keywords</string>
      </property>
     </widget>
    </item>
-   <item row="1" column="1" colspan="4">
+   <item row="1" column="3" colspan="14">
     <widget class="QLineEdit" name="keywords"/>
    </item>
-   <item row="2" column="0">
+   <item row="2" column="0" colspan="2">
     <widget class="QLabel" name="label_3">
      <property name="text">
       <string>Summary</string>
      </property>
     </widget>
    </item>
-   <item row="2" column="1" colspan="4">
+   <item row="2" column="3" colspan="14">
     <widget class="QPlainTextEdit" name="summary">
      <property name="verticalScrollBarPolicy">
       <enum>Qt::ScrollBarAlwaysOn</enum>
      </property>
+     <property name="tabChangesFocus">
+      <bool>true</bool>
+     </property>
     </widget>
    </item>
-   <item row="3" column="0" colspan="2">
+   <item row="3" column="0" colspan="3">
     <widget class="QLabel" name="label_5">
      <property name="text">
       <string>Article content</string>
      </property>
     </widget>
    </item>
-   <item row="4" column="0" colspan="5">
+   <item row="4" column="0">
+    <widget class="QToolButton" name="bold">
+     <property name="font">
+      <font>
+       <weight>75</weight>
+       <bold>true</bold>
+      </font>
+     </property>
+     <property name="toolTip">
+      <string>Bold</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/bold.gif</normaloff>:/bia/resources/bold.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="1">
+    <widget class="QToolButton" name="italic">
+     <property name="font">
+      <font>
+       <italic>true</italic>
+      </font>
+     </property>
+     <property name="toolTip">
+      <string>Italic</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/italic.gif</normaloff>:/bia/resources/italic.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="2">
+    <widget class="QToolButton" name="preformat">
+     <property name="toolTip">
+      <string>Preformatted text</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/pre.gif</normaloff>:/bia/resources/pre.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="3">
+    <widget class="QToolButton" name="paraleft">
+     <property name="toolTip">
+      <string>Left align para</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/left.gif</normaloff>:/bia/resources/left.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="4">
+    <widget class="QToolButton" name="paracenter">
+     <property name="toolTip">
+      <string>Center para</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/center.gif</normaloff>:/bia/resources/center.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="5">
+    <widget class="QToolButton" name="pararight">
+     <property name="toolTip">
+      <string>Right align para</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/right.gif</normaloff>:/bia/resources/right.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="6">
+    <widget class="QToolButton" name="parajustify">
+     <property name="toolTip">
+      <string>Justify para</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/justify.gif</normaloff>:/bia/resources/justify.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="7">
+    <widget class="QToolButton" name="image">
+     <property name="font">
+      <font>
+       <underline>true</underline>
+      </font>
+     </property>
+     <property name="toolTip">
+      <string>Insert image</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/img.gif</normaloff>:/bia/resources/img.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="8">
+    <widget class="QToolButton" name="flash">
+     <property name="toolTip">
+      <string>Insert flash object</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/flash.gif</normaloff>:/bia/resources/flash.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="9">
+    <widget class="QToolButton" name="bullets">
+     <property name="toolTip">
+      <string>Bulleted list</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/bullets.gif</normaloff>:/bia/resources/bullets.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="10">
+    <widget class="QToolButton" name="numbered">
+     <property name="toolTip">
+      <string>Numbered list</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/numbers.gif</normaloff>:/bia/resources/numbers.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="11">
+    <widget class="QToolButton" name="codeblock">
+     <property name="toolTip">
+      <string>Code block</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/code.gif</normaloff>:/bia/resources/code.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="12">
+    <widget class="QToolButton" name="table">
+     <property name="toolTip">
+      <string>Table</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/table.gif</normaloff>:/bia/resources/table.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="13">
+    <widget class="QToolButton" name="blockquote">
+     <property name="toolTip">
+      <string>Blockquote</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/bquote.gif</normaloff>:/bia/resources/bquote.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="14">
+    <widget class="QToolButton" name="hrule">
+     <property name="toolTip">
+      <string>Horizontal rule</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/hr.gif</normaloff>:/bia/resources/hr.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="15">
+    <widget class="QToolButton" name="paragraph">
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/par.gif</normaloff>:/bia/resources/par.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="16">
+    <widget class="QToolButton" name="linebreak">
+     <property name="toolTip">
+      <string>Line break</string>
+     </property>
+     <property name="text">
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+       <normaloff>:/bia/resources/br.gif</normaloff>:/bia/resources/br.gif</iconset>
+     </property>
+     <property name="autoRaise">
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="5" column="0" colspan="17">
     <widget class="QPlainTextEdit" name="content">
      <property name="minimumSize">
       <size>
      </property>
     </widget>
    </item>
-   <item row="5" column="0">
+   <item row="6" column="0" colspan="2">
     <widget class="QLabel" name="label_4">
      <property name="text">
       <string>Category</string>
      </property>
     </widget>
    </item>
-   <item row="5" column="1" colspan="2">
+   <item row="6" column="2" colspan="7">
     <widget class="QComboBox" name="category"/>
    </item>
-   <item row="5" column="3">
+   <item row="6" column="9" colspan="2">
     <widget class="QLabel" name="label_6">
      <property name="text">
       <string>Rating</string>
      </property>
     </widget>
    </item>
-   <item row="5" column="4">
+   <item row="6" column="11" colspan="6">
     <widget class="QSpinBox" name="rating">
      <property name="minimum">
       <number>1</number>
      </property>
     </widget>
    </item>
-   <item row="6" column="0" colspan="2">
+   <item row="7" column="0" colspan="8">
     <widget class="QLabel" name="label_7">
      <property name="text">
       <string>Stub (file name without HTML extension)</string>
      </property>
     </widget>
    </item>
-   <item row="6" column="2" colspan="3">
+   <item row="7" column="8" colspan="9">
     <widget class="QLineEdit" name="stub"/>
    </item>
-   <item row="7" column="0" colspan="5">
+   <item row="8" column="0" colspan="17">
     <widget class="QDialogButtonBox" name="buttonBox">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
    </item>
   </layout>
  </widget>
- <resources/>
+ <resources>
+  <include location="../../projects/BiaWeb_Qt/biaweb_rc.qrc"/>
+ </resources>
  <connections>
   <connection>
    <sender>buttonBox</sender>
    <slot>accept()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>248</x>
-     <y>254</y>
+     <x>184</x>
+     <y>526</y>
     </hint>
     <hint type="destinationlabel">
      <x>157</x>
    <slot>reject()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>316</x>
-     <y>260</y>
+     <x>184</x>
+     <y>526</y>
     </hint>
     <hint type="destinationlabel">
      <x>286</x>