-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainpage.h
94 lines (62 loc) · 1.86 KB
/
mainpage.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
#ifndef MAINPAGE_H
#define MAINPAGE_H
#include <QWidget>
#include <QMap>
namespace Ui {
class MainPage;
}
#define MODULE_MAIN_PAGE "MAIN_PAGE"
class AccountDetailWidget;
class MainPage : public QWidget
{
Q_OBJECT
public:
explicit MainPage(QWidget *parent = 0);
~MainPage();
void updateAccountList();
void retranslator(QString language);
void getAssets();
public slots:
void refresh();
signals:
void openAccountPage(QString);
void showShadowWidget();
void hideShadowWidget();
void showApplyDelegatePage(QString);
void refreshAccountInfo();
void showTransferPage(QString);
void newAccount(QString);
private slots:
void importAccount();
void addAccount();
void on_addAccountBtn_clicked();
void on_accountTableWidget_cellClicked(int row, int column);
void on_accountTableWidget_cellEntered(int row, int column);
void jsonDataUpdated(QString id);
void showExportDialog(QString name);
void stopRefresh();
void startRefresh();
void withdrawSalary(QString name, QString salary);
void renameAccount(QString name);
void deleteAccount(QString name);
// void showDetailWidget(QString name);
// void hideDetailWidget();
void on_scanBtn_clicked();
void on_assetComboBox_currentIndexChanged(int index);
private:
Ui::MainPage *ui;
int previousColorRow;
bool hasDelegateOrNot;
bool refreshOrNot;
AccountDetailWidget* detailWidget;
int currentAccountIndex;
QMovie* gif;
bool assetUpdating;
// bool eventFilter(QObject *watched, QEvent *e);
// void paintOnScrollarea(QWidget *w);
void paintEvent(QPaintEvent*);
void updateTotalBalance();
void updatePending();
bool eventFilter(QObject *watched, QEvent *e);
};
#endif // MAINPAGE_H