1 #ifndef COINCONTROLDIALOG_H
2 #define COINCONTROLDIALOG_H
4 #include <QAbstractButton>
11 #include <QTreeWidgetItem>
14 class CoinControlDialog;
19 #define ASYMP_UTF8 "\xE2\x89\x88"
21 class CoinControlDialog : public QWidget
28 explicit CoinControlDialog(QWidget *parent = 0);
31 void setModel(WalletModel *model);
33 // static because also called from sendcoinsdialog
34 static void updateLabels(WalletModel*, QWidget*);
35 static QString getPriorityLabel(double);
37 static QList<qint64> payAmounts;
38 static CCoinControl *coinControl;
41 void closeEvent(QCloseEvent* e);
44 Ui::CoinControlDialog *ui;
47 Qt::SortOrder sortOrder;
50 QTreeWidgetItem *contextMenuItem;
51 QAction *copyTransactionHashAction;
52 //QAction *lockAction;
53 //QAction *unlockAction;
55 QString strPad(QString, int, QString);
56 void sortView(int, Qt::SortOrder);
59 void keyPressEvent(QKeyEvent *);
78 void showMenu(const QPoint &);
82 void copyTransactionHash();
85 void clipboardQuantity();
86 void clipboardAmount();
88 void clipboardAfterFee();
89 void clipboardBytes();
90 void clipboardPriority();
91 void clipboardLowOutput();
92 void clipboardChange();
93 void radioTreeMode(bool);
94 void radioListMode(bool);
95 void viewItemChanged(QTreeWidgetItem*, int);
96 void headerSectionClicked(int);
97 void on_buttonBox_accepted();
98 void buttonSelectAllClicked();
99 //void updateLabelLocked();
102 #endif // COINCONTROLDIALOG_H