-
Notifications
You must be signed in to change notification settings - Fork 0
/
TDBTransfertDialog.h
54 lines (40 loc) · 1.22 KB
/
TDBTransfertDialog.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
#ifndef TDBTRANSFERTDIALOG_H
#define TDBTRANSFERTDIALOG_H
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QDoubleValidator>
#include <QDialog>
#include <QGridLayout>
#include <QValidator>
#include "TDBApplication.h"
#include "TDBTrigrammeDialog.h"
class TDBTransfertDialog : public QDialog
{
Q_OBJECT
private:
QGridLayout* layout;
QLabel* trigramme1_label;
QLabel* trigramme2_label;
QLabel* money_label;
QLabel* reason_label;
QLineEdit* trigramme1_edit;
QLineEdit* trigramme2_edit;
QLineEdit* money_edit;
QLineEdit* reason_edit;
QValidator* valid;
QValidator* t_valid;
QPushButton* ok_button;
QPushButton* cancel_button;
public:
TDBTransfertDialog(QWidget* parent, QString title, QString trigramme1 = QString());
~TDBTransfertDialog();
int money() {return money_edit->text().toDouble()*100+0.5;}
QString reason() {return reason_edit->text();}
QString trigramme1() {return trigramme1_edit->text();}
QString trigramme2() {return trigramme2_edit->text();}
public slots:
void ok_pressed();
void cancel_pressed();
};
#endif