-
Notifications
You must be signed in to change notification settings - Fork 5
/
dashboard.h
78 lines (67 loc) · 2.04 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
#ifndef DASHBOARD_H
#define DASHBOARD_H
#include <QDialog>
#include <QTableView>
#include <connection.h>
#include <dialog.h>
#include <QThread>
#include <QtCore>
#include <mythread.h>
#include "display.h"
#include "display.h"
namespace Ui {
class dashboard;
}
/* Class purpose: Creates user's main dashboard
*/
class dashboard : public QDialog
{
Q_OBJECT
public:
explicit dashboard(QString u, QWidget *parent = 0);
~dashboard();
QString myuser;
QString groupID;
QString groupName;
MyThread *m_pRefreshThread;
display *displayObject;
connection myconn;
QString getGroupID();
bool getMode();
bool isGroupMode; // to indicate group/personal mode
bool resetStatus;
void setMode(bool isGroup);
void setGroupID(const QModelIndex &groupID);
void setGroupName();
void updateCalendarName(QString name);
private:
Ui::dashboard *ui;
protected:
void closeEvent(QCloseEvent * e);
signals:
void updateTable(QTableView *tbl, QString user, QString date);
void updateReminder(QTableView *reminderTbl, QString user);
void updateBulletins(QTableView *bulletinTbl, QString groupID);
private slots:
void on_loadonline_clicked();
void on_addevents_clicked();
void on_editEvents_clicked();
void on_deleteEvents_clicked();
void on_createGroup_clicked();
void on_sendButton_clicked();
void on_homeButton_clicked();
void on_groupsview_clicked(const QModelIndex &index);
void on_eventsview_clicked(const QModelIndex &index);
void on_calendarWidget_selectionChanged();
void on_messageBox_textChanged();
void on_networktabs_currentChanged(int index);
void clearEditInfo();
void resetGroupAttributes();
// new methods created for simplification
int countEvents(QDate target);
void slot_refreshThread();
void checkNoDateEvent();
void on_DescriptxtEdit_textChanged();
void on_calendarWidget_clicked(const QDate &date);
};
#endif // DASHBOARD_H