-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
226 lines (124 loc) · 4.36 KB
/
mainwindow.h
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include<QDebug>
#include<QMessageBox>
#include<QSqlDatabase>
#include<QSqlQuery>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_user_login_button_clicked();
void on_signup_button_clicked();
void on_user_button_clicked();
void on_search_button_2_clicked();
void on_View_seat_btn_clicked();
void on_next_button_clicked();
void on_proceed_button_passenger_clicked();
void on_purchase_button_clicked();
void on_admin_button_clicked();
void on_admin_login_button_clicked();
void on_Admin_panel_next_clicked();
void on_Driver_next_clicked();
void on_des_back_btn_clicked();
void on_signlog_back_clicked();
void on_bus_sel_back_btn_clicked();
void on_from_combo_box_currentTextChanged(const QString &arg1);
void on_to_combo_box_currentTextChanged(const QString &arg1);
void on_date_combo_box_userDateChanged(const QDate &date);
void on_date_combo_box_dateChanged(const QDate &date);
void on_payment_back_clicked();
void on_seat_selec_back_btn_clicked();
void on_profile_button_clicked();
void on_complain_box_clicked();
void on_confirm_seatbooking_btn_clicked();
void on_job_apply_clicked();
void on_Home_page_button_clicked();
void on_Home_page_button_2_clicked();
void on_Home_page_button_3_clicked();
void on_Apply_job_button_clicked();
void on_Driver_add_submit_button_clicked();
void on_admin_display_back_button_clicked();
void on_Driver_delete_button_clicked();
void on_bookprofile_button_clicked();
void on_A1_clicked();
void on_admin_panel_back_button_clicked();
void on_admin_panel__login_back_button_clicked();
void on_A2_clicked();
void on_A3_clicked();
void on_B1_clicked();
void on_B2_clicked();
void on_B3_clicked();
void on_C1_clicked();
void on_C2_clicked();
void on_C3_clicked();
void on_D1_clicked();
void on_D2_clicked();
void on_D3_clicked();
void on_E1_clicked();
void on_E2_clicked();
void on_E3_clicked();
void on_F1_clicked();
void on_F2_clicked();
void on_F3_clicked();
void on_admin_driver_back_button_clicked();
void on_Seat_selection_confirm_button_clicked();
void on_job_apply_2_clicked();
void on_proceed_button_passenger_2_clicked();
void on_paymenT_submit_button_clicked();
void on_invoice_back_button_clicked();
void on_admin_display_logout_button_clicked();
void on_seat_info_clicked();
void on_bus_sel_back_btn_3_clicked();
void on_Download_refund_button_clicked();
void on_Home_page_button_4_clicked();
void on_on_complain_done_button_clicked();
void on_download_ticket_button_clicked();
void on_home_page_button_clicked();
void on_refun_button_clicked();
void on_download_ticket_back_button_clicked();
void on_download_ticket_button_2_clicked();
void on_Trx_back_button_clicked();
void on_About_us_button_clicked();
private:
Ui::MainWindow *ui;
QString name_sign, email_sign, password_sign, contact_sign, confirm_pass_sign;
QString job_driver_name,job_driver_email,job_driver_contact,job_driver_address,job_driver_experience;
QString add_driver_name,add_driver_email,add_driver_contact;
QString driver_delete_email,driver_admin_password;
QString email, password;
QString admin_email, admin_password;
QString confirm_email,confirm_to_1;
QString Trx_email,Trx_num;
QString user;
QString Q1,Q2;
int A1Flag = 0;
int A2Flag = 0;
int A3Flag = 0;
int B1Flag = 0;
int B2Flag = 0;
int B3Flag = 0;
int C1Flag = 0;
int C2Flag = 0;
int C3Flag = 0;
int D1Flag = 0;
int D2Flag = 0;
int D3Flag = 0;
int E1Flag = 0;
int E2Flag = 0;
int E3Flag = 0;
int F1Flag = 0;
int F2Flag = 0;
int F3Flag = 0;
int count;
//int numof_seat;
QSqlDatabase db;
};
#endif // MAINWINDOW_H