forked from 3rd-year-CSE-20/SIS_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
68 lines (64 loc) · 1.5 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QDebug>
#include <QMainWindow>
#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include <QFormLayout>
#include <QHBoxLayout>
#include <QGroupBox>
#include <QDebug>
#include <QPalette>
#include <QPixmap>
#include <QFont>
#include <QSpacerItem>
#include "dashboard.h"
#include "register.h"
#include "clickablelabel.h"
#include "sqliteclass.h"
#include "globalDbObject.h"
#include "admin.h"
#include "student.h"
#include "staffmember.h"
#include "staffdashboard.h"
#include "login.h"
#include "admindashboard.h"
class MainWindow : public QMainWindow{
Q_OBJECT
private:
Login *loginWidget;
Register *regWidget;
Dashboard *studentDashboard;
StaffDashboard *staffDashboard;
AdminDashboard *adminDashboard;
QWidget *main;
QWidget *_main;
QVBoxLayout *mainLayout;
QHBoxLayout *_mainLayout;
QSpacerItem *s1;
void loadStyles();
void checkStudentAvailability();
public:
MainWindow(QWidget *parent = nullptr);
void setWidget(QWidget *);
~MainWindow();
private slots:
void setSignupWidget();
void setLoginWidget();
void login(QString,QString);
void Signout();
void adminSignout();
void academicSignout();
void adminAddStudent();
void adminAddAcademic();
void adminDash();
void studentSelected(Student s);
void studentDashBack();
void staffDashBack();
void staffSelected(StaffMember s);
signals:
void error();
};
#endif // MAINWINDOW_H