/
infoophaalpunt.h
115 lines (97 loc) · 3 KB
/
infoophaalpunt.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#ifndef INFOOPHAALPUNT_H
#define INFOOPHAALPUNT_H
#include <QWidget>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QSettings>
#include <QLabel>
#include <QLineEdit>
#include <QDateEdit>
#include <QCheckBox>
#include <QComboBox>
#include <QTextEdit>
#include <QSqlRelationalTableModel>
#include "ophaalhistoriekdialog.h"
extern QSettings settings;
class InfoOphaalpunt : public QWidget
{
Q_OBJECT
public:
explicit InfoOphaalpunt(QWidget *parent = 0);
~InfoOphaalpunt();
void showOphaalpunt(int ophaalpunt_id);
void createNewOphaalpunt();
void showAanmeldingAndHistoriekButton(bool show_button);
private:
int codeIndex;
QDialogButtonBox *buttonBox;
QPushButton *resetButton;
int id;
QLabel *ophaalpuntLabel;
QLineEdit *ophaalpuntEdit;
//QLabel *kurkLabel;
QCheckBox *kurkCheckBox;
//QLabel *parafineLabel;
QCheckBox *parafineCheckBox;
QLabel *codeLabel;
QComboBox *codeComboBox; // soort ophaalpunt
QLabel *code_intercommunaleLabel;
QComboBox *code_intercommunaleComboBox; // indien code = intercommunale => welke intercommunale?
QLabel *straatLabel;
QLineEdit *straatEdit;
QLabel *nrLabel;
QLineEdit *nrEdit;
QLabel *busLabel;
QLineEdit *busEdit;
QLabel *postcodeLabel;
QLineEdit *postcodeEdit;
QLabel *plaatsLabel;
QLineEdit *plaatsEdit;
QLabel *landLabel;
QComboBox *landComboBox;
QLabel *openingsurenLabel;
QTextEdit *openingsurenEdit;
QLabel *contactpersoonLabel;
QLineEdit *contactpersoonEdit;
//maak hier een lijst van met toe te voegen en te verwijderen telefoonnrs
QLabel *telefoonnummer1Label;
QLineEdit *telefoonnummer1Edit;
QLabel *telefoonnummer2Label;
QLineEdit *telefoonnummer2Edit;
//maak hier een lijst van met toe te voegen en te verwijderen emails
QLabel *email1Label;
QLineEdit *email1Edit;
QLabel *email2Label;
QLineEdit *email2Edit;
QLabel *taalvoorkeurLabel;
QComboBox *taalvoorkeurComboBox;
QLabel *preferred_contactLabel;
QComboBox *preferred_contactComboBox;
//QLabel *attest_nodigLabel;
QCheckBox *attest_nodigCheckBox;
QLabel *frequentie_attestLabel;
QComboBox *frequentie_attestComboBox;
QLabel *extra_informatieLabel;
QTextEdit *extra_informatieEdit;
QPushButton *aanmeldingButton, *showHistoriekButton;
QDateEdit *lastContactDateEdit;
QDateEdit *contactAgainOnEdit;
QDateEdit *lastOphalingEdit;
QDateEdit *forecastNewOphalingEdit;
QCheckBox *everContactedBeforeCheckBox;
OphaalHistoriekDialog *ophaalHistoriekDialog;
int getCountryIndexFromQuery(QString country);
private slots:
void accept();
void reject();
void reset();
void toggleIntercommunale(int);
void toggleFrequentie(int);
void nieuweAanmeldingButtonPressed();
void showHistoriekButtonPressed();
void everContactedBeforeCheckBoxToggled(bool);
signals:
void infoChanged();
void nieuweAanmelding(int ophaalpunt_id);
};
#endif // INFOOPHAALPUNT_H