-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsessioneditpagesession.h
62 lines (49 loc) · 1.46 KB
/
sessioneditpagesession.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
#ifndef SESSIONEDITPAGESESSION_H
#define SESSIONEDITPAGESESSION_H
#include <QWizardPage>
#include <QGridLayout>
#include <QLabel>
#include <QComboBox>
#include <QLineEdit>
#include <QSpinBox>
#include <QCalendarWidget>
#include <QDateEdit>
#include "data.h"
class SessionEditPageSession : public QWizardPage
{
Q_OBJECT
public:
explicit SessionEditPageSession(QWidget *parent = 0, QString session = "");
bool sessionExisted() const { return sessionID() >= 0; }
int sessionID() const;
QString sessionName() const;
int sessionChallongeID() const;
int sessionTournamentID() const;
QString sessionDate() const;
QString sessionURL() const;
signals:
private slots:
// void onSelectionChanged();
protected:
virtual void initializePage();
virtual bool validatePage();
private:
//QDate m_date;
int m_session_id_init;
int m_session_challonge_id_init;
int m_session_tournament_id_init;
QString m_session_name_init;
QGridLayout* m_layout;
QLabel* m_label_session_name;
QLineEdit* m_edit_session_name;
QLabel* m_label_session_challonge_id;
QSpinBox* m_edit_session_challonge_id;
QLabel* m_label_session_tournament_name;
QComboBox* m_edit_session_tournament_name;
QLabel* m_label_calendar;
QCalendarWidget *m_calendar;
QDateEdit* m_dateEdit;
QLabel* m_label_url;
QLineEdit* m_edit_url;
};
#endif // SESSIONEDITPAGESESSION_H