Anoncoin  0.9.4
P2P Digital Currency
receivecoinsdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RECEIVECOINSDIALOG_H
7 #define RECEIVECOINSDIALOG_H
8 
9 #include <QDialog>
10 #include <QHeaderView>
11 #include <QItemSelection>
12 #include <QKeyEvent>
13 #include <QMenu>
14 #include <QPoint>
15 #include <QVariant>
16 
17 #include "guiutil.h"
18 
19 namespace Ui {
20  class ReceiveCoinsDialog;
21 }
22 class OptionsModel;
23 class WalletModel;
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(QWidget *parent = 0);
44 
45  void setModel(WalletModel *model);
46 
47 public slots:
48  void clear();
49  void reject();
50  void accept();
51 
52 protected:
53  virtual void keyPressEvent(QKeyEvent *event);
54 
55 private:
59  QMenu *contextMenu;
60  void copyColumnToClipboard(int column);
61  virtual void resizeEvent(QResizeEvent *event);
62 
63 private 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 copyLabel();
72  void copyMessage();
73  void copyAmount();
74 };
75 
76 #endif // RECEIVECOINSDIALOG_H
Dialog for requesting payment of anoncoins.
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:140
virtual void keyPressEvent(QKeyEvent *event)
virtual void resizeEvent(QResizeEvent *event)
Interface from Qt to configuration data structure for Anoncoin client.
Definition: optionsmodel.h:27
Interface to Anoncoin wallet from Qt view code.
Definition: walletmodel.h:97
void showMenu(const QPoint &point)
ReceiveCoinsDialog(QWidget *parent=0)