Minor: Fixed return value
[biaweb_qt.git] / main_window.ui
index 451959c..2c64fee 100644 (file)
@@ -6,13 +6,17 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>633</width>
-    <height>458</height>
+    <width>798</width>
+    <height>517</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>BiaWeb - Static Website Content Manager</string>
   </property>
+  <property name="windowIcon">
+   <iconset resource="../../projects/BiaWeb_Qt/biaweb_rc.qrc">
+    <normaloff>:/bia/resources/icon.png</normaloff>:/bia/resources/icon.png</iconset>
+  </property>
   <widget class="QWidget" name="centralwidget">
    <layout class="QGridLayout" name="gridLayout">
     <item row="0" column="0">
      </widget>
     </item>
     <item row="1" column="0">
-     <widget class="QListWidget" name="articles_list"/>
+     <widget class="QTreeWidget" name="articles">
+      <property name="alternatingRowColors">
+       <bool>true</bool>
+      </property>
+      <column>
+       <property name="text">
+        <string>Article ID</string>
+       </property>
+      </column>
+      <column>
+       <property name="text">
+        <string>Article Title</string>
+       </property>
+      </column>
+     </widget>
     </item>
    </layout>
   </widget>
+  <widget class="QStatusBar" name="statusbar"/>
+  <widget class="QDockWidget" name="dockWidget_2">
+   <property name="floating">
+    <bool>false</bool>
+   </property>
+   <property name="features">
+    <set>QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable</set>
+   </property>
+   <property name="windowTitle">
+    <string>Categories</string>
+   </property>
+   <attribute name="dockWidgetArea">
+    <number>1</number>
+   </attribute>
+   <widget class="QWidget" name="dockWidgetContents_2">
+    <layout class="QGridLayout" name="gridLayout_2">
+     <item row="0" column="0">
+      <widget class="QTreeWidget" name="categories">
+       <property name="alternatingRowColors">
+        <bool>true</bool>
+       </property>
+       <property name="selectionMode">
+        <enum>QAbstractItemView::SingleSelection</enum>
+       </property>
+       <property name="allColumnsShowFocus">
+        <bool>false</bool>
+       </property>
+       <column>
+        <property name="text">
+         <string>Category ID</string>
+        </property>
+       </column>
+       <column>
+        <property name="text">
+         <string>Category Name</string>
+        </property>
+       </column>
+      </widget>
+     </item>
+    </layout>
+   </widget>
+  </widget>
   <widget class="QMenuBar" name="menubar">
    <property name="geometry">
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>633</width>
+     <width>798</width>
      <height>25</height>
     </rect>
    </property>
-   <widget class="QMenu" name="menu_File">
-    <property name="title">
-     <string>&amp;File</string>
-    </property>
-    <addaction name="actionNew_site"/>
-    <addaction name="action_Open_site"/>
-    <addaction name="separator"/>
-    <addaction name="action_Quit"/>
-   </widget>
-   <widget class="QMenu" name="menu_Category">
+   <widget class="QMenu" name="menu_About">
     <property name="title">
-     <string>&amp;Category</string>
+     <string>&amp;Help</string>
     </property>
-    <addaction name="action_Add"/>
-    <addaction name="action_Edit"/>
-    <addaction name="action_Delete"/>
+    <addaction name="action_About"/>
    </widget>
-   <widget class="QMenu" name="menu_Articles">
+   <widget class="QMenu" name="menu_Settings">
     <property name="title">
-     <string>&amp;Articles</string>
+     <string>&amp;Settings</string>
     </property>
-    <addaction name="action_New"/>
-    <addaction name="action_Edit_2"/>
-    <addaction name="action_Delete_2"/>
+    <addaction name="action_Configuration"/>
+    <addaction name="separator"/>
+    <addaction name="actionTemplates"/>
    </widget>
-   <widget class="QMenu" name="menu_Web">
+   <widget class="QMenu" name="menu_Content">
     <property name="title">
-     <string>&amp;Web</string>
+     <string>&amp;Content</string>
     </property>
-    <addaction name="action_Generate_Site"/>
-    <addaction name="actionGenerate_Search_Index"/>
+    <addaction name="action_NewArticle"/>
+    <addaction name="action_EditArticle"/>
+    <addaction name="action_DeleteArticle"/>
+    <addaction name="separator"/>
+    <addaction name="action_AddCategory"/>
+    <addaction name="action_EditCategory"/>
+    <addaction name="action_RemoveCategory"/>
    </widget>
-   <widget class="QMenu" name="menu_About">
+   <widget class="QMenu" name="menu_File_2">
     <property name="title">
-     <string>&amp;Help</string>
+     <string>&amp;File</string>
     </property>
-    <addaction name="action_About"/>
+    <widget class="QMenu" name="menu_Export_web">
+     <property name="title">
+      <string>&amp;Export web</string>
+     </property>
+     <addaction name="action_Generate_Site"/>
+    </widget>
+    <addaction name="actionNew_site"/>
+    <addaction name="action_Open_site"/>
+    <addaction name="separator"/>
+    <addaction name="menu_Export_web"/>
+    <addaction name="separator"/>
+    <addaction name="action_Quit"/>
    </widget>
-   <widget class="QMenu" name="menu_Settings">
+   <widget class="QMenu" name="menu_View">
     <property name="title">
-     <string>&amp;Settings</string>
+     <string>&amp;View</string>
     </property>
-    <addaction name="action_Configuration"/>
-    <addaction name="separator"/>
-    <addaction name="actionTemplates"/>
+    <addaction name="action_Refresh"/>
    </widget>
-   <addaction name="menu_File"/>
-   <addaction name="menu_Category"/>
-   <addaction name="menu_Articles"/>
+   <addaction name="menu_File_2"/>
+   <addaction name="menu_Content"/>
    <addaction name="menu_Settings"/>
-   <addaction name="menu_Web"/>
+   <addaction name="menu_View"/>
    <addaction name="menu_About"/>
   </widget>
-  <widget class="QStatusBar" name="statusbar"/>
-  <widget class="QDockWidget" name="dockWidget_2">
-   <property name="floating">
-    <bool>false</bool>
-   </property>
-   <property name="features">
-    <set>QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable</set>
-   </property>
-   <property name="windowTitle">
-    <string>Categories</string>
-   </property>
-   <attribute name="dockWidgetArea">
-    <number>1</number>
-   </attribute>
-   <widget class="QWidget" name="dockWidgetContents_2">
-    <layout class="QGridLayout" name="gridLayout_2">
-     <item row="0" column="0">
-      <widget class="QListWidget" name="categories_list"/>
-     </item>
-    </layout>
-   </widget>
-  </widget>
   <action name="actionOpen_DB">
    <property name="text">
     <string>Open existing site...</string>
     <string>Quit</string>
    </property>
   </action>
-  <action name="action_Add">
+  <action name="action_AddCategory">
    <property name="text">
-    <string>&amp;Add...</string>
+    <string>Add &amp;category...</string>
    </property>
    <property name="statusTip">
     <string>Add a new category to the website structure</string>
    </property>
   </action>
-  <action name="action_Edit">
+  <action name="action_EditCategory">
    <property name="text">
-    <string>&amp;Edit...</string>
+    <string>Edit categ&amp;ory...</string>
    </property>
    <property name="statusTip">
     <string>Edit the selected category</string>
    </property>
   </action>
-  <action name="action_Delete">
+  <action name="action_RemoveCategory">
    <property name="text">
-    <string>&amp;Delete</string>
+    <string>&amp;Remove category</string>
    </property>
    <property name="statusTip">
     <string>Delete the selected category</string>
    </property>
   </action>
-  <action name="action_New">
+  <action name="action_NewArticle">
    <property name="text">
-    <string>&amp;Add...</string>
+    <string>&amp;Add article...</string>
    </property>
    <property name="statusTip">
     <string>Add an article to selected category</string>
    </property>
   </action>
-  <action name="action_Edit_2">
+  <action name="action_EditArticle">
    <property name="text">
-    <string>&amp;Edit...</string>
+    <string>&amp;Edit article...</string>
    </property>
    <property name="statusTip">
     <string>Edit the selected article</string>
    </property>
   </action>
-  <action name="action_Delete_2">
+  <action name="action_DeleteArticle">
    <property name="text">
-    <string>&amp;Delete</string>
+    <string>&amp;Delete article...</string>
    </property>
    <property name="statusTip">
     <string>Delete the selected article</string>
     <string>Modify or revert site templates</string>
    </property>
   </action>
+  <action name="actionSamth">
+   <property name="text">
+    <string>samth</string>
+   </property>
+  </action>
+  <action name="actionAsasas">
+   <property name="text">
+    <string>asasas</string>
+   </property>
+  </action>
+  <action name="action_Refresh">
+   <property name="text">
+    <string>&amp;Refresh</string>
+   </property>
+   <property name="statusTip">
+    <string>Reload categories and articles in the view</string>
+   </property>
+   <property name="shortcut">
+    <string>F5</string>
+   </property>
+  </action>
  </widget>
- <resources/>
+ <tabstops>
+  <tabstop>categories</tabstop>
+  <tabstop>articles</tabstop>
+ </tabstops>
+ <resources>
+  <include location="../../projects/BiaWeb_Qt/biaweb_rc.qrc"/>
+ </resources>
  <connections>
   <connection>
    <sender>actionNew_site</sender>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>action_AddCategory</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onCategoryAdd()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_Open_site</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onFileOpen()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_Configuration</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onConfiguration()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_EditCategory</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onCategoryEdit()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_RemoveCategory</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onCategoryDelete()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>categories</sender>
+   <signal>itemSelectionChanged()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onCategorySelectionChanged()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>226</x>
+     <y>211</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>279</x>
+     <y>233</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_Refresh</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onViewRefresh()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_NewArticle</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onArticleAdd()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_EditArticle</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onArticleEdit()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_DeleteArticle</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onArticleDelete()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>316</x>
+     <y>228</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>categories</sender>
+   <signal>itemActivated(QTreeWidgetItem*,int)</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onCategoryItemActivated()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>212</x>
+     <y>156</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>276</x>
+     <y>272</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>articles</sender>
+   <signal>itemActivated(QTreeWidgetItem*,int)</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onArticleItemActivated()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>338</x>
+     <y>342</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>280</x>
+     <y>347</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>actionTemplates</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onTemplates()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>398</x>
+     <y>258</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_Generate_Site</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onGenerateSite()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>398</x>
+     <y>258</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>action_About</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>onAbout()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>398</x>
+     <y>258</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <slot>onFileNew()</slot>
   <slot>onFileQuit()</slot>
+  <slot>onCategoryAdd()</slot>
+  <slot>onFileOpen()</slot>
+  <slot>onConfiguration()</slot>
+  <slot>onCategoryEdit()</slot>
+  <slot>onCategoryDelete()</slot>
+  <slot>onCategorySelectionChanged()</slot>
+  <slot>onViewRefresh()</slot>
+  <slot>onArticleAdd()</slot>
+  <slot>onArticleEdit()</slot>
+  <slot>onArticleDelete()</slot>
+  <slot>onCategoryItemActivated()</slot>
+  <slot>onArticleItemActivated()</slot>
+  <slot>onTemplates()</slot>
+  <slot>onGenerateSite()</slot>
+  <slot>onAbout()</slot>
  </slots>
 </ui>