-
Notifications
You must be signed in to change notification settings - Fork 5
/
dialog.h
48 lines (38 loc) · 1 KB
/
dialog.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
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QString>
#include <QDate>
#include <connection.h>
#include <QCloseEvent>
namespace Ui {
class Dialog;
}
// PURPOSE: This class is used to display event info window
class Dialog : public QDialog
{
Q_OBJECT
public:
bool accepted; // to indicate if accepted or rejected
bool groupModeSet;
QString groupID;
explicit Dialog(QWidget *parent = 0);
~Dialog();
connection myconn;
QString myuser;
QString date;
void setUser(QString u);
void setDate(QDate date); // edits date edit text to arg date
const QDate getDate(); // returns date edit date
QString getNewEventID();
void setMode(bool newMode);
void setGroupID(QString newID);
private:
Ui::Dialog *ui;
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void closeEvent(QCloseEvent *event);
void on_description_textChanged();
};
#endif // DIALOG_H