-
Notifications
You must be signed in to change notification settings - Fork 1
/
adminArea.py
executable file
·411 lines (404 loc) · 28.6 KB
/
adminArea.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'adminArea.ui'
#
# Created: Mon Oct 20 09:26:27 2014
# by: PyQt4 UI code generator 4.9.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_adminWindow(object):
def setupUi(self, adminWindow):
adminWindow.setObjectName(_fromUtf8("adminWindow"))
adminWindow.setEnabled(True)
adminWindow.resize(745, 514)
adminWindow.setMinimumSize(QtCore.QSize(329, 218))
adminWindow.setMouseTracking(False)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8("resources/images/48x48/registron.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
adminWindow.setWindowIcon(icon)
adminWindow.setWindowOpacity(1.0)
adminWindow.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);"))
self.centralwidget = QtGui.QWidget(adminWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(10, 10, 721, 451))
font = QtGui.QFont()
font.setPointSize(9)
self.tabWidget.setFont(font)
self.tabWidget.setStyleSheet(_fromUtf8("color:white;background: rgb(10, 80, 111);"))
self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
self.tabWidget.setTabsClosable(False)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.indexTab = QtGui.QWidget()
self.indexTab.setObjectName(_fromUtf8("indexTab"))
self.schoolNameLabel = QtGui.QLabel(self.indexTab)
self.schoolNameLabel.setGeometry(QtCore.QRect(20, 15, 161, 21))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.schoolNameLabel.setFont(font)
self.schoolNameLabel.setObjectName(_fromUtf8("schoolNameLabel"))
self.addStudentLabel = QtGui.QLabel(self.indexTab)
self.addStudentLabel.setGeometry(QtCore.QRect(20, 130, 101, 16))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.addStudentLabel.setFont(font)
self.addStudentLabel.setObjectName(_fromUtf8("addStudentLabel"))
self.surnameLabel = QtGui.QLabel(self.indexTab)
self.surnameLabel.setGeometry(QtCore.QRect(20, 160, 81, 16))
self.surnameLabel.setObjectName(_fromUtf8("surnameLabel"))
self.othernamesLabel = QtGui.QLabel(self.indexTab)
self.othernamesLabel.setGeometry(QtCore.QRect(370, 160, 101, 16))
self.othernamesLabel.setObjectName(_fromUtf8("othernamesLabel"))
self.studentsDeptLabel = QtGui.QLabel(self.indexTab)
self.studentsDeptLabel.setGeometry(QtCore.QRect(20, 230, 171, 16))
self.studentsDeptLabel.setObjectName(_fromUtf8("studentsDeptLabel"))
self.imageDropLabel = QtGui.QLabel(self.indexTab)
self.imageDropLabel.setGeometry(QtCore.QRect(20, 300, 641, 16))
self.imageDropLabel.setObjectName(_fromUtf8("imageDropLabel"))
self.schoolNameBtn = QtGui.QPushButton(self.indexTab)
self.schoolNameBtn.setGeometry(QtCore.QRect(560, 80, 141, 31))
self.schoolNameBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);"))
self.schoolNameBtn.setObjectName(_fromUtf8("schoolNameBtn"))
self.addStudentBtn = QtGui.QPushButton(self.indexTab)
self.addStudentBtn.setGeometry(QtCore.QRect(560, 380, 141, 31))
self.addStudentBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);"))
self.addStudentBtn.setObjectName(_fromUtf8("addStudentBtn"))
self.schoolSaved = QtGui.QLabel(self.indexTab)
self.schoolSaved.setGeometry(QtCore.QRect(20, 80, 131, 16))
font = QtGui.QFont()
font.setItalic(True)
self.schoolSaved.setFont(font)
self.schoolSaved.setObjectName(_fromUtf8("schoolSaved"))
self.studentImage = QtGui.QLineEdit(self.indexTab)
self.studentImage.setGeometry(QtCore.QRect(20, 330, 681, 31))
self.studentImage.setStyleSheet(_fromUtf8("background:white;color:black;"))
self.studentImage.setObjectName(_fromUtf8("studentImage"))
self.surname = QtGui.QLineEdit(self.indexTab)
self.surname.setGeometry(QtCore.QRect(20, 180, 331, 31))
self.surname.setStyleSheet(_fromUtf8("background:white;color:black;"))
self.surname.setObjectName(_fromUtf8("surname"))
self.othernames = QtGui.QLineEdit(self.indexTab)
self.othernames.setGeometry(QtCore.QRect(370, 180, 331, 31))
self.othernames.setStyleSheet(_fromUtf8("background:white;color:black;"))
self.othernames.setObjectName(_fromUtf8("othernames"))
self.schoolName = QtGui.QLineEdit(self.indexTab)
self.schoolName.setGeometry(QtCore.QRect(20, 40, 681, 31))
self.schoolName.setStyleSheet(_fromUtf8("background:white;color:black;"))
self.schoolName.setObjectName(_fromUtf8("schoolName"))
self.studentSaved = QtGui.QLabel(self.indexTab)
self.studentSaved.setGeometry(QtCore.QRect(20, 380, 231, 16))
font = QtGui.QFont()
font.setItalic(True)
self.studentSaved.setFont(font)
self.studentSaved.setObjectName(_fromUtf8("studentSaved"))
self.campusID = QtGui.QLineEdit(self.indexTab)
self.campusID.setGeometry(QtCore.QRect(370, 250, 331, 31))
self.campusID.setStyleSheet(_fromUtf8("background:white;color:black;"))
self.campusID.setObjectName(_fromUtf8("campusID"))
self.campusIDLabel = QtGui.QLabel(self.indexTab)
self.campusIDLabel.setGeometry(QtCore.QRect(370, 230, 101, 16))
self.campusIDLabel.setObjectName(_fromUtf8("campusIDLabel"))
self.studentDept = QtGui.QComboBox(self.indexTab)
self.studentDept.setGeometry(QtCore.QRect(20, 250, 331, 31))
self.studentDept.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111); color:white;"))
self.studentDept.setObjectName(_fromUtf8("studentDept"))
self.tabWidget.addTab(self.indexTab, _fromUtf8(""))
self.studentsTab = QtGui.QWidget()
self.studentsTab.setObjectName(_fromUtf8("studentsTab"))
self.studlistLabel = QtGui.QLabel(self.studentsTab)
self.studlistLabel.setGeometry(QtCore.QRect(10, 20, 251, 16))
self.studlistLabel.setObjectName(_fromUtf8("studlistLabel"))
self.dataEditContainer = QtGui.QWidget(self.studentsTab)
self.dataEditContainer.setGeometry(QtCore.QRect(10, 80, 491, 331))
self.dataEditContainer.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);"))
self.dataEditContainer.setObjectName(_fromUtf8("dataEditContainer"))
self.ed_studentName = QtGui.QLineEdit(self.dataEditContainer)
self.ed_studentName.setGeometry(QtCore.QRect(10, 40, 451, 31))
self.ed_studentName.setStyleSheet(_fromUtf8("color:black;background:white;"))
self.ed_studentName.setObjectName(_fromUtf8("ed_studentName"))
self.studnameLabel = QtGui.QLabel(self.dataEditContainer)
self.studnameLabel.setGeometry(QtCore.QRect(10, 20, 121, 16))
self.studnameLabel.setObjectName(_fromUtf8("studnameLabel"))
self.studidLabel = QtGui.QLabel(self.dataEditContainer)
self.studidLabel.setGeometry(QtCore.QRect(10, 90, 121, 16))
self.studidLabel.setObjectName(_fromUtf8("studidLabel"))
self.ed_studentID = QtGui.QLineEdit(self.dataEditContainer)
self.ed_studentID.setGeometry(QtCore.QRect(10, 110, 451, 31))
self.ed_studentID.setStyleSheet(_fromUtf8("color:black;background:white;"))
self.ed_studentID.setObjectName(_fromUtf8("ed_studentID"))
self.studDeptLabel = QtGui.QLabel(self.dataEditContainer)
self.studDeptLabel.setGeometry(QtCore.QRect(10, 160, 121, 16))
self.studDeptLabel.setObjectName(_fromUtf8("studDeptLabel"))
self.studImageLabel = QtGui.QLabel(self.dataEditContainer)
self.studImageLabel.setGeometry(QtCore.QRect(10, 220, 121, 16))
self.studImageLabel.setObjectName(_fromUtf8("studImageLabel"))
self.ed_image = QtGui.QLineEdit(self.dataEditContainer)
self.ed_image.setGeometry(QtCore.QRect(10, 240, 451, 31))
self.ed_image.setStyleSheet(_fromUtf8("color:black;background:white;"))
self.ed_image.setObjectName(_fromUtf8("ed_image"))
self.updateStudentBtn = QtGui.QPushButton(self.dataEditContainer)
self.updateStudentBtn.setGeometry(QtCore.QRect(330, 280, 131, 31))
self.updateStudentBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111); color: white;"))
self.updateStudentBtn.setObjectName(_fromUtf8("updateStudentBtn"))
self.studentRecorded = QtGui.QLabel(self.dataEditContainer)
self.studentRecorded.setGeometry(QtCore.QRect(10, 280, 251, 31))
self.studentRecorded.setObjectName(_fromUtf8("studentRecorded"))
self.ed_department = QtGui.QComboBox(self.dataEditContainer)
self.ed_department.setGeometry(QtCore.QRect(10, 180, 451, 31))
self.ed_department.setObjectName(_fromUtf8("ed_department"))
self.matricEditEntry = QtGui.QLineEdit(self.studentsTab)
self.matricEditEntry.setGeometry(QtCore.QRect(10, 40, 341, 31))
self.matricEditEntry.setStyleSheet(_fromUtf8("color:black; background: white;"))
self.matricEditEntry.setObjectName(_fromUtf8("matricEditEntry"))
self.editStudentBtn = QtGui.QPushButton(self.studentsTab)
self.editStudentBtn.setGeometry(QtCore.QRect(370, 40, 131, 31))
self.editStudentBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111); color: white;"))
self.editStudentBtn.setObjectName(_fromUtf8("editStudentBtn"))
self.studentNotFound = QtGui.QLabel(self.studentsTab)
self.studentNotFound.setGeometry(QtCore.QRect(10, 90, 301, 31))
self.studentNotFound.setObjectName(_fromUtf8("studentNotFound"))
self.studentRecordSuccess = QtGui.QLabel(self.studentsTab)
self.studentRecordSuccess.setGeometry(QtCore.QRect(20, 100, 291, 21))
self.studentRecordSuccess.setStyleSheet(_fromUtf8(""))
self.studentRecordSuccess.setObjectName(_fromUtf8("studentRecordSuccess"))
self.tabWidget.addTab(self.studentsTab, _fromUtf8(""))
self.coursesTab = QtGui.QWidget()
self.coursesTab.setObjectName(_fromUtf8("coursesTab"))
self.label = QtGui.QLabel(self.coursesTab)
self.label.setGeometry(QtCore.QRect(10, 10, 171, 21))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName(_fromUtf8("label"))
self.addDept = QtGui.QLineEdit(self.coursesTab)
self.addDept.setGeometry(QtCore.QRect(10, 40, 551, 31))
self.addDept.setStyleSheet(_fromUtf8("background:white; color: black;"))
self.addDept.setInputMask(_fromUtf8(""))
self.addDept.setPlaceholderText(_fromUtf8(""))
self.addDept.setObjectName(_fromUtf8("addDept"))
self.addDeptBtn = QtGui.QPushButton(self.coursesTab)
self.addDeptBtn.setGeometry(QtCore.QRect(570, 40, 131, 31))
self.addDeptBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);"))
self.addDeptBtn.setObjectName(_fromUtf8("addDeptBtn"))
self.label_2 = QtGui.QLabel(self.coursesTab)
self.label_2.setGeometry(QtCore.QRect(10, 180, 331, 21))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.label_3 = QtGui.QLabel(self.coursesTab)
self.label_3.setGeometry(QtCore.QRect(10, 90, 171, 21))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_3.setFont(font)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.addCourse = QtGui.QLineEdit(self.coursesTab)
self.addCourse.setGeometry(QtCore.QRect(10, 120, 271, 31))
self.addCourse.setStyleSheet(_fromUtf8("background:white; color: black;"))
self.addCourse.setInputMask(_fromUtf8(""))
self.addCourse.setPlaceholderText(_fromUtf8(""))
self.addCourse.setObjectName(_fromUtf8("addCourse"))
self.addCourseBtn = QtGui.QPushButton(self.coursesTab)
self.addCourseBtn.setGeometry(QtCore.QRect(570, 120, 131, 31))
self.addCourseBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);"))
self.addCourseBtn.setObjectName(_fromUtf8("addCourseBtn"))
self.label_4 = QtGui.QLabel(self.coursesTab)
self.label_4.setGeometry(QtCore.QRect(300, 90, 151, 21))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_4.setFont(font)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.deleteDeptBtn = QtGui.QPushButton(self.coursesTab)
self.deleteDeptBtn.setGeometry(QtCore.QRect(10, 350, 271, 31))
self.deleteDeptBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);color: white;"))
self.deleteDeptBtn.setObjectName(_fromUtf8("deleteDeptBtn"))
self.DeptEditBtn = QtGui.QPushButton(self.coursesTab)
self.DeptEditBtn.setGeometry(QtCore.QRect(10, 310, 271, 31))
self.DeptEditBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);color: white;"))
self.DeptEditBtn.setObjectName(_fromUtf8("DeptEditBtn"))
self.deleteCourseBtn = QtGui.QPushButton(self.coursesTab)
self.deleteCourseBtn.setGeometry(QtCore.QRect(320, 350, 271, 31))
self.deleteCourseBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);color: white;"))
self.deleteCourseBtn.setObjectName(_fromUtf8("deleteCourseBtn"))
self.CourseEditBtn = QtGui.QPushButton(self.coursesTab)
self.CourseEditBtn.setGeometry(QtCore.QRect(320, 310, 271, 31))
self.CourseEditBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);color: white;"))
self.CourseEditBtn.setObjectName(_fromUtf8("CourseEditBtn"))
self.addDeptNotice = QtGui.QLabel(self.coursesTab)
self.addDeptNotice.setGeometry(QtCore.QRect(300, 20, 261, 20))
font = QtGui.QFont()
font.setItalic(True)
self.addDeptNotice.setFont(font)
self.addDeptNotice.setText(_fromUtf8(""))
self.addDeptNotice.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.addDeptNotice.setObjectName(_fromUtf8("addDeptNotice"))
self.courseAddDeptList = QtGui.QComboBox(self.coursesTab)
self.courseAddDeptList.setGeometry(QtCore.QRect(300, 120, 261, 31))
self.courseAddDeptList.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);color: white;"))
self.courseAddDeptList.setObjectName(_fromUtf8("courseAddDeptList"))
self.courseAdded = QtGui.QLabel(self.coursesTab)
self.courseAdded.setGeometry(QtCore.QRect(470, 90, 101, 20))
font = QtGui.QFont()
font.setItalic(True)
self.courseAdded.setFont(font)
self.courseAdded.setObjectName(_fromUtf8("courseAdded"))
self.deptEditSelect = QtGui.QComboBox(self.coursesTab)
self.deptEditSelect.setGeometry(QtCore.QRect(10, 220, 271, 41))
self.deptEditSelect.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);color: white;"))
self.deptEditSelect.setObjectName(_fromUtf8("deptEditSelect"))
self.DeptEdit = QtGui.QLineEdit(self.coursesTab)
self.DeptEdit.setGeometry(QtCore.QRect(10, 270, 271, 31))
self.DeptEdit.setStyleSheet(_fromUtf8("color: rgba(0,0,0); background: white;"))
self.DeptEdit.setObjectName(_fromUtf8("DeptEdit"))
self.courseEditSelect = QtGui.QComboBox(self.coursesTab)
self.courseEditSelect.setGeometry(QtCore.QRect(320, 220, 271, 41))
self.courseEditSelect.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);color: white;"))
self.courseEditSelect.setObjectName(_fromUtf8("courseEditSelect"))
self.CourseEdit = QtGui.QLineEdit(self.coursesTab)
self.CourseEdit.setGeometry(QtCore.QRect(320, 270, 271, 31))
self.CourseEdit.setStyleSheet(_fromUtf8("color: rgba(0,0,0); background: white;"))
self.CourseEdit.setObjectName(_fromUtf8("CourseEdit"))
self.editUpdateNotif = QtGui.QLabel(self.coursesTab)
self.editUpdateNotif.setGeometry(QtCore.QRect(10, 400, 421, 16))
font = QtGui.QFont()
font.setItalic(True)
self.editUpdateNotif.setFont(font)
self.editUpdateNotif.setObjectName(_fromUtf8("editUpdateNotif"))
self.tabWidget.addTab(self.coursesTab, _fromUtf8(""))
self.settingsTab = QtGui.QWidget()
self.settingsTab.setObjectName(_fromUtf8("settingsTab"))
self.label_11 = QtGui.QLabel(self.settingsTab)
self.label_11.setGeometry(QtCore.QRect(10, 20, 141, 16))
self.label_11.setObjectName(_fromUtf8("label_11"))
self.changePassBtn = QtGui.QPushButton(self.settingsTab)
self.changePassBtn.setGeometry(QtCore.QRect(550, 80, 141, 31))
self.changePassBtn.setStyleSheet(_fromUtf8("background: rgb(10, 80, 111);color:white;"))
self.changePassBtn.setObjectName(_fromUtf8("changePassBtn"))
self.passwordChanged = QtGui.QLabel(self.settingsTab)
self.passwordChanged.setGeometry(QtCore.QRect(10, 80, 381, 16))
font = QtGui.QFont()
font.setItalic(True)
self.passwordChanged.setFont(font)
self.passwordChanged.setText(_fromUtf8(""))
self.passwordChanged.setObjectName(_fromUtf8("passwordChanged"))
self.passwordChange = QtGui.QLineEdit(self.settingsTab)
self.passwordChange.setGeometry(QtCore.QRect(10, 40, 681, 31))
self.passwordChange.setStyleSheet(_fromUtf8("background:white; color: black;"))
self.passwordChange.setEchoMode(QtGui.QLineEdit.Password)
self.passwordChange.setObjectName(_fromUtf8("passwordChange"))
self.tabWidget.addTab(self.settingsTab, _fromUtf8(""))
adminWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(adminWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 745, 21))
self.menubar.setStyleSheet(_fromUtf8("color: white;"))
self.menubar.setDefaultUp(False)
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuMenu = QtGui.QMenu(self.menubar)
self.menuMenu.setStyleSheet(_fromUtf8(""))
self.menuMenu.setObjectName(_fromUtf8("menuMenu"))
self.menuAdministrators = QtGui.QMenu(self.menubar)
self.menuAdministrators.setObjectName(_fromUtf8("menuAdministrators"))
self.menuHelp = QtGui.QMenu(self.menubar)
self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
adminWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(adminWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
adminWindow.setStatusBar(self.statusbar)
self.actionQuit = QtGui.QAction(adminWindow)
self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
self.actionDocumentation = QtGui.QAction(adminWindow)
self.actionDocumentation.setObjectName(_fromUtf8("actionDocumentation"))
self.actionAbout = QtGui.QAction(adminWindow)
self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
self.actionCredits = QtGui.QAction(adminWindow)
self.actionCredits.setObjectName(_fromUtf8("actionCredits"))
self.actionSignIn = QtGui.QAction(adminWindow)
self.actionSignIn.setObjectName(_fromUtf8("actionSignIn"))
self.actionLicense = QtGui.QAction(adminWindow)
self.actionLicense.setObjectName(_fromUtf8("actionLicense"))
self.actionAdmin_Logout = QtGui.QAction(adminWindow)
self.actionAdmin_Logout.setObjectName(_fromUtf8("actionAdmin_Logout"))
self.menuMenu.addAction(self.actionQuit)
self.menuMenu.addSeparator()
self.menuAdministrators.addAction(self.actionAdmin_Logout)
self.menuAdministrators.addSeparator()
self.menuHelp.addAction(self.actionDocumentation)
self.menuHelp.addSeparator()
self.menuHelp.addAction(self.actionAbout)
self.menuHelp.addAction(self.actionCredits)
self.menuHelp.addAction(self.actionLicense)
self.menubar.addAction(self.menuMenu.menuAction())
self.menubar.addAction(self.menuAdministrators.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(adminWindow)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(adminWindow)
def retranslateUi(self, adminWindow):
adminWindow.setWindowTitle(QtGui.QApplication.translate("adminWindow", "Registron Administrator", None, QtGui.QApplication.UnicodeUTF8))
self.schoolNameLabel.setText(QtGui.QApplication.translate("adminWindow", "School Name:", None, QtGui.QApplication.UnicodeUTF8))
self.addStudentLabel.setText(QtGui.QApplication.translate("adminWindow", "Add Student:", None, QtGui.QApplication.UnicodeUTF8))
self.surnameLabel.setText(QtGui.QApplication.translate("adminWindow", "Surname:", None, QtGui.QApplication.UnicodeUTF8))
self.othernamesLabel.setText(QtGui.QApplication.translate("adminWindow", "Other names:", None, QtGui.QApplication.UnicodeUTF8))
self.studentsDeptLabel.setText(QtGui.QApplication.translate("adminWindow", "Student\'s Department:", None, QtGui.QApplication.UnicodeUTF8))
self.imageDropLabel.setText(QtGui.QApplication.translate("adminWindow", "Image (drop a 128x128 image in the folder resources/images/128x128 and put the file name here):", None, QtGui.QApplication.UnicodeUTF8))
self.schoolNameBtn.setText(QtGui.QApplication.translate("adminWindow", "Save School Name", None, QtGui.QApplication.UnicodeUTF8))
self.addStudentBtn.setText(QtGui.QApplication.translate("adminWindow", "Add Student", None, QtGui.QApplication.UnicodeUTF8))
self.schoolSaved.setText(QtGui.QApplication.translate("adminWindow", "School Saved", None, QtGui.QApplication.UnicodeUTF8))
self.studentSaved.setText(QtGui.QApplication.translate("adminWindow", "Student Added", None, QtGui.QApplication.UnicodeUTF8))
self.campusIDLabel.setText(QtGui.QApplication.translate("adminWindow", "Campus ID:", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.indexTab), QtGui.QApplication.translate("adminWindow", "School and Students", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabToolTip(self.tabWidget.indexOf(self.indexTab), QtGui.QApplication.translate("adminWindow", "Adjust settings of school and settings", None, QtGui.QApplication.UnicodeUTF8))
self.studlistLabel.setText(QtGui.QApplication.translate("adminWindow", "Enter Student ID to edit record", None, QtGui.QApplication.UnicodeUTF8))
self.studnameLabel.setText(QtGui.QApplication.translate("adminWindow", "Student Name:", None, QtGui.QApplication.UnicodeUTF8))
self.studidLabel.setText(QtGui.QApplication.translate("adminWindow", "Campus ID:", None, QtGui.QApplication.UnicodeUTF8))
self.studDeptLabel.setText(QtGui.QApplication.translate("adminWindow", "Department:", None, QtGui.QApplication.UnicodeUTF8))
self.studImageLabel.setText(QtGui.QApplication.translate("adminWindow", "Image file name:", None, QtGui.QApplication.UnicodeUTF8))
self.updateStudentBtn.setText(QtGui.QApplication.translate("adminWindow", "Update Record", None, QtGui.QApplication.UnicodeUTF8))
self.studentRecorded.setText(QtGui.QApplication.translate("adminWindow", "<html><head/><body><p><img src=\":/images/resources/icons/warning.png\"/>Fill the necessary empty fields</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
self.editStudentBtn.setText(QtGui.QApplication.translate("adminWindow", "Edit Student", None, QtGui.QApplication.UnicodeUTF8))
self.studentNotFound.setText(QtGui.QApplication.translate("adminWindow", "<html><head/><body><p><img src=\":/images/resources/icons/warning.png\"/>Student Record not found in our database</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
self.studentRecordSuccess.setText(QtGui.QApplication.translate("adminWindow", "<html><head/><body><p><img src=\":/images/resources/icons/checked.png\"/> Student record has been updated</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.studentsTab), QtGui.QApplication.translate("adminWindow", "Manage Students", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("adminWindow", "Add Department:", None, QtGui.QApplication.UnicodeUTF8))
self.addDeptBtn.setText(QtGui.QApplication.translate("adminWindow", "Add", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("adminWindow", "Select Department to Edit Courses in it:", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("adminWindow", "New Course:", None, QtGui.QApplication.UnicodeUTF8))
self.addCourseBtn.setText(QtGui.QApplication.translate("adminWindow", "Add", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setText(QtGui.QApplication.translate("adminWindow", "Department:", None, QtGui.QApplication.UnicodeUTF8))
self.deleteDeptBtn.setText(QtGui.QApplication.translate("adminWindow", "Delete Department", None, QtGui.QApplication.UnicodeUTF8))
self.DeptEditBtn.setText(QtGui.QApplication.translate("adminWindow", "Edit Department", None, QtGui.QApplication.UnicodeUTF8))
self.deleteCourseBtn.setText(QtGui.QApplication.translate("adminWindow", "Delete Course", None, QtGui.QApplication.UnicodeUTF8))
self.CourseEditBtn.setText(QtGui.QApplication.translate("adminWindow", "Edit Course", None, QtGui.QApplication.UnicodeUTF8))
self.courseAdded.setText(QtGui.QApplication.translate("adminWindow", "Course added", None, QtGui.QApplication.UnicodeUTF8))
self.editUpdateNotif.setText(QtGui.QApplication.translate("adminWindow", "Item updated", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.coursesTab), QtGui.QApplication.translate("adminWindow", "Manage Courses", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabToolTip(self.tabWidget.indexOf(self.coursesTab), QtGui.QApplication.translate("adminWindow", "Add and Edit School Courses", None, QtGui.QApplication.UnicodeUTF8))
self.label_11.setText(QtGui.QApplication.translate("adminWindow", "Change Password:", None, QtGui.QApplication.UnicodeUTF8))
self.changePassBtn.setText(QtGui.QApplication.translate("adminWindow", "Update Password", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.settingsTab), QtGui.QApplication.translate("adminWindow", "Setttings", None, QtGui.QApplication.UnicodeUTF8))
self.menuMenu.setTitle(QtGui.QApplication.translate("adminWindow", "Application", None, QtGui.QApplication.UnicodeUTF8))
self.menuAdministrators.setTitle(QtGui.QApplication.translate("adminWindow", "Administrator", None, QtGui.QApplication.UnicodeUTF8))
self.menuHelp.setTitle(QtGui.QApplication.translate("adminWindow", "Help", None, QtGui.QApplication.UnicodeUTF8))
self.actionQuit.setText(QtGui.QApplication.translate("adminWindow", "Quit registron", None, QtGui.QApplication.UnicodeUTF8))
self.actionQuit.setStatusTip(QtGui.QApplication.translate("adminWindow", "Exit this program", None, QtGui.QApplication.UnicodeUTF8))
self.actionQuit.setShortcut(QtGui.QApplication.translate("adminWindow", "Ctrl+Q", None, QtGui.QApplication.UnicodeUTF8))
self.actionDocumentation.setText(QtGui.QApplication.translate("adminWindow", "Online Documentation", None, QtGui.QApplication.UnicodeUTF8))
self.actionDocumentation.setShortcut(QtGui.QApplication.translate("adminWindow", "Ctrl+?", None, QtGui.QApplication.UnicodeUTF8))
self.actionAbout.setText(QtGui.QApplication.translate("adminWindow", "About Registron", None, QtGui.QApplication.UnicodeUTF8))
self.actionAbout.setShortcut(QtGui.QApplication.translate("adminWindow", "Ctrl+A", None, QtGui.QApplication.UnicodeUTF8))
self.actionCredits.setText(QtGui.QApplication.translate("adminWindow", "Credits", None, QtGui.QApplication.UnicodeUTF8))
self.actionCredits.setShortcut(QtGui.QApplication.translate("adminWindow", "Ctrl+R", None, QtGui.QApplication.UnicodeUTF8))
self.actionSignIn.setText(QtGui.QApplication.translate("adminWindow", "Manage Accounts", None, QtGui.QApplication.UnicodeUTF8))
self.actionLicense.setText(QtGui.QApplication.translate("adminWindow", "License", None, QtGui.QApplication.UnicodeUTF8))
self.actionAdmin_Logout.setText(QtGui.QApplication.translate("adminWindow", "Admin Logout", None, QtGui.QApplication.UnicodeUTF8))
import app_rc