Educational Game Platform
registerwidget.h
1 #ifndef REGISTERWIDGET_H
2 #define REGISTERWIDGET_H
3 
4 #include <QWidget>
5 #include <QtWidgets>
6 
13 class registerWidget : public QWidget
14 {
15  Q_OBJECT
16 public:
17  explicit registerWidget(QWidget *parent = 0);
18  bool isSelected;
19  QLabel *welcome;
20  QLabel *fname;
21  QLineEdit *fname_edit;
22  QLabel *lname;
23  QLineEdit *lname_edit;
24  QLabel *username;
25  QLineEdit *username_edit;
26  QLabel *password;
27  QLineEdit *password_edit;
28  QLabel *passwordconf;
29  QLineEdit *passwordconf_edit;
30  QLabel *date_text;
31  QDateEdit *date_picker;
32  QLabel *error_message;
33 
34  QLabel *gender_text;
35  QVBoxLayout *gender_radio;
36  QGroupBox *gender_container;
37  QRadioButton *male_button;
38  QRadioButton *female_button;
39 
40  QLabel *pppicture_text;
41  QPushButton *add_pppicture;
42  QLabel *pppicture;
43 
44  QPushButton *cancel;
45  QPushButton *confirm;
46 
47  QString *filename;
48  QFile *tempfile;
49 
50  QGridLayout *register_layout;
51 
52 
53 signals:
54 
55 public slots:
56 void selectPicture();
57 void cancelRegistration();
58 void confirmRegistration();
59 void checkConditions();
60 bool passCheck();
61 
62 
63 };
64 
65 #endif // REGISTERWIDGET_H
registerWidget::gender_radio
QVBoxLayout * gender_radio
Layout element.
Definition: registerwidget.h:35
registerWidget::password_edit
QLineEdit * password_edit
personal info input (password)
Definition: registerwidget.h:27
registerWidget
Definition: registerwidget.h:14
registerWidget::fname_edit
QLineEdit * fname_edit
personal info input (fname)
Definition: registerwidget.h:21
registerWidget::error_message
QLabel * error_message
text label
Definition: registerwidget.h:32
registerWidget::filename
QString * filename
Selected profile picture path.
Definition: registerwidget.h:47
registerWidget::isSelected
bool isSelected
bool associated to profile picture selected
Definition: registerwidget.h:18
registerWidget::gender_container
QGroupBox * gender_container
Layout element.
Definition: registerwidget.h:36
registerWidget::date_picker
QDateEdit * date_picker
personal info input (date picker)
Definition: registerwidget.h:31
registerWidget::female_button
QRadioButton * female_button
Radio button.
Definition: registerwidget.h:38
registerWidget::passwordconf_edit
QLineEdit * passwordconf_edit
personal info input (password confirmation)
Definition: registerwidget.h:29
registerWidget::male_button
QRadioButton * male_button
Radio button.
Definition: registerwidget.h:37
registerWidget::fname
QLabel * fname
text label
Definition: registerwidget.h:20
registerWidget::username_edit
QLineEdit * username_edit
personal info input (username)
Definition: registerwidget.h:25
registerWidget::pppicture
QLabel * pppicture
Picture display.
Definition: registerwidget.h:42
registerWidget::cancel
QPushButton * cancel
Cancel button.
Definition: registerwidget.h:44
registerWidget::gender_text
QLabel * gender_text
text label
Definition: registerwidget.h:34
registerWidget::confirmRegistration
void confirmRegistration()
registerWidget::confirmRegistration
Definition: registerwidget.cpp:224
registerWidget::register_layout
QGridLayout * register_layout
Main layout.
Definition: registerwidget.h:50
registerWidget::passCheck
bool passCheck()
registerWidget::passCheck
Definition: registerwidget.cpp:151
registerWidget::selectPicture
void selectPicture()
registerWidget::selectPicture
Definition: registerwidget.cpp:128
registerWidget::welcome
QLabel * welcome
text label
Definition: registerwidget.h:19
registerWidget::username
QLabel * username
text label
Definition: registerwidget.h:24
registerWidget::checkConditions
void checkConditions()
registerWidget::checkConditions
Definition: registerwidget.cpp:193
registerWidget::passwordconf
QLabel * passwordconf
text label
Definition: registerwidget.h:28
registerWidget::password
QLabel * password
text label
Definition: registerwidget.h:26
registerWidget::lname
QLabel * lname
text label
Definition: registerwidget.h:22
registerWidget::date_text
QLabel * date_text
text label
Definition: registerwidget.h:30
registerWidget::cancelRegistration
void cancelRegistration()
registerWidget::cancelRegistration
Definition: registerwidget.cpp:114
registerWidget::tempfile
QFile * tempfile
Loaded profile picture.
Definition: registerwidget.h:48
registerWidget::pppicture_text
QLabel * pppicture_text
text label
Definition: registerwidget.h:40
registerWidget::confirm
QPushButton * confirm
Confirm button.
Definition: registerwidget.h:45
registerWidget::add_pppicture
QPushButton * add_pppicture
Button to open prompt to add picture.
Definition: registerwidget.h:41
registerWidget::lname_edit
QLineEdit * lname_edit
personal info input (lname)
Definition: registerwidget.h:23