Conference Registration 2024.07.18.04
Loading...
Searching...
No Matches
newregistrationdialog.h
Go to the documentation of this file.
1
9#ifndef NEWREGISTRATIONDIALOG_H
10#define NEWREGISTRATIONDIALOG_H
11
12#include <QDialog>
13
14class QComboBox;
15class QDateEdit;
16class QGridLayout;
17class QGroupBox;
18class QLabel;
19class QLineEdit;
20class QPushButton;
22
23
29class NewRegistrationDialog : public QDialog
30{
31 Q_OBJECT
32public:
38 explicit NewRegistrationDialog(RegistrationList *list, QDialog *parent = nullptr);
39
44
45private slots:
49 void on_pushButtonRegister_clicked();
50
54 void on_pushButtonCancel_clicked();
55
59 void on_comboBoxRegistrationType_changed();
60
61private:
65 void setupUI();
66
70 void setupRegistrationGroup();
71
75 void setupApplicantGroup();
76
80 void setupButtons();
81
85 void updateRegistrationFormBasedOnRegistrationType();
86
90 void setupInputValidation();
91
96 bool isValidInput(const QString &type, const QString &name, const QString &affiliation, const QString &email, const QString &qualification, const QString &category);
97
98private:
99 QComboBox *comboBoxRegistrationType;
100 QDateEdit *dateEditBookingDate;
101 QLineEdit *lineEditName;
102 QLineEdit *lineEditAffiliation;
103 QLineEdit *lineEditEmail;
104 QLineEdit *lineEditStudentQualification;
105 QLineEdit *lineEditGuestCategory;
106 QPushButton *pushButtonRegister;
107 QPushButton *pushButtonCancel;
108 QGridLayout *mainLayout;
109 QGridLayout *gridLayoutApplicant;
110 QGroupBox *groupBoxRegistration;
111 QGroupBox *groupBoxApplicant;
112 QLabel *labelStudentQualification;
113 QLabel *labelGuestCategory;
114 RegistrationList *registrationList;
115};
116
117#endif // NEWREGISTRATIONDIALOG_H
The NewRegistrationDialog class represents a dialog for creating a new registration.
Definition newregistrationdialog.h:30
NewRegistrationDialog(RegistrationList *list, QDialog *parent=nullptr)
Constructs a NewRegistrationDialog object.
Definition newregistrationdialog.cpp:23
~NewRegistrationDialog()
Destroys the NewRegistrationDialog object.
Definition newregistrationdialog.cpp:51
Manages a list of conference registrations.
Definition registrationlist.h:28