Dash Core  0.12.2.1
P2P Digital Currency
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 "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:
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
Ui::ReceiveCoinsDialog * ui
ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent=0)
void setModel(WalletModel *model)
virtual void resizeEvent(QResizeEvent *event)
const PlatformStyle * platformStyle
void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
void showMenu(const QPoint &point)
void copyColumnToClipboard(int column)
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
void on_recentRequestsView_doubleClicked(const QModelIndex &index)
virtual void keyPressEvent(QKeyEvent *event)