-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialogsearchaccount.h
49 lines (41 loc) · 1.12 KB
/
dialogsearchaccount.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
#ifndef DIALOGSEARCHACCOUNT_H
#define DIALOGSEARCHACCOUNT_H
#include <ElencoConti.h>
#include <Container.h>
#include <QDialog>
namespace Ui {
class DialogSearchAccount;
}
class DialogSearchAccount : public QDialog
{
Q_OBJECT
public:
explicit DialogSearchAccount(QWidget *parent = 0);
~DialogSearchAccount();
/**
* Collega l'ElencoConti alla finestra di ricerca.
* Necessario per poter accedere ai conti per poter
* cercare tra di loro.
*/
void bindElenco(ElencoConti*);
signals:
/**
* Segnale emesso quando alcune informazioni dell'elenco
* sono cambiate, rendendo necessario rieseguire la ricerca.
*/
void infoElencoChanged();
private slots:
void on_btnSearch_clicked();
void on_tblSearchResult_cellDoubleClicked(int row, int column);
void on_btnResetFields_clicked();
void onAccountChanged();
private:
Ui::DialogSearchAccount *ui;
ElencoConti* el;
Container<Container<ElencoConti::ContoPtr>::Iterator> searchResult;
int numResult;
bool populateTable();
void clearTable();
void openConto(int);
};
#endif // DIALOGSEARCHACCOUNT_H