Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
receivecoinsdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef RECEIVECOINSDIALOG_H
6 #define RECEIVECOINSDIALOG_H
7 
8 #include <QDialog>
9 #include <QHeaderView>
10 #include <QItemSelection>
11 #include <QKeyEvent>
12 #include <QMenu>
13 #include <QPoint>
14 #include <QVariant>
15 
16 #include "guiutil.h"
17 
18 namespace Ui {
19  class ReceiveCoinsDialog;
20 }
21 class OptionsModel;
22 class WalletModel;
23 
24 QT_BEGIN_NAMESPACE
25 class QModelIndex;
26 QT_END_NAMESPACE
27 
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 slots:
47  void clear();
48  void reject();
49  void accept();
50 
51 protected:
52  virtual void keyPressEvent(QKeyEvent *event);
53 
54 private:
58  QMenu *contextMenu;
59  void copyColumnToClipboard(int column);
60  virtual void resizeEvent(QResizeEvent *event);
61 
62 private slots:
66  void on_recentRequestsView_doubleClicked(const QModelIndex &index);
67  void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
68  void updateDisplayUnit();
69  void showMenu(const QPoint &point);
70  void copyLabel();
71  void copyMessage();
72  void copyAmount();
73 };
74 
75 #endif // 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:137
virtual void keyPressEvent(QKeyEvent *event)
virtual void resizeEvent(QResizeEvent *event)
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:20
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:96
void showMenu(const QPoint &point)
ReceiveCoinsDialog(QWidget *parent=0)