Added some error checks for sanity
[biaweb_qt.git] / ui_category_dialog.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'category_dialog.ui'
4 #
5 # Created: Fri Nov 26 17:27:34 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_CategoryDialog(object):
13 def setupUi(self, CategoryDialog):
14 CategoryDialog.setObjectName("CategoryDialog")
15 CategoryDialog.resize(487, 216)
16 self.gridLayout = QtGui.QGridLayout(CategoryDialog)
17 self.gridLayout.setObjectName("gridLayout")
18 self.label = QtGui.QLabel(CategoryDialog)
19 font = QtGui.QFont()
20 font.setWeight(75)
21 font.setBold(True)
22 self.label.setFont(font)
23 self.label.setObjectName("label")
24 self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
25 self.category_name = QtGui.QLineEdit(CategoryDialog)
26 self.category_name.setObjectName("category_name")
27 self.gridLayout.addWidget(self.category_name, 0, 1, 1, 1)
28 self.label_2 = QtGui.QLabel(CategoryDialog)
29 font = QtGui.QFont()
30 font.setWeight(50)
31 font.setBold(False)
32 self.label_2.setFont(font)
33 self.label_2.setObjectName("label_2")
34 self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
35 self.category_desc = QtGui.QLineEdit(CategoryDialog)
36 self.category_desc.setObjectName("category_desc")
37 self.gridLayout.addWidget(self.category_desc, 1, 1, 1, 1)
38 self.label_3 = QtGui.QLabel(CategoryDialog)
39 font = QtGui.QFont()
40 font.setWeight(75)
41 font.setBold(True)
42 self.label_3.setFont(font)
43 self.label_3.setObjectName("label_3")
44 self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
45 self.category_stub = QtGui.QLineEdit(CategoryDialog)
46 self.category_stub.setObjectName("category_stub")
47 self.gridLayout.addWidget(self.category_stub, 2, 1, 1, 1)
48 self.buttonBox = QtGui.QDialogButtonBox(CategoryDialog)
49 self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
50 self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
51 self.buttonBox.setObjectName("buttonBox")
52 self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 2)
53
54 self.retranslateUi(CategoryDialog)
55 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), CategoryDialog.accept)
56 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), CategoryDialog.reject)
57 QtCore.QMetaObject.connectSlotsByName(CategoryDialog)
58
59 def retranslateUi(self, CategoryDialog):
60 CategoryDialog.setWindowTitle(QtGui.QApplication.translate("CategoryDialog", "Category", None, QtGui.QApplication.UnicodeUTF8))
61 self.label.setText(QtGui.QApplication.translate("CategoryDialog", "Category name", None, QtGui.QApplication.UnicodeUTF8))
62 self.label_2.setText(QtGui.QApplication.translate("CategoryDialog", "Category description", None, QtGui.QApplication.UnicodeUTF8))
63 self.label_3.setText(QtGui.QApplication.translate("CategoryDialog", "Stub (directory)", None, QtGui.QApplication.UnicodeUTF8))
64