-
Notifications
You must be signed in to change notification settings - Fork 0
/
TDBTrigrammeCreationDialog.h
80 lines (61 loc) · 1.69 KB
/
TDBTrigrammeCreationDialog.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
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
#ifndef TDBBATCHFILEDIALOG_H
#define TDBBATCHFILEDIALOG_H
#include <iostream>
#include <QLabel>
#include <QPushButton>
#include <QGridLayout>
#include <QLineEdit>
#include <QDoubleValidator>
#include <QComboBox>
#include <QFileDialog>
#include <QMessageBox>
#include <QSqlQuery>
#include <QSqlRecord>
#include <QDialog>
#include <QValidator>
#include "TDBApplication.h"
#include "TDBTrigrammeValidator.h"
#include "TDBAccount.h"
class TDBTrigrammeCreationDialog : public QDialog
{
Q_OBJECT
private:
QGridLayout* layout;
QLabel* trig_status_label;
QLabel* trigramme_label;
QLabel* name_label;
QLabel* first_name_label;
QLabel* nickname_label;
QLabel* balance_label;
QLabel* category_label;
QLabel* promo_label;
QLabel* mail_label;
QLabel* picture_label;
QLabel* casert_label;
QLineEdit* trigramme_edit;
QLineEdit* name_edit;
QLineEdit* first_name_edit;
QLineEdit* nickname_edit;
QLineEdit* balance_edit;
QComboBox* category_combo;
QLineEdit* promo_edit;
QLineEdit* mail_edit;
QLineEdit* picture_edit;
QLineEdit* casert_edit;
QValidator* valid;
QPushButton* ok_button;
QPushButton* cancel_button;
QPushButton* photo_button;
TDBAccount* account;
public:
TDBTrigrammeCreationDialog(QWidget* parent);
~TDBTrigrammeCreationDialog();
TDBAccount* get_account() {return account;}
int money();
private slots:
void check_trig(const QString& trig);
void ok_pressed();
void cancel_pressed();
void open_photo();
};
#endif