Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
receivecoinsdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2018 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 PlatformStyle;
19 class WalletModel;
20 
21 namespace Ui {
22  class ReceiveCoinsDialog;
23 }
24 
25 QT_BEGIN_NAMESPACE
26 class QModelIndex;
27 QT_END_NAMESPACE
28 
30 class ReceiveCoinsDialog : public QDialog
31 {
32  Q_OBJECT
33 
34 public:
35  enum ColumnWidths {
40  };
41 
42  explicit ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
44 
45  void setModel(WalletModel *model);
46 
47 public Q_SLOTS:
48  void clear();
49  void reject() override;
50  void accept() override;
51 
52 private:
53  Ui::ReceiveCoinsDialog *ui;
56  QMenu *contextMenu;
58 
59  QModelIndex selectedRow();
60  void copyColumnToClipboard(int column);
61  virtual void resizeEvent(QResizeEvent *event) override;
62 
63 private Q_SLOTS:
67  void on_recentRequestsView_doubleClicked(const QModelIndex &index);
68  void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
69  void updateDisplayUnit();
70  void showMenu(const QPoint &point);
71  void copyURI();
72  void copyLabel();
73  void copyMessage();
74  void copyAmount();
75 };
76 
77 #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)
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:189
virtual void resizeEvent(QResizeEvent *event) override
ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent=nullptr)
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:51
const PlatformStyle * platformStyle
void showMenu(const QPoint &point)