1 #ifndef COINCONTROLDIALOG_H
2 #define COINCONTROLDIALOG_H
4 #include <QAbstractButton>
11 #include <QTreeWidgetItem>
14 class CoinControlDialog;
19 class CoinControlDialog : public QWidget
26 explicit CoinControlDialog(QWidget *parent = 0);
29 void setModel(WalletModel *model);
31 // static because also called from sendcoinsdialog
32 static void updateLabels(WalletModel*, QWidget*);
33 static QString getPriorityLabel(double);
35 static QList<qint64> payAmounts;
36 static CCoinControl *coinControl;
39 void closeEvent(QCloseEvent* e);
42 Ui::CoinControlDialog *ui;
45 Qt::SortOrder sortOrder;
48 QTreeWidgetItem *contextMenuItem;
49 QAction *copyTransactionHashAction;
50 //QAction *lockAction;
51 //QAction *unlockAction;
53 QString strPad(QString, int, QString);
54 void sortView(int, Qt::SortOrder);
57 void keyPressEvent(QKeyEvent *);
76 void showMenu(const QPoint &);
80 void copyTransactionHash();
83 void clipboardQuantity();
84 void clipboardAmount();
86 void clipboardAfterFee();
87 void clipboardBytes();
88 void clipboardPriority();
89 void clipboardLowOutput();
90 void clipboardChange();
91 void radioTreeMode(bool);
92 void radioListMode(bool);
93 void viewItemChanged(QTreeWidgetItem*, int);
94 void headerSectionClicked(int);
95 void on_buttonBox_accepted();
96 void buttonSelectAllClicked();
97 //void updateLabelLocked();
100 #endif // COINCONTROLDIALOG_H