-
Notifications
You must be signed in to change notification settings - Fork 4
/
zsvrcontroldialog.h
65 lines (50 loc) · 1.6 KB
/
zsvrcontroldialog.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
// Copyright (c) 2017-2020 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ZSVRCONTROLDIALOG_H
#define ZSVRCONTROLDIALOG_H
#include <QDialog>
#include <QTreeWidgetItem>
#include "zsvr/zerocoin.h"
class CZerocoinMint;
class WalletModel;
namespace Ui {
class ZSvrControlDialog;
}
class CZSvrControlWidgetItem : public QTreeWidgetItem
{
public:
explicit CZSvrControlWidgetItem(QTreeWidget *parent, int type = Type) : QTreeWidgetItem(parent, type) {}
explicit CZSvrControlWidgetItem(int type = Type) : QTreeWidgetItem(type) {}
explicit CZSvrControlWidgetItem(QTreeWidgetItem *parent, int type = Type) : QTreeWidgetItem(parent, type) {}
bool operator<(const QTreeWidgetItem &other) const;
};
class ZSvrControlDialog : public QDialog
{
Q_OBJECT
public:
explicit ZSvrControlDialog(QWidget *parent);
~ZSvrControlDialog();
void setModel(WalletModel* model);
static std::set<std::string> setSelectedMints;
static std::set<CMintMeta> setMints;
static std::vector<CMintMeta> GetSelectedMints();
private:
Ui::ZSvrControlDialog *ui;
WalletModel* model;
void updateList();
void updateLabels();
enum {
COLUMN_CHECKBOX,
COLUMN_DENOMINATION,
COLUMN_PUBCOIN,
COLUMN_VERSION,
COLUMN_CONFIRMATIONS,
COLUMN_ISSPENDABLE
};
friend class CZSvrControlWidgetItem;
private Q_SLOTS:
void updateSelection(QTreeWidgetItem* item, int column);
void ButtonAllClicked();
};
#endif // ZPIVCONTROLDIALOG_H