Dogecoin Core  1.14.2
P2P Digital Currency
receivecoinsdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 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 "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 OptionsModel;
19 class PlatformStyle;
20 class WalletModel;
21 
22 namespace Ui {
23  class ReceiveCoinsDialog;
24 }
25 
26 QT_BEGIN_NAMESPACE
27 class QModelIndex;
28 QT_END_NAMESPACE
29 
31 class ReceiveCoinsDialog : public QDialog
32 {
33  Q_OBJECT
34 
35 public:
36  enum ColumnWidths {
41  };
42 
43  explicit ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent = 0);
45 
46  void setModel(WalletModel *model);
47 
48 public Q_SLOTS:
49  void clear();
50  void reject();
51  void accept();
52 
53 protected:
54  virtual void keyPressEvent(QKeyEvent *event);
55 
56 private:
57  Ui::ReceiveCoinsDialog *ui;
60  QMenu *contextMenu;
62 
63  QModelIndex selectedRow();
64  void copyColumnToClipboard(int column);
65  virtual void resizeEvent(QResizeEvent *event);
66 
67 private Q_SLOTS:
71  void on_recentRequestsView_doubleClicked(const QModelIndex &index);
72  void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
73  void updateDisplayUnit();
74  void showMenu(const QPoint &point);
75  void copyURI();
76  void copyLabel();
77  void copyMessage();
78  void copyAmount();
79 };
80 
81 #endif // BITCOIN_QT_RECEIVECOINSDIALOG_H
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:149
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:23
Dialog for requesting payment of bitcoins.
Ui::ReceiveCoinsDialog * ui
const PlatformStyle * platformStyle
void on_recentRequestsView_doubleClicked(const QModelIndex &index)
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
void setModel(WalletModel *model)
virtual void resizeEvent(QResizeEvent *event)
void showMenu(const QPoint &point)
virtual void keyPressEvent(QKeyEvent *event)
void copyColumnToClipboard(int column)
ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent=0)
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:99