-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchdialog.cpp
executable file
·99 lines (81 loc) · 1.92 KB
/
searchdialog.cpp
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
#include "searchdialog.h"
#include "ui_searchdialog.h"
SearchDialog::SearchDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SearchDialog)
{
ui->setupUi(this);
}
SearchDialog::~SearchDialog()
{
delete ui;
}
QString SearchDialog::getNome() const
{
return ui->Nome_search_line->text().toUpper().trimmed();
}
QString SearchDialog::getCognome() const
{
return ui->Cognome_search_line->text().toUpper().trimmed();
}
QString SearchDialog::getComune() const
{
return ui->Comune_search_line->text().toUpper().trimmed();
}
QString SearchDialog::getCap() const
{
return ui->Cap_search_line->text().toUpper().trimmed();
}
QString SearchDialog::getProvincia() const
{
return ui->Provincia_search_line->text().toUpper().trimmed();
}
QString SearchDialog::getProfessione() const
{
return ui->Professione_search_line->text().toUpper().trimmed();
}
QString SearchDialog::getBrevetto()
{
return ui->Brevetto_search_box->currentText();
}
bool SearchDialog::getAllLicenses() const
{
return ui->all_licenses_radio->isChecked();
}
bool SearchDialog::getIsValid() const
{
return ui->is_valid_radio->isChecked();
}
bool SearchDialog::getIsExpired() const
{
return ui->is_expired_radio->isChecked();
}
bool SearchDialog::getShowAll() const
{
return ui->show_all_radio->isChecked();
}
void SearchDialog::on_Visualizza_button_clicked()
{
emit ShowPeople_SIGNAL(false);
}
void SearchDialog::on_Visualizza_in_scadenza_button_clicked()
{
emit ShowPeopleAboutToExpire_SIGNAL(true);
}
void SearchDialog::on_Cancella_button_2_clicked()
{
clearSearchPersonForm();
}
void SearchDialog::clearSearchPersonForm()
{
ui->Nome_search_line->clear();
ui->Cognome_search_line->clear();
ui->Comune_search_line->clear();
ui->Cap_search_line->clear();
ui->Provincia_search_line->clear();
ui->Professione_search_line->clear();
}
void SearchDialog::on_Chiudi_button_clicked()
{
close();
}