1 #ifndef COINCONTROLDIALOG_H
2 #define COINCONTROLDIALOG_H
4 #include <QAbstractButton>
11 #include <QTreeWidgetItem>
14 class CoinControlDialog;
19 class CoinControlDialog : public QDialog
24 explicit CoinControlDialog(QWidget *parent = 0);
27 void setModel(WalletModel *model);
29 // static because also called from sendcoinsdialog
30 static void updateLabels(WalletModel*, QDialog*);
31 static QString getPriorityLabel(double);
33 static QList<qint64> payAmounts;
34 static CCoinControl *coinControl;
37 Ui::CoinControlDialog *ui;
40 Qt::SortOrder sortOrder;
43 QTreeWidgetItem *contextMenuItem;
44 QAction *copyTransactionHashAction;
45 //QAction *lockAction;
46 //QAction *unlockAction;
48 QString strPad(QString, int, QString);
49 void sortView(int, Qt::SortOrder);
69 void showMenu(const QPoint &);
73 void copyTransactionHash();
76 void clipboardQuantity();
77 void clipboardAmount();
79 void clipboardAfterFee();
80 void clipboardBytes();
81 void clipboardPriority();
82 void clipboardLowOutput();
83 void clipboardChange();
84 void radioTreeMode(bool);
85 void radioListMode(bool);
86 void viewItemChanged(QTreeWidgetItem*, int);
87 void headerSectionClicked(int);
88 void buttonBoxClicked(QAbstractButton*);
89 void buttonSelectAllClicked();
90 //void updateLabelLocked();
93 #endif // COINCONTROLDIALOG_H