1 #ifndef COINCONTROLDIALOG_H
2 #define COINCONTROLDIALOG_H
4 #include <QAbstractButton>
11 #include <QTreeWidgetItem>
14 class CoinControlDialog;
19 class CoinControlDialog : public QWidget
24 explicit CoinControlDialog(QWidget *parent = 0);
27 void setModel(WalletModel *model);
29 // static because also called from sendcoinsdialog
30 static void updateLabels(WalletModel*, QWidget*);
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);
52 void keyPressEvent(QKeyEvent *);
71 void showMenu(const QPoint &);
75 void copyTransactionHash();
78 void clipboardQuantity();
79 void clipboardAmount();
81 void clipboardAfterFee();
82 void clipboardBytes();
83 void clipboardPriority();
84 void clipboardLowOutput();
85 void clipboardChange();
86 void radioTreeMode(bool);
87 void radioListMode(bool);
88 void viewItemChanged(QTreeWidgetItem*, int);
89 void headerSectionClicked(int);
90 void on_buttonBox_accepted();
91 void buttonSelectAllClicked();
92 //void updateLabelLocked();
95 #endif // COINCONTROLDIALOG_H