-------------------- -------------------- -------------------- -------

  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
#----------------------------------------------------------------------------------------------
def click_menu_settings (self):
print "click_menu_settings"
self.settings = QtGui.QDialog(self.interview)
self.settings.setWindowTitle("Settings")
self.settings.resize(714, 619)
self.settings.gridLayout_8 = QtGui.QGridLayout(self.settings)
self.settings.tabWidget = QtGui.QTabWidget(self.settings)
self.settings.settings_tab = QtGui.QWidget()
self.settings.gridLayout_2 = QtGui.QGridLayout(self.settings.settings_tab)
self.settings.host_label = QtGui.QLabel(self.settings.settings_tab)
self.settings.host_label.setText("Host")
self.settings.gridLayout_2.addWidget(self.settings.host_label, 0, 0, 1, 1)
self.settings.host_label = QtGui.QLabel(self.settings.settings_tab)
self.settings.host_label.setText("Host")
self.settings.gridLayout_2.addWidget(self.settings.host_label, 0, 0, 1, 1)
self.settings.host_edit = QtGui.QLineEdit(self.settings.settings_tab)
self.settings.gridLayout_2.addWidget(self.settings.host_edit, 0, 1, 1, 1)
self.settings.port_label = QtGui.QLabel(self.settings.settings_tab)
self.settings.port_label.setText("Port")
self.settings.gridLayout_2.addWidget(self.settings.port_label, 1, 0, 1, 1)
self.settings.port_edit = QtGui.QLineEdit(self.settings.settings_tab)
self.settings.gridLayout_2.addWidget(self.settings.port_edit, 1, 1, 1, 1)
self.settings.db_name_label = QtGui.QLabel(self.settings.settings_tab)
self.settings.db_name_label.setText("DB name")
self.settings.gridLayout_2.addWidget(self.settings.db_name_label, 2, 0, 1, 1)
self.settings.db_name_edit = QtGui.QLineEdit(self.settings.settings_tab)
self.settings.gridLayout_2.addWidget(self.settings.db_name_edit, 2, 1, 1, 1)
self.settings.settings_groupbox = QtGui.QGroupBox(self.settings.settings_tab)
self.settings.settings_groupbox.setTitle("Tables")
self.settings.gridLayout = QtGui.QGridLayout(self.settings.settings_groupbox)
self.settings.address_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.address_radio.setText("Address")
self.settings.gridLayout.addWidget(self.settings.address_radio, 0, 0, 1, 1)
self.settings.article_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.article_radio.setText("Article")
self.settings.gridLayout.addWidget(self.settings.article_radio, 0, 1, 1, 1)
self.settings.client_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.client_radio.setText("Client")
self.settings.gridLayout.addWidget(self.settings.client_radio, 0, 2, 1, 1)
self.settings.dayoff_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.dayoff_radio.setText("Dayoff")
self.settings.gridLayout.addWidget(self.settings.dayoff_radio, 1, 0, 1, 1)
self.settings.dayoff_type_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.dayoff_type_radio.setText("Dayoff type")
self.settings.gridLayout.addWidget(self.settings.dayoff_type_radio, 1, 1, 1, 1)
self.settings.interview_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.interview_radio.setText("Interview")
self.settings.gridLayout.addWidget(self.settings.interview_radio, 1, 2, 1, 1)
self.settings.interview_status_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.interview_status_radio.setText("Interview status")
self.settings.gridLayout.addWidget(self.settings.interview_status_radio, 2, 0, 1, 1)
self.settings.price_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.price_radio.setText("Price")
self.settings.gridLayout.addWidget(self.settings.price_radio, 2, 1, 1, 1)
self.settings.spec_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.spec_radio.setText("Specialization")
self.settings.gridLayout.addWidget(self.settings.spec_radio, 2, 2, 1, 1)
self.settings.t_task_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.t_task_radio.setText("t_task")
self.settings.gridLayout.addWidget(self.settings.t_task_radio, 3, 0, 1, 1)
self.settings.task_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.task_radio.setText("Task")
self.settings.gridLayout.addWidget(self.settings.task_radio, 3, 1, 1, 1)
self.settings.task_status_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.task_status_radio.setText("Task status")
self.settings.gridLayout.addWidget(self.settings.task_status_radio, 3, 2, 1, 1)
self.settings.worker_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.worker_radio.setText("Worker")
self.settings.gridLayout.addWidget(self.settings.worker_radio, 4, 0, 1, 1)
self.settings.worker_spec_radio = QtGui.QRadioButton(self.settings.settings_groupbox)
self.settings.worker_spec_radio.setText("Worker spec")
self.settings.gridLayout.addWidget(self.settings.worker_spec_radio, 4, 1, 1, 1)
self.settings.gridLayout_2.addWidget(self.settings.settings_groupbox,3,0,1,2)
self.settings.set_win_view = QtGui.QTableView(self.settings.settings_tab)
self.settings.gridLayout_2.addWidget(self.settings.set_win_view, 4, 0, 1, 2)
self.settings.set_win_model = QtSql.QSqlRelationalTableModel()
self.settings.set_win_model.setEditStrategy(QtSql.QSqlTableModel.OnManualSubmit)
self.settings.set_win_view.setModel(self.settings.set_win_model)
self.settings.srefresh_button = QtGui.QToolButton(self.settings.settings_tab)
self.settings.srefresh_button.setText("Refresh")
self.settings.gridLayout_2.addWidget(self.settings.srefresh_button, 5, 0, 1, 1)
self.settings.tabWidget.addTab(self.settings.settings_tab,"Settings")
self.settings.report_tab = QtGui.QWidget()
self.settings.gridLayout_3 = QtGui.QGridLayout(self.settings.report_tab)
self.settings.report_groupbox = QtGui.QGroupBox(self.settings.report_tab)
self.settings.report_groupbox.setTitle("Report Type")
self.settings.gridLayout_4 = QtGui.QGridLayout(self.settings.report_groupbox)
self.settings.interview_radio = QtGui.QRadioButton(self.settings.report_groupbox)
self.settings.interview_radio.setText("Interview")
self.settings.gridLayout_4.addWidget(self.settings.interview_radio, 0, 0, 1, 1)
self.settings.worker_radio = QtGui.QRadioButton(self.settings.report_groupbox)
self.settings.worker_radio.setText("Worker")
self.settings.gridLayout_4.addWidget(self.settings.worker_radio, 0, 1, 1, 1)
self.settings.task_radio = QtGui.QRadioButton(self.settings.report_groupbox)
self.settings.task_radio.setText("Task")
self.settings.gridLayout_4.addWidget(self.settings.task_radio, 1, 0, 1, 1)
self.settings.client_radio = QtGui.QRadioButton(self.settings.report_groupbox)
self.settings.client_radio.setText("Client")
self.settings.gridLayout_4.addWidget(self.settings.client_radio, 1, 1, 1, 1)
self.settings.price_radio = QtGui.QRadioButton(self.settings.report_groupbox)
self.settings.price_radio.setText("Price")
self.settings.gridLayout_4.addWidget(self.settings.price_radio, 2, 0, 1, 1)
self.settings.gridLayout_3.addWidget(self.settings.report_groupbox, 0, 0, 3, 2)
self.settings.from_label = QtGui.QLabel(self.settings.report_tab)
self.settings.from_label.setText("From")
self.settings.gridLayout_3.addWidget(self.settings.from_label, 0, 2, 1, 1)
self.settings.from_date = QtGui.QDateEdit(self.settings.report_tab)
self.settings.gridLayout_3.addWidget(self.settings.from_date, 0, 4, 1, 1)
self.settings.to_label = QtGui.QLabel(self.settings.report_tab)
self.settings.to_label.setText("To")
self.settings.gridLayout_3.addWidget(self.settings.to_label, 1, 2, 1, 1)
temp=QtCore.QDate()
self.settings.to_date = QtGui.QDateEdit(self.settings.report_tab)
self.settings.to_date.setDate(temp.currentDate())
self.settings.gridLayout_3.addWidget(self.settings.to_date, 1, 4, 1, 1)
self.settings.preview_report = QtGui.QPlainTextEdit(self.settings.report_tab)
self.settings.gridLayout_3.addWidget(self.settings.preview_report, 4, 0, 1, 5)
self.settings.form_report_button = QtGui.QToolButton(self.settings.report_tab)
self.settings.form_report_button.setText("Form")
self.settings.gridLayout_3.addWidget(self.settings.form_report_button, 5, 0, 1, 2)
self.settings.file_label = QtGui.QLabel(self.settings.report_tab)
self.settings.file_label.setText("File")
self.settings.gridLayout_3.addWidget(self.settings.file_label, 2, 2, 1, 1)
self.settings.file_edit = QtGui.QLineEdit(self.settings.report_tab)
self.settings.gridLayout_3.addWidget(self.settings.file_edit, 2, 3, 1, 2)
self.settings.tabWidget.addTab(self.settings.report_tab, "Reports")
self.settings.add_type_tab = QtGui.QWidget()
self.settings.gridLayout_6 = QtGui.QGridLayout(self.settings.add_type_tab)
self.settings.type_groupbox = QtGui.QGroupBox(self.settings.add_type_tab)
self.settings.type_groupbox.setTitle("Type")
self.settings.gridLayout_5 = QtGui.QGridLayout(self.settings.type_groupbox)
self.settings.spec_radio = QtGui.QRadioButton(self.settings.type_groupbox)
self.settings.spec_radio.setText("Specialization")
self.settings.gridLayout_5.addWidget(self.settings.spec_radio, 0, 0, 1, 1)
self.settings.dayoff_radio = QtGui.QRadioButton(self.settings.type_groupbox)
self.settings.dayoff_radio.setText("Dayoff")
self.settings.gridLayout_5.addWidget(self.settings.dayoff_radio, 1, 0, 1, 1)
self.settings.article_radio = QtGui.QRadioButton(self.settings.type_groupbox)
self.settings.article_radio.setText("Article")
self.settings.gridLayout_5.addWidget(self.settings.article_radio, 2, 0, 1, 1)
self.settings.gridLayout_6.addWidget(self.settings.type_groupbox, 0, 0, 2, 1)
self.settings.type_add_button = QtGui.QToolButton(self.settings.add_type_tab)
self.settings.type_add_button.setText("Add")
self.settings.gridLayout_6.addWidget(self.settings.type_add_button, 0, 1, 1, 1)
self.settings.type_save_button = QtGui.QToolButton(self.settings.add_type_tab)
self.settings.type_save_button.setText("Save")
self.settings.gridLayout_6.addWidget(self.settings.type_save_button, 0, 2, 1, 1)
self.settings.type_del_button = QtGui.QToolButton(self.settings.add_type_tab)
self.settings.type_del_button.setText("Delete")
self.settings.gridLayout_6.addWidget(self.settings.type_del_button, 1, 1, 1, 1)
self.settings.type_refresh_button = QtGui.QToolButton(self.settings.add_type_tab)
self.settings.type_refresh_button.setText("Refresh")
self.settings.gridLayout_6.addWidget(self.settings.type_refresh_button, 1, 2, 1, 1)
self.settings.type_view = QtGui.QTableView(self.settings.add_type_tab)
self.settings.gridLayout_6.addWidget(self.settings.type_view, 2, 0, 1, 3)
self.settings.tabWidget.addTab(self.settings.add_type_tab, "Types")
self.settings.user_tab = QtGui.QWidget()
self.settings.gridLayout_7 = QtGui.QGridLayout(self.settings.user_tab)
self.settings.user_view = QtGui.QTableView(self.settings.user_tab)
self.settings.gridLayout_7.addWidget(self.settings.user_view, 0, 0, 5, 1)
self.settings.user_add_button = QtGui.QToolButton(self.settings.user_tab)
self.settings.user_add_button.setText(" Add ")
self.settings.gridLayout_7.addWidget(self.settings.user_add_button, 0, 1, 1, 1)
self.settings.user_del_button = QtGui.QToolButton(self.settings.user_tab)
self.settings.user_del_button.setText(" Delete")
self.settings.gridLayout_7.addWidget(self.settings.user_del_button, 1, 1, 1, 1)
self.settings.user_save_button = QtGui.QToolButton(self.settings.user_tab)
self.settings.user_save_button.setText(" Save ")
self.settings.gridLayout_7.addWidget(self.settings.user_save_button, 2, 1, 1, 1)
self.settings.user_refresh_button = QtGui.QToolButton(self.settings.user_tab)
self.settings.user_refresh_button.setText("Refresh")
self.settings.gridLayout_7.addWidget(self.settings.user_refresh_button, 3, 1, 1, 1)
self.settings.tabWidget.addTab(self.settings.user_tab, "Users")
self.settings.gridLayout_8.addWidget(self.settings.tabWidget,0,0,1,1)
self.settings.ok_button = QtGui.QToolButton(self.settings)
self.settings.ok_button.setText(" Ok ")
self.settings.gridLayout_8.addWidget(self.settings.ok_button, 1, 0, 1, 1)
QtCore.QObject.connect(self.settings.srefresh_button, QtCore.SIGNAL("clicked()"), self.settings_menu_all_refresh_pressed)
QtCore.QObject.connect(self.settings.form_report_button, QtCore.SIGNAL("clicked()"), self.settings_menu_report_form_pressed)
QtCore.QObject.connect(self.settings.type_add_button, QtCore.SIGNAL("clicked()"), self.settings_menu_type_add_pressed)
QtCore.QObject.connect(self.settings.type_del_button, QtCore.SIGNAL("clicked()"), self.settings_menu_type_del_pressed)
QtCore.QObject.connect(self.settings.type_save_button, QtCore.SIGNAL("clicked()"), self.settings_menu_type_save_pressed)
QtCore.QObject.connect(self.settings.type_refresh_button, QtCore.SIGNAL("clicked()"), self.settings_menu_type_refresh_pressed)
QtCore.QObject.connect(self.settings.user_add_button, QtCore.SIGNAL("clicked()"), self.settings_menu_user_add_pressed)
QtCore.QObject.connect(self.settings.user_del_button, QtCore.SIGNAL("clicked()"), self.settings_menu_user_del_pressed)
QtCore.QObject.connect(self.settings.user_save_button, QtCore.SIGNAL("clicked()"), self.settings_menu_user_save_pressed)
QtCore.QObject.connect(self.settings.user_refresh_button, QtCore.SIGNAL("clicked()"), self.settings_menu_user_refresh_pressed)
QtCore.QObject.connect(self.settings.ok_button, QtCore.SIGNAL("clicked()"), self.settings_menu_ok_pressed)
QtCore.QMetaObject.connectSlotsByName(self.settings)
self.settings.show()
#----------------------------------------------------------------------------------------------
def settings_menu_all_refresh_pressed (self):
print "settings menu all refresh pressed"
print self.settings.article_radio.isChecked()
print self.settings.address_radio.isChecked()
print self.settings.client_radio.isChecked()