-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew_user_window.h
60 lines (49 loc) · 1.17 KB
/
new_user_window.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
#ifndef NEW_USER_WINDOW_H
#define NEW_USER_WINDOW_H
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QImage>
#include <QMessageBox>
#include <QApplication>
#include <QLineEdit>
#include <QLabel>
#include <QWidget>
#include <QString>
#include <map>
#include <string>
#include <QPushButton>
#include <iostream>
#include <QColor>
#include "main_window.h"
class NewUserWindow : public QWidget{
Q_OBJECT
public:
typedef std::map<std::string, User*> usersMap;
NewUserWindow(QWidget*, std::string, int, MyDataStore*);
//accessors
QString ageInput(){return age_lineedit->text();}
QString creditInput(){return credit_lineedit->text();}
QString typeInput(){return type_lineedit->text();}
private slots:
void exit_();
void close_nosave();
private:
//user info
std::string username;
int hashed_password;
MyDataStore* ds;
//layout
QVBoxLayout* outercontainer;
QWidget* parent;
QLabel* salute_label;
QLabel* age_label;
QLineEdit* age_lineedit;
QLabel* credit_label;
QLineEdit* credit_lineedit;
QLabel* type_label;
QLineEdit* type_lineedit;
QHBoxLayout* buttons_layout;
QPushButton* close_nosave_button;
QPushButton* finish_button;
};
#endif