forked from 3rd-year-CSE-20/SIS_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.h
97 lines (89 loc) · 2.16 KB
/
dashboard.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
#ifndef DASHBOARD_H
#define DASHBOARD_H
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPixmap>
#include <QSize>
#include <QString>
#include <QPalette>
#include <QFormLayout>
#include <QTableWidget>
#include <QLineEdit>
#include <QListWidget>
#include <QStringList>
#include <QList>
#include <QListWidgetItem>
#include "student.h"
#include "course.h"
class Dashboard : public QWidget
{
Q_OBJECT
public:
Dashboard(Student *s,QWidget *parent = nullptr, bool froAdmin = false);
~Dashboard();
private:
QVBoxLayout *mainLayout;
QHBoxLayout *_mainLayout;
QWidget *container;
QTabWidget *tabWidget;
QPushButton *backBtn;
QWidget *personalInfo;
QWidget *academicInfo;
QWidget *servicesWidget;
QVBoxLayout *servicesLayout;
QFormLayout *servicesFormlay;
QVBoxLayout *personalInfoLayout;
QVBoxLayout *academicInfoLayout;
QLabel *pic;
QLabel *pic2;
QLabel *fnamelbl;
QLabel *fnameDBlbl;
QLabel *lnamelbl;
QLabel *lnameDBlbl;
QLabel *addrlbl;
QLabel *addrDBlbl;
QLabel *phonelbl;
QLabel *phoneDBlbl;
QLabel *gendlbl;
QLabel *gendDBlbl;
QLabel *birthlbl;
QLabel *birthDBlbl;
QLabel *gpalbl;
QLabel *gpaDBlbl;
QLabel *departlbl;
QLabel *departDBlbl;
QLabel *idlbl;
QLabel *idDBlbl;
QLabel *currentYlbl;
QLabel *currentYDBlbl;
QLabel *courseslbl;
QLabel *coursesDBlbl;
Student s;
QLineEdit *firstNameEdit;
QLineEdit *lastNameEdit;
QLineEdit *addressNameEdit;
QLineEdit *BirthDayNameEdit;
QPushButton *saveBtn;
QPushButton *backkBtn;
QPushButton *deleteBtn;
QPushButton *gpaBtn;
QListWidget *coursesList;
QLabel *chooseCourselbl;
QPushButton *enrollBtn;
signals:
void Signout();
void Back();
void Delete();
private slots:
void onSignoutClicked();
void onSaveClicked();
void onBackClicked();
void onDeleteClicked();
void onReqGPAClicked();
void onCourseSelected();
void onEnrollClicked();
};
#endif // DASHBOARD_H