-
Notifications
You must be signed in to change notification settings - Fork 402
/
Copy pathdelegationpage.h
75 lines (64 loc) · 2.19 KB
/
delegationpage.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
#ifndef DELEGATIONPAGE_H
#define DELEGATIONPAGE_H
#include <qt/removedelegationpage.h>
#include <qt/adddelegationpage.h>
#include <qt/splitutxopage.h>
#include <QWidget>
#include <QModelIndex>
#include <QAbstractItemModel>
class WalletModel;
class ClientModel;
class DelegationListWidget;
class PlatformStyle;
class QMenu;
namespace Ui {
class DelegationPage;
}
class DelegationPage : public QWidget
{
Q_OBJECT
public:
explicit DelegationPage(const PlatformStyle *platformStyle, QWidget *parent = 0);
~DelegationPage();
void setModel(WalletModel *_model);
void setClientModel(ClientModel *clientModel);
Q_SIGNALS:
// Fired when a message should be reported to the user
void message(const QString &title, const QString &message, unsigned int style);
public Q_SLOTS:
void on_goToSplitCoinsPage();
void on_goToRemoveDelegationPage();
void on_goToAddDelegationPage();
void on_currentDelegationChanged(QModelIndex index);
void on_dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles = QVector<int>());
void on_currentChanged(QModelIndex current, QModelIndex previous);
void on_rowsInserted(QModelIndex index, int first, int last);
void contextualMenu(const QPoint &);
void copyDelegateAddress();
void copyDelegateWeight();
void copyStekerFee();
void copyStakerName();
void copyStakerAddress();
void editStakerName();
void removeDelegation();
void on_removeDelegation(const QModelIndex& index);
void on_addDelegation();
void on_splitCoins(const QModelIndex& index);
void on_restoreDelegations();
private:
Ui::DelegationPage *ui;
RemoveDelegationPage* m_removeDelegationPage;
AddDelegationPage* m_addDelegationPage;
SplitUTXOPage* m_splitUtxoPage;
WalletModel* m_model;
ClientModel* m_clientModel;
QAction *m_sendAction;
QAction *m_removeAction;
QAction *m_addDelegationAction;
QString m_selectedDelegationHash;
const PlatformStyle *m_platformStyle;
QMenu *contextMenu;
QModelIndex indexMenu;
DelegationListWidget* m_delegationList;
};
#endif // DELEGATIONPAGE_H