Bank System
withdrawdialog.h
Go to the documentation of this file.
1#ifndef WITHDRAWDIALOG_H
2#define WITHDRAWDIALOG_H
3
4#include <QDialog>
5#include <QDebug>
6#include <QMessageBox>
7#include "date.h"
8#include "config.h"
9
10
11
12namespace Ui {
13class WithdrawDialog;
14}
15
16class WithdrawDialog : public QDialog
17{
18 Q_OBJECT
19
20public:
21 double amount=0;
22 int year=-1;
23 int month=-1;
24 int day=-1;
25 string desc;
26
27 explicit WithdrawDialog(QWidget *parent = nullptr);
29
30
31
32 //set Amount
33 void setAmount();
34
35 //set description
36 void setDesc();
37
38 // input verify
39 bool verifyInput();
40
41 // set Date
42 void setDate(Date m_date);
43
44private slots:
45
46 void on_year_input_textChanged(const QString &arg1);
47
48 void on_month_input_textChanged(const QString &arg1);
49
50 void on_day_input_textChanged(const QString &arg1);
51
52 void on_amount_input_textChanged(const QString &arg1);
53
54 void on_desc_input_textChanged(const QString &arg1);
55
57
58private:
59 Ui::WithdrawDialog *ui;
60};
61
62#endif // WITHDRAWDIALOG_H
Definition: date.h:18
Definition: withdrawdialog.h:17
~WithdrawDialog()
Definition: withdrawdialog.cpp:15
double amount
Definition: withdrawdialog.h:21
int year
Definition: withdrawdialog.h:22
string desc
Definition: withdrawdialog.h:25
int month
Definition: withdrawdialog.h:23
WithdrawDialog(QWidget *parent=nullptr)
Definition: withdrawdialog.cpp:7
Ui::WithdrawDialog * ui
Definition: withdrawdialog.h:59
void setDate(Date m_date)
Definition: withdrawdialog.cpp:20
void on_desc_input_textChanged(const QString &arg1)
Definition: withdrawdialog.cpp:94
bool verifyInput()
Definition: withdrawdialog.cpp:37
int day
Definition: withdrawdialog.h:24
void on_amount_input_textChanged(const QString &arg1)
Definition: withdrawdialog.cpp:86
void on_buttonBox_accepted()
Definition: withdrawdialog.cpp:101
void on_month_input_textChanged(const QString &arg1)
Definition: withdrawdialog.cpp:67
void on_day_input_textChanged(const QString &arg1)
Definition: withdrawdialog.cpp:79
void on_year_input_textChanged(const QString &arg1)
Definition: withdrawdialog.cpp:60
Definition: createcreaccountdialog.h:7