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);
68 void showMenu(const QPoint &);
72 void copyTransactionHash();
75 void clipboardQuantity();
76 void clipboardAmount();
78 void clipboardAfterFee();
79 void clipboardBytes();
80 void clipboardPriority();
81 void clipboardLowOutput();
82 void clipboardChange();
83 void radioTreeMode(bool);
84 void radioListMode(bool);
85 void viewItemChanged(QTreeWidgetItem*, int);
86 void headerSectionClicked(int);
87 void buttonBoxClicked(QAbstractButton*);
88 void buttonSelectAllClicked();
89 //void updateLabelLocked();
92 #endif // COINCONTROLDIALOG_H