Banking_System_Client  1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
CreateUserDialog.h
Go to the documentation of this file.
1 
7 #ifndef CREATEUSERDIALOG_H
8 #define CREATEUSERDIALOG_H
9 
10 #include "BaseDialog.h"
11 #include "ValidationStrategy.h"
12 #include <QComboBox>
13 
20 {
21  Q_OBJECT
22 
23 public:
28  CreateUserDialog(QWidget* parent = nullptr);
29 
34  QVariantMap getData() const override;
35 
36 private slots:
40  void onRoleChanged();
41 
42 private:
46  void setupUI() override;
47 
51  void connectSignals() override;
52 
53  QtMaterialTextField* firstNameEdit;
54  QtMaterialTextField* lastNameEdit;
55  QtMaterialTextField* emailEdit;
56  QtMaterialTextField* passwordEdit;
57  QtMaterialTextField* confirmPasswordEdit;
58  QtMaterialTextField* initialBalanceEdit;
59 
60  QComboBox* roleComboBox;
61 };
62 
63 #endif // CREATEUSERDIALOG_H
Header file for the BaseDialog class.
Header file for validation strategies.
The BaseDialog class provides a base class for creating dialogs with validation support.
Definition: BaseDialog.h:26
The CreateUserDialog class provides a dialog for creating new users with input validation.
Definition: CreateUserDialog.h:20
CreateUserDialog(QWidget *parent=nullptr)
Constructor for CreateUserDialog.
Definition: CreateUserDialog.cpp:6
QVariantMap getData() const override
Retrieves the data entered in the dialog.
Definition: CreateUserDialog.cpp:12