Minor: Fixed return value
[biaweb_qt.git] / main_window.ui
index 74c1602..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">
@@ -62,6 +66,9 @@
        <property name="alternatingRowColors">
         <bool>true</bool>
        </property>
+       <property name="selectionMode">
+        <enum>QAbstractItemView::SingleSelection</enum>
+       </property>
        <property name="allColumnsShowFocus">
         <bool>false</bool>
        </property>
@@ -85,7 +92,7 @@
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>633</width>
+     <width>798</width>
      <height>25</height>
     </rect>
    </property>
       <string>&amp;Export web</string>
      </property>
      <addaction name="action_Generate_Site"/>
-     <addaction name="actionGenerate_Search_Index"/>
     </widget>
     <addaction name="actionNew_site"/>
     <addaction name="action_Open_site"/>
     <addaction name="separator"/>
     <addaction name="action_Quit"/>
    </widget>
+   <widget class="QMenu" name="menu_View">
+    <property name="title">
+     <string>&amp;View</string>
+    </property>
+    <addaction name="action_Refresh"/>
+   </widget>
    <addaction name="menu_File_2"/>
    <addaction name="menu_Content"/>
    <addaction name="menu_Settings"/>
+   <addaction name="menu_View"/>
    <addaction name="menu_About"/>
   </widget>
   <action name="actionOpen_DB">
     <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_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>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>