Fabcoin Core  0.16.2
P2P Digital Currency
contractbookpage.h
Go to the documentation of this file.
1 #ifndef CONTRACTBOOKPAGE_H
2 #define CONTRACTBOOKPAGE_H
3 
4 #include <QDialog>
5 
6 class PlatformStyle;
8 
9 namespace Ui {
10 class ContractBookPage;
11 }
12 QT_BEGIN_NAMESPACE
13 class QMenu;
14 class QSortFilterProxyModel;
15 QT_END_NAMESPACE
16 
17 class ContractBookPage : public QDialog
18 {
19  Q_OBJECT
20 
21 public:
22  explicit ContractBookPage(const PlatformStyle *platformStyle, QWidget *parent = 0);
24 
25  enum ColumnWidths {
26  LABEL_COLUMN_WIDTH = 180,
27  ADDRESS_COLUMN_WIDTH = 380,
28  };
29 
30  void setModel(ContractTableModel *model);
31  const QString &getAddressValue() const { return addressValue; }
32  const QString &getABIValue() const { return ABIValue; }
33 
34 
35 public Q_SLOTS:
36  void done(int retval);
37 
38 private:
41  QString addressValue;
42  QString ABIValue;
43  QSortFilterProxyModel *proxyModel;
44  QMenu *contextMenu;
46 
47 private Q_SLOTS:
49  void on_deleteContractInfo_clicked();
51  void on_newContractInfo_clicked();
53  void on_copyAddress_clicked();
55  void onCopyNameAction();
57  void onCopyABIAction();
59  void onEditAction();
61  void on_exportButton_clicked();
62 
64  void selectionChanged();
66  void contextualMenu(const QPoint &point);
68  void selectNewContractInfo(const QModelIndex &parent, int begin, int /*end*/);
69 
70 };
71 
72 #endif // CONTRACTBOOKPAGE_H
const QString & getAddressValue() const
const QString & getABIValue() const
ContractTableModel * model
Qt model of the contract book in the core.
QSortFilterProxyModel * proxyModel
Ui::ContractBookPage * ui
QString newContractInfoToSelect