-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDaplugPassGui.h
More file actions
98 lines (74 loc) · 2.67 KB
/
DaplugPassGui.h
File metadata and controls
98 lines (74 loc) · 2.67 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef DAPLUGPASSGUI_H
#define DAPLUGPASSGUI_H
#include <QtWidgets>
#include <QMainWindow>
class DaplugPassGui : public QMainWindow{
static const int MAIN_VIEW = 0,
CONFIG_VIEW = 1,
RECOV_VIEW = 2,
PASSGEN_VIEW = 3,
AUTH_VIEW = 4,
ERRORS_VIEW = 5,
INFOS_VIEW = 6;
static const int GUI_MIN_WIDTH = 330,
GUI_MIN_HEIGHT = 330;
Q_OBJECT
public:
DaplugPassGui();
~DaplugPassGui();
public slots:
void configure_slot();
void newConfig_slot();
void recovery_slot();
void genPass_slot();
void authentication_slot();
// void redetectDongle_slot();
void displayInfo_slot();
void genPassword_slot();
void about_slot();
private:
//=== GUI ===================================================================================================================
QWidget *main_widget, //Main
*config_widget, //Configuration
*passGen_widget, //Password generation
*auth_widget, //Authentication
*errors_widget, //Error messages
*infos_widget; //Information messages
QVBoxLayout *main_vlayout,
*config_vlayout,
*passGen_vlayout,
*auth_vlayout,
*errors_vlayout,
*infos_vlayout;
QLabel *logo_main_label,
*wait_main_label,
*enterPass_config_label,
*confirmPass_config_label,
*recoveryKey_config_label,
*enterServiceName_passGen_label,
*enterUserId_passGen_label,
*enterPass_auth_label,
*error_errors_label;
QLineEdit *pass_config_lineedit,
*confirmPass_config_lineedit,
*recoveryKey_config_lineedit,
*enterServiceName_passGen_lineedit,
*enterUserId_passGen_lineedit,
*pass_auth_lineedit;
QPushButton *ok_config_button,
*go_passGen_button,
*ok_auth_button,
*ok_errors_button,
*ok_infos_button;
QCheckBox *computerLogin_passGen_checkbox;
QTextEdit *info_infos_textedit;
QMovie *wait_main_movie;
//=== DATA ==================================================================================================================
QString authPass;
bool dongleSelected;
void showView(int view);
void showAWait(QMovie *movie, QLabel *label, QString imagePath, bool wait);
void waitForConfig(bool wait);
void startDaplugPass();
};
#endif // DAPLUGPASSGUI_H