Added the template editor dialog
[biaweb_qt.git] / ui_main_window.py
index 8080f31..80a6898 100644 (file)
@@ -2,7 +2,7 @@
 
 # Form implementation generated from reading ui file 'main_window.ui'
 #
-# Created: Sat Nov 27 19:17:18 2010
+# Created: Mon Nov 29 13:18:40 2010
 #      by: PyQt4 UI code generator 4.7.4
 #
 # WARNING! All changes made in this file will be lost!
@@ -12,7 +12,7 @@ from PyQt4 import QtCore, QtGui
 class Ui_MainWindow(object):
     def setupUi(self, MainWindow):
         MainWindow.setObjectName("MainWindow")
-        MainWindow.resize(633, 458)
+        MainWindow.resize(798, 517)
         self.centralwidget = QtGui.QWidget(MainWindow)
         self.centralwidget.setObjectName("centralwidget")
         self.gridLayout = QtGui.QGridLayout(self.centralwidget)
@@ -38,13 +38,14 @@ class Ui_MainWindow(object):
         self.gridLayout_2.setObjectName("gridLayout_2")
         self.categories = QtGui.QTreeWidget(self.dockWidgetContents_2)
         self.categories.setAlternatingRowColors(True)
+        self.categories.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
         self.categories.setAllColumnsShowFocus(False)
         self.categories.setObjectName("categories")
         self.gridLayout_2.addWidget(self.categories, 0, 0, 1, 1)
         self.dockWidget_2.setWidget(self.dockWidgetContents_2)
         MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget_2)
         self.menubar = QtGui.QMenuBar(MainWindow)
-        self.menubar.setGeometry(QtCore.QRect(0, 0, 633, 25))
+        self.menubar.setGeometry(QtCore.QRect(0, 0, 798, 25))
         self.menubar.setObjectName("menubar")
         self.menu_About = QtGui.QMenu(self.menubar)
         self.menu_About.setObjectName("menu_About")
@@ -56,6 +57,8 @@ class Ui_MainWindow(object):
         self.menu_File_2.setObjectName("menu_File_2")
         self.menu_Export_web = QtGui.QMenu(self.menu_File_2)
         self.menu_Export_web.setObjectName("menu_Export_web")
+        self.menu_View = QtGui.QMenu(self.menubar)
+        self.menu_View.setObjectName("menu_View")
         MainWindow.setMenuBar(self.menubar)
         self.actionOpen_DB = QtGui.QAction(MainWindow)
         self.actionOpen_DB.setObjectName("actionOpen_DB")
@@ -91,6 +94,8 @@ class Ui_MainWindow(object):
         self.actionSamth.setObjectName("actionSamth")
         self.actionAsasas = QtGui.QAction(MainWindow)
         self.actionAsasas.setObjectName("actionAsasas")
+        self.action_Refresh = QtGui.QAction(MainWindow)
+        self.action_Refresh.setObjectName("action_Refresh")
         self.menu_About.addAction(self.action_About)
         self.menu_Settings.addAction(self.action_Configuration)
         self.menu_Settings.addSeparator()
@@ -110,9 +115,11 @@ class Ui_MainWindow(object):
         self.menu_File_2.addAction(self.menu_Export_web.menuAction())
         self.menu_File_2.addSeparator()
         self.menu_File_2.addAction(self.action_Quit)
+        self.menu_View.addAction(self.action_Refresh)
         self.menubar.addAction(self.menu_File_2.menuAction())
         self.menubar.addAction(self.menu_Content.menuAction())
         self.menubar.addAction(self.menu_Settings.menuAction())
+        self.menubar.addAction(self.menu_View.menuAction())
         self.menubar.addAction(self.menu_About.menuAction())
 
         self.retranslateUi(MainWindow)
@@ -122,7 +129,17 @@ class Ui_MainWindow(object):
         QtCore.QObject.connect(self.action_Open_site, QtCore.SIGNAL("triggered()"), MainWindow.onFileOpen)
         QtCore.QObject.connect(self.action_Configuration, QtCore.SIGNAL("triggered()"), MainWindow.onConfiguration)
         QtCore.QObject.connect(self.action_EditCategory, QtCore.SIGNAL("triggered()"), MainWindow.onCategoryEdit)
+        QtCore.QObject.connect(self.action_RemoveCategory, QtCore.SIGNAL("triggered()"), MainWindow.onCategoryDelete)
+        QtCore.QObject.connect(self.categories, QtCore.SIGNAL("itemSelectionChanged()"), MainWindow.onCategorySelectionChanged)
+        QtCore.QObject.connect(self.action_Refresh, QtCore.SIGNAL("triggered()"), MainWindow.onViewRefresh)
+        QtCore.QObject.connect(self.action_NewArticle, QtCore.SIGNAL("triggered()"), MainWindow.onArticleAdd)
+        QtCore.QObject.connect(self.action_EditArticle, QtCore.SIGNAL("triggered()"), MainWindow.onArticleEdit)
+        QtCore.QObject.connect(self.action_DeleteArticle, QtCore.SIGNAL("triggered()"), MainWindow.onArticleDelete)
+        QtCore.QObject.connect(self.categories, QtCore.SIGNAL("itemActivated(QTreeWidgetItem*,int)"), MainWindow.onCategoryItemActivated)
+        QtCore.QObject.connect(self.articles, QtCore.SIGNAL("itemActivated(QTreeWidgetItem*,int)"), MainWindow.onArticleItemActivated)
+        QtCore.QObject.connect(self.actionTemplates, QtCore.SIGNAL("triggered()"), MainWindow.onTemplates)
         QtCore.QMetaObject.connectSlotsByName(MainWindow)
+        MainWindow.setTabOrder(self.categories, self.articles)
 
     def retranslateUi(self, MainWindow):
         MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "BiaWeb - Static Website Content Manager", None, QtGui.QApplication.UnicodeUTF8))
@@ -137,6 +154,7 @@ class Ui_MainWindow(object):
         self.menu_Content.setTitle(QtGui.QApplication.translate("MainWindow", "&Content", None, QtGui.QApplication.UnicodeUTF8))
         self.menu_File_2.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8))
         self.menu_Export_web.setTitle(QtGui.QApplication.translate("MainWindow", "&Export web", None, QtGui.QApplication.UnicodeUTF8))
+        self.menu_View.setTitle(QtGui.QApplication.translate("MainWindow", "&View", None, QtGui.QApplication.UnicodeUTF8))
         self.actionOpen_DB.setText(QtGui.QApplication.translate("MainWindow", "Open existing site...", None, QtGui.QApplication.UnicodeUTF8))
         self.action_Quit.setText(QtGui.QApplication.translate("MainWindow", "&Quit", None, QtGui.QApplication.UnicodeUTF8))
         self.action_Quit.setStatusTip(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))
@@ -168,4 +186,7 @@ class Ui_MainWindow(object):
         self.actionTemplates.setStatusTip(QtGui.QApplication.translate("MainWindow", "Modify or revert site templates", None, QtGui.QApplication.UnicodeUTF8))
         self.actionSamth.setText(QtGui.QApplication.translate("MainWindow", "samth", None, QtGui.QApplication.UnicodeUTF8))
         self.actionAsasas.setText(QtGui.QApplication.translate("MainWindow", "asasas", None, QtGui.QApplication.UnicodeUTF8))
+        self.action_Refresh.setText(QtGui.QApplication.translate("MainWindow", "&Refresh", None, QtGui.QApplication.UnicodeUTF8))
+        self.action_Refresh.setStatusTip(QtGui.QApplication.translate("MainWindow", "Reload categories and articles in the view", None, QtGui.QApplication.UnicodeUTF8))
+        self.action_Refresh.setShortcut(QtGui.QApplication.translate("MainWindow", "F5", None, QtGui.QApplication.UnicodeUTF8))