<rect>
<x>0</x>
<y>0</y>
- <width>633</width>
- <height>458</height>
+ <width>798</width>
+ <height>517</height>
</rect>
</property>
<property name="windowTitle">
</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="QWidget" name="dockWidgetContents_2">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
- <widget class="QListWidget" name="categories_list"/>
+ <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>
<rect>
<x>0</x>
<y>0</y>
- <width>633</width>
+ <width>798</width>
<height>25</height>
</rect>
</property>
<addaction name="separator"/>
<addaction name="action_Quit"/>
</widget>
+ <widget class="QMenu" name="menu_View">
+ <property name="title">
+ <string>&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>&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>
+ <tabstops>
+ <tabstop>categories</tabstop>
+ <tabstop>articles</tabstop>
+ </tabstops>
<resources/>
<connections>
<connection>
</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>
</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>
</slots>
</ui>