Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

receivecoinsdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_RECEIVECOINSDIALOG_H
6 #define BITCOIN_QT_RECEIVECOINSDIALOG_H
7 
8 #include <qt/guiutil.h>
9 
10 #include <QDialog>
11 #include <QHeaderView>
12 #include <QItemSelection>
13 #include <QKeyEvent>
14 #include <QMenu>
15 #include <QPoint>
16 #include <QVariant>
17 
18 class WalletModel;
19 
20 namespace Ui {
21  class ReceiveCoinsDialog;
22 }
23 
24 QT_BEGIN_NAMESPACE
25 class QModelIndex;
26 QT_END_NAMESPACE
27 
29 class ReceiveCoinsDialog : public QDialog
30 {
31  Q_OBJECT
32 
33 public:
34  enum ColumnWidths {
39  };
40 
41  explicit ReceiveCoinsDialog(QWidget* parent = 0);
43 
44  void setModel(WalletModel *model);
45 
46 public Q_SLOTS:
47  void clear();
48  void reject() override;
49  void accept() override;
50 
51 protected:
52  virtual void keyPressEvent(QKeyEvent *event) override;
53 
54 private:
55  Ui::ReceiveCoinsDialog *ui;
58  QMenu *contextMenu;
59 
60  QModelIndex selectedRow();
61  void copyColumnToClipboard(int column);
62  virtual void resizeEvent(QResizeEvent *event) override;
63 
64 private Q_SLOTS:
68  void on_recentRequestsView_doubleClicked(const QModelIndex &index);
69  void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
70  void updateDisplayUnit();
71  void showMenu(const QPoint &point);
72  void copyURI();
73  void copyLabel();
74  void copyMessage();
75  void copyAmount();
76 };
77 
78 #endif // BITCOIN_QT_RECEIVECOINSDIALOG_H
Dialog for requesting payment of bitcoins.
void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
Ui::ReceiveCoinsDialog * ui
void setModel(WalletModel *model)
void copyColumnToClipboard(int column)
virtual void keyPressEvent(QKeyEvent *event) override
void on_recentRequestsView_doubleClicked(const QModelIndex &index)
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:221
virtual void resizeEvent(QResizeEvent *event) override
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:100
void showMenu(const QPoint &point)
ReceiveCoinsDialog(QWidget *parent=0)
Released under the MIT license