Code highlighting implemented
[biaweb_qt.git] / ui_main_window.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'main_window.ui'
4 #
5 # Created: Sun Nov 28 15:30:11 2010
6 # by: PyQt4 UI code generator 4.7.4
7 #
8 # WARNING! All changes made in this file will be lost!
9
10 from PyQt4 import QtCore, QtGui
11
12 class Ui_MainWindow(object):
13 def setupUi(self, MainWindow):
14 MainWindow.setObjectName("MainWindow")
15 MainWindow.resize(798, 517)
16 self.centralwidget = QtGui.QWidget(MainWindow)
17 self.centralwidget.setObjectName("centralwidget")
18 self.gridLayout = QtGui.QGridLayout(self.centralwidget)
19 self.gridLayout.setObjectName("gridLayout")
20 self.label_2 = QtGui.QLabel(self.centralwidget)
21 self.label_2.setObjectName("label_2")
22 self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
23 self.articles = QtGui.QTreeWidget(self.centralwidget)
24 self.articles.setAlternatingRowColors(True)
25 self.articles.setObjectName("articles")
26 self.gridLayout.addWidget(self.articles, 1, 0, 1, 1)
27 MainWindow.setCentralWidget(self.centralwidget)
28 self.statusbar = QtGui.QStatusBar(MainWindow)
29 self.statusbar.setObjectName("statusbar")
30 MainWindow.setStatusBar(self.statusbar)
31 self.dockWidget_2 = QtGui.QDockWidget(MainWindow)
32 self.dockWidget_2.setFloating(False)
33 self.dockWidget_2.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
34 self.dockWidget_2.setObjectName("dockWidget_2")
35 self.dockWidgetContents_2 = QtGui.QWidget()
36 self.dockWidgetContents_2.setObjectName("dockWidgetContents_2")
37 self.gridLayout_2 = QtGui.QGridLayout(self.dockWidgetContents_2)
38 self.gridLayout_2.setObjectName("gridLayout_2")
39 self.categories = QtGui.QTreeWidget(self.dockWidgetContents_2)
40 self.categories.setAlternatingRowColors(True)
41 self.categories.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
42 self.categories.setAllColumnsShowFocus(False)
43 self.categories.setObjectName("categories")
44 self.gridLayout_2.addWidget(self.categories, 0, 0, 1, 1)
45 self.dockWidget_2.setWidget(self.dockWidgetContents_2)
46 MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget_2)
47 self.menubar = QtGui.QMenuBar(MainWindow)
48 self.menubar.setGeometry(QtCore.QRect(0, 0, 798, 25))
49 self.menubar.setObjectName("menubar")
50 self.menu_About = QtGui.QMenu(self.menubar)
51 self.menu_About.setObjectName("menu_About")
52 self.menu_Settings = QtGui.QMenu(self.menubar)
53 self.menu_Settings.setObjectName("menu_Settings")
54 self.menu_Content = QtGui.QMenu(self.menubar)
55 self.menu_Content.setObjectName("menu_Content")
56 self.menu_File_2 = QtGui.QMenu(self.menubar)
57 self.menu_File_2.setObjectName("menu_File_2")
58 self.menu_Export_web = QtGui.QMenu(self.menu_File_2)
59 self.menu_Export_web.setObjectName("menu_Export_web")
60 self.menu_View = QtGui.QMenu(self.menubar)
61 self.menu_View.setObjectName("menu_View")
62 MainWindow.setMenuBar(self.menubar)
63 self.actionOpen_DB = QtGui.QAction(MainWindow)
64 self.actionOpen_DB.setObjectName("actionOpen_DB")
65 self.action_Quit = QtGui.QAction(MainWindow)
66 self.action_Quit.setObjectName("action_Quit")
67 self.action_AddCategory = QtGui.QAction(MainWindow)
68 self.action_AddCategory.setObjectName("action_AddCategory")
69 self.action_EditCategory = QtGui.QAction(MainWindow)
70 self.action_EditCategory.setObjectName("action_EditCategory")
71 self.action_RemoveCategory = QtGui.QAction(MainWindow)
72 self.action_RemoveCategory.setObjectName("action_RemoveCategory")
73 self.action_NewArticle = QtGui.QAction(MainWindow)
74 self.action_NewArticle.setObjectName("action_NewArticle")
75 self.action_EditArticle = QtGui.QAction(MainWindow)
76 self.action_EditArticle.setObjectName("action_EditArticle")
77 self.action_DeleteArticle = QtGui.QAction(MainWindow)
78 self.action_DeleteArticle.setObjectName("action_DeleteArticle")
79 self.action_Generate_Site = QtGui.QAction(MainWindow)
80 self.action_Generate_Site.setObjectName("action_Generate_Site")
81 self.actionGenerate_Search_Index = QtGui.QAction(MainWindow)
82 self.actionGenerate_Search_Index.setObjectName("actionGenerate_Search_Index")
83 self.action_About = QtGui.QAction(MainWindow)
84 self.action_About.setObjectName("action_About")
85 self.actionNew_site = QtGui.QAction(MainWindow)
86 self.actionNew_site.setObjectName("actionNew_site")
87 self.action_Open_site = QtGui.QAction(MainWindow)
88 self.action_Open_site.setObjectName("action_Open_site")
89 self.action_Configuration = QtGui.QAction(MainWindow)
90 self.action_Configuration.setObjectName("action_Configuration")
91 self.actionTemplates = QtGui.QAction(MainWindow)
92 self.actionTemplates.setObjectName("actionTemplates")
93 self.actionSamth = QtGui.QAction(MainWindow)
94 self.actionSamth.setObjectName("actionSamth")
95 self.actionAsasas = QtGui.QAction(MainWindow)
96 self.actionAsasas.setObjectName("actionAsasas")
97 self.action_Refresh = QtGui.QAction(MainWindow)
98 self.action_Refresh.setObjectName("action_Refresh")
99 self.menu_About.addAction(self.action_About)
100 self.menu_Settings.addAction(self.action_Configuration)
101 self.menu_Settings.addSeparator()
102 self.menu_Settings.addAction(self.actionTemplates)
103 self.menu_Content.addAction(self.action_NewArticle)
104 self.menu_Content.addAction(self.action_EditArticle)
105 self.menu_Content.addAction(self.action_DeleteArticle)
106 self.menu_Content.addSeparator()
107 self.menu_Content.addAction(self.action_AddCategory)
108 self.menu_Content.addAction(self.action_EditCategory)
109 self.menu_Content.addAction(self.action_RemoveCategory)
110 self.menu_Export_web.addAction(self.action_Generate_Site)
111 self.menu_Export_web.addAction(self.actionGenerate_Search_Index)
112 self.menu_File_2.addAction(self.actionNew_site)
113 self.menu_File_2.addAction(self.action_Open_site)
114 self.menu_File_2.addSeparator()
115 self.menu_File_2.addAction(self.menu_Export_web.menuAction())
116 self.menu_File_2.addSeparator()
117 self.menu_File_2.addAction(self.action_Quit)
118 self.menu_View.addAction(self.action_Refresh)
119 self.menubar.addAction(self.menu_File_2.menuAction())
120 self.menubar.addAction(self.menu_Content.menuAction())
121 self.menubar.addAction(self.menu_Settings.menuAction())
122 self.menubar.addAction(self.menu_View.menuAction())
123 self.menubar.addAction(self.menu_About.menuAction())
124
125 self.retranslateUi(MainWindow)
126 QtCore.QObject.connect(self.actionNew_site, QtCore.SIGNAL("triggered()"), MainWindow.onFileNew)
127 QtCore.QObject.connect(self.action_Quit, QtCore.SIGNAL("triggered()"), MainWindow.onFileQuit)
128 QtCore.QObject.connect(self.action_AddCategory, QtCore.SIGNAL("triggered()"), MainWindow.onCategoryAdd)
129 QtCore.QObject.connect(self.action_Open_site, QtCore.SIGNAL("triggered()"), MainWindow.onFileOpen)
130 QtCore.QObject.connect(self.action_Configuration, QtCore.SIGNAL("triggered()"), MainWindow.onConfiguration)
131 QtCore.QObject.connect(self.action_EditCategory, QtCore.SIGNAL("triggered()"), MainWindow.onCategoryEdit)
132 QtCore.QObject.connect(self.action_RemoveCategory, QtCore.SIGNAL("triggered()"), MainWindow.onCategoryDelete)
133 QtCore.QObject.connect(self.categories, QtCore.SIGNAL("itemSelectionChanged()"), MainWindow.onCategorySelectionChanged)
134 QtCore.QObject.connect(self.action_Refresh, QtCore.SIGNAL("triggered()"), MainWindow.onViewRefresh)
135 QtCore.QObject.connect(self.action_NewArticle, QtCore.SIGNAL("triggered()"), MainWindow.onArticleAdd)
136 QtCore.QObject.connect(self.action_EditArticle, QtCore.SIGNAL("triggered()"), MainWindow.onArticleEdit)
137 QtCore.QObject.connect(self.action_DeleteArticle, QtCore.SIGNAL("triggered()"), MainWindow.onArticleDelete)
138 QtCore.QMetaObject.connectSlotsByName(MainWindow)
139 MainWindow.setTabOrder(self.categories, self.articles)
140
141 def retranslateUi(self, MainWindow):
142 MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "BiaWeb - Static Website Content Manager", None, QtGui.QApplication.UnicodeUTF8))
143 self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Articles in category", None, QtGui.QApplication.UnicodeUTF8))
144 self.articles.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Article ID", None, QtGui.QApplication.UnicodeUTF8))
145 self.articles.headerItem().setText(1, QtGui.QApplication.translate("MainWindow", "Article Title", None, QtGui.QApplication.UnicodeUTF8))
146 self.dockWidget_2.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Categories", None, QtGui.QApplication.UnicodeUTF8))
147 self.categories.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Category ID", None, QtGui.QApplication.UnicodeUTF8))
148 self.categories.headerItem().setText(1, QtGui.QApplication.translate("MainWindow", "Category Name", None, QtGui.QApplication.UnicodeUTF8))
149 self.menu_About.setTitle(QtGui.QApplication.translate("MainWindow", "&Help", None, QtGui.QApplication.UnicodeUTF8))
150 self.menu_Settings.setTitle(QtGui.QApplication.translate("MainWindow", "&Settings", None, QtGui.QApplication.UnicodeUTF8))
151 self.menu_Content.setTitle(QtGui.QApplication.translate("MainWindow", "&Content", None, QtGui.QApplication.UnicodeUTF8))
152 self.menu_File_2.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8))
153 self.menu_Export_web.setTitle(QtGui.QApplication.translate("MainWindow", "&Export web", None, QtGui.QApplication.UnicodeUTF8))
154 self.menu_View.setTitle(QtGui.QApplication.translate("MainWindow", "&View", None, QtGui.QApplication.UnicodeUTF8))
155 self.actionOpen_DB.setText(QtGui.QApplication.translate("MainWindow", "Open existing site...", None, QtGui.QApplication.UnicodeUTF8))
156 self.action_Quit.setText(QtGui.QApplication.translate("MainWindow", "&Quit", None, QtGui.QApplication.UnicodeUTF8))
157 self.action_Quit.setStatusTip(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))
158 self.action_AddCategory.setText(QtGui.QApplication.translate("MainWindow", "Add &category...", None, QtGui.QApplication.UnicodeUTF8))
159 self.action_AddCategory.setStatusTip(QtGui.QApplication.translate("MainWindow", "Add a new category to the website structure", None, QtGui.QApplication.UnicodeUTF8))
160 self.action_EditCategory.setText(QtGui.QApplication.translate("MainWindow", "Edit categ&ory...", None, QtGui.QApplication.UnicodeUTF8))
161 self.action_EditCategory.setStatusTip(QtGui.QApplication.translate("MainWindow", "Edit the selected category", None, QtGui.QApplication.UnicodeUTF8))
162 self.action_RemoveCategory.setText(QtGui.QApplication.translate("MainWindow", "&Remove category", None, QtGui.QApplication.UnicodeUTF8))
163 self.action_RemoveCategory.setStatusTip(QtGui.QApplication.translate("MainWindow", "Delete the selected category", None, QtGui.QApplication.UnicodeUTF8))
164 self.action_NewArticle.setText(QtGui.QApplication.translate("MainWindow", "&Add article...", None, QtGui.QApplication.UnicodeUTF8))
165 self.action_NewArticle.setStatusTip(QtGui.QApplication.translate("MainWindow", "Add an article to selected category", None, QtGui.QApplication.UnicodeUTF8))
166 self.action_EditArticle.setText(QtGui.QApplication.translate("MainWindow", "&Edit article...", None, QtGui.QApplication.UnicodeUTF8))
167 self.action_EditArticle.setStatusTip(QtGui.QApplication.translate("MainWindow", "Edit the selected article", None, QtGui.QApplication.UnicodeUTF8))
168 self.action_DeleteArticle.setText(QtGui.QApplication.translate("MainWindow", "&Delete article...", None, QtGui.QApplication.UnicodeUTF8))
169 self.action_DeleteArticle.setStatusTip(QtGui.QApplication.translate("MainWindow", "Delete the selected article", None, QtGui.QApplication.UnicodeUTF8))
170 self.action_Generate_Site.setText(QtGui.QApplication.translate("MainWindow", "Generate &Site...", None, QtGui.QApplication.UnicodeUTF8))
171 self.action_Generate_Site.setStatusTip(QtGui.QApplication.translate("MainWindow", "Export the site into a directory structure with static HTML files", None, QtGui.QApplication.UnicodeUTF8))
172 self.actionGenerate_Search_Index.setText(QtGui.QApplication.translate("MainWindow", "Generate Search &Index...", None, QtGui.QApplication.UnicodeUTF8))
173 self.actionGenerate_Search_Index.setStatusTip(QtGui.QApplication.translate("MainWindow", "Generate full or keyword text database and put it into the generated site structure", None, QtGui.QApplication.UnicodeUTF8))
174 self.action_About.setText(QtGui.QApplication.translate("MainWindow", "&About", None, QtGui.QApplication.UnicodeUTF8))
175 self.action_About.setStatusTip(QtGui.QApplication.translate("MainWindow", "View application information", None, QtGui.QApplication.UnicodeUTF8))
176 self.actionNew_site.setText(QtGui.QApplication.translate("MainWindow", "&New site...", None, QtGui.QApplication.UnicodeUTF8))
177 self.actionNew_site.setStatusTip(QtGui.QApplication.translate("MainWindow", "Create a new website database", None, QtGui.QApplication.UnicodeUTF8))
178 self.action_Open_site.setText(QtGui.QApplication.translate("MainWindow", "&Open site...", None, QtGui.QApplication.UnicodeUTF8))
179 self.action_Open_site.setStatusTip(QtGui.QApplication.translate("MainWindow", "Open an already existing site\'s database", None, QtGui.QApplication.UnicodeUTF8))
180 self.action_Configuration.setText(QtGui.QApplication.translate("MainWindow", "&Configuration...", None, QtGui.QApplication.UnicodeUTF8))
181 self.action_Configuration.setStatusTip(QtGui.QApplication.translate("MainWindow", "Modify the site configuration", None, QtGui.QApplication.UnicodeUTF8))
182 self.actionTemplates.setText(QtGui.QApplication.translate("MainWindow", "Templates...", None, QtGui.QApplication.UnicodeUTF8))
183 self.actionTemplates.setStatusTip(QtGui.QApplication.translate("MainWindow", "Modify or revert site templates", None, QtGui.QApplication.UnicodeUTF8))
184 self.actionSamth.setText(QtGui.QApplication.translate("MainWindow", "samth", None, QtGui.QApplication.UnicodeUTF8))
185 self.actionAsasas.setText(QtGui.QApplication.translate("MainWindow", "asasas", None, QtGui.QApplication.UnicodeUTF8))
186 self.action_Refresh.setText(QtGui.QApplication.translate("MainWindow", "&Refresh", None, QtGui.QApplication.UnicodeUTF8))
187 self.action_Refresh.setStatusTip(QtGui.QApplication.translate("MainWindow", "Reload categories and articles in the view", None, QtGui.QApplication.UnicodeUTF8))
188 self.action_Refresh.setShortcut(QtGui.QApplication.translate("MainWindow", "F5", None, QtGui.QApplication.UnicodeUTF8))
189