forked from ciphrex/mSIGNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccounthistorydialog.h
68 lines (51 loc) · 1.24 KB
/
accounthistorydialog.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
///////////////////////////////////////////////////////////////////////////////
//
// mSIGNA
//
// accounthistorydialog.h
//
// Copyright (c) 2013-2014 Eric Lombrozo
//
// All Rights Reserved.
#pragma once
#include <CoinDB/Vault.h>
class TxModel;
class TxView;
class QAction;
class QMenu;
class QItemSelectionModel;
#include <QDialog>
namespace CoinQ {
namespace Network {
class NetworkSync;
}
}
class AccountHistoryDialog : public QDialog
{
Q_OBJECT
public:
AccountHistoryDialog(CoinDB::Vault* vault, const QString& accountName, CoinQ::Network::NetworkSync* networkSync, QWidget* parent = NULL);
signals:
void txDeleted();
private slots:
void updateCurrentTx(const QModelIndex& current, const QModelIndex& previous);
void signTx();
void sendTx();
void viewRawTx();
void viewTxOnWeb();
void deleteTx();
private:
void createActions();
void createMenus();
TxModel* accountHistoryModel;
TxView* accountHistoryView;
QAction* signTxAction;
QAction* sendTxAction;
QAction* viewRawTxAction;
QAction* viewTxOnWebAction;
QAction* deleteTxAction;
QMenu* menu;
QItemSelectionModel* txSelectionModel;
int currentRow;
CoinQ::Network::NetworkSync* networkSync;
};