Banking_System_Client  1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
UpdateUserDialog.h
Go to the documentation of this file.
1 
7 #ifndef UPDATEUSERDIALOG_H
8 #define UPDATEUSERDIALOG_H
9 
10 #include "BaseDialog.h"
11 #include <QComboBox>
12 #include <QVariantMap>
13 #include "qtmaterialflatbutton.h"
14 #include "qtmaterialtextfield.h"
15 
22 {
23  Q_OBJECT
24 
25 public:
31  UpdateUserDialog(QVariantMap data, QWidget* parent = nullptr);
32 
37  QVariantMap getData() const override;
38 
39 private slots:
43  void onRoleChanged();
44 
45 private:
49  void setupUI() override;
50 
54  void connectSignals() override;
55 
56  QString role_;
57  QVariantMap data_;
58 
59  QtMaterialTextField* firstNameEdit;
60  QtMaterialTextField* lastNameEdit;
61  QtMaterialTextField* emailEdit;
62  QComboBox* roleComboBox;
63 
64  QLabel* notificationErrorLabel;
65 };
66 
67 #endif // UPDATEUSERDIALOG_H
Header file for the BaseDialog class.
The BaseDialog class provides a base class for creating dialogs with validation support.
Definition: BaseDialog.h:26
The UpdateUserDialog class provides a dialog for updating user information with input validation.
Definition: UpdateUserDialog.h:22
QVariantMap getData() const override
Retrieves the data entered in the dialog.
Definition: UpdateUserDialog.cpp:19
UpdateUserDialog(QVariantMap data, QWidget *parent=nullptr)
Constructor for UpdateUserDialog.
Definition: UpdateUserDialog.cpp:5