Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Slots | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
ReceiveCoinsDialog Class Reference

Dialog for requesting payment of bitcoins. More...

#include <receivecoinsdialog.h>

+ Inheritance diagram for ReceiveCoinsDialog:
+ Collaboration diagram for ReceiveCoinsDialog:

Public Types

enum  ColumnWidths {
  DATE_COLUMN_WIDTH = 130,
  LABEL_COLUMN_WIDTH = 120,
  AMOUNT_MINIMUM_COLUMN_WIDTH = 160,
  MINIMUM_COLUMN_WIDTH = 130
}
 

Public Slots

void clear ()
 
void reject ()
 
void accept ()
 

Public Member Functions

 ReceiveCoinsDialog (QWidget *parent=0)
 
 ~ReceiveCoinsDialog ()
 
void setModel (WalletModel *model)
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 

Private Slots

void on_receiveButton_clicked ()
 
void on_showRequestButton_clicked ()
 
void on_removeRequestButton_clicked ()
 
void on_recentRequestsView_doubleClicked (const QModelIndex &index)
 
void recentRequestsView_selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
void updateDisplayUnit ()
 
void showMenu (const QPoint &point)
 
void copyLabel ()
 
void copyMessage ()
 
void copyAmount ()
 

Private Member Functions

void copyColumnToClipboard (int column)
 
virtual void resizeEvent (QResizeEvent *event)
 

Private Attributes

Ui::ReceiveCoinsDialogui
 
GUIUtil::TableViewLastColumnResizingFixercolumnResizingFixer
 
WalletModelmodel
 
QMenu * contextMenu
 

Detailed Description

Dialog for requesting payment of bitcoins.

Definition at line 29 of file receivecoinsdialog.h.

Member Enumeration Documentation

Enumerator
DATE_COLUMN_WIDTH 
LABEL_COLUMN_WIDTH 
AMOUNT_MINIMUM_COLUMN_WIDTH 
MINIMUM_COLUMN_WIDTH 

Definition at line 34 of file receivecoinsdialog.h.

Constructor & Destructor Documentation

ReceiveCoinsDialog::ReceiveCoinsDialog ( QWidget parent = 0)
explicit

Definition at line 24 of file receivecoinsdialog.cpp.

References clear(), Ui_ReceiveCoinsDialog::clearButton, contextMenu, copyAmount(), copyLabel(), copyMessage(), Ui_ReceiveCoinsDialog::receiveButton, Ui_ReceiveCoinsDialog::recentRequestsView, Ui_ReceiveCoinsDialog::removeRequestButton, Ui_ReceiveCoinsDialog::setupUi(), showMenu(), Ui_ReceiveCoinsDialog::showRequestButton, and ui.

+ Here is the call graph for this function:

ReceiveCoinsDialog::~ReceiveCoinsDialog ( )

Definition at line 87 of file receivecoinsdialog.cpp.

References ui.

Member Function Documentation

void ReceiveCoinsDialog::accept ( )
slot

Definition at line 106 of file receivecoinsdialog.cpp.

References clear().

+ Here is the call graph for this function:

void ReceiveCoinsDialog::clear ( )
slot

Definition at line 92 of file receivecoinsdialog.cpp.

References BitcoinAmountField::clear(), Ui_ReceiveCoinsDialog::reqAmount, Ui_ReceiveCoinsDialog::reqLabel, Ui_ReceiveCoinsDialog::reqMessage, Ui_ReceiveCoinsDialog::reuseAddress, ui, and updateDisplayUnit().

Referenced by accept(), on_receiveButton_clicked(), ReceiveCoinsDialog(), and reject().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::copyAmount ( )
privateslot

Definition at line 261 of file receivecoinsdialog.cpp.

References RecentRequestsTableModel::Amount, and copyColumnToClipboard().

Referenced by ReceiveCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::copyColumnToClipboard ( int  column)
private

Definition at line 225 of file receivecoinsdialog.cpp.

References RecentRequestsTableModel::data(), WalletModel::getRecentRequestsTableModel(), model, Ui_ReceiveCoinsDialog::recentRequestsView, GUIUtil::setClipboard(), and ui.

Referenced by copyAmount(), copyLabel(), and copyMessage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::copyLabel ( )
privateslot

Definition at line 249 of file receivecoinsdialog.cpp.

References copyColumnToClipboard(), and RecentRequestsTableModel::Label.

Referenced by ReceiveCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::copyMessage ( )
privateslot

Definition at line 255 of file receivecoinsdialog.cpp.

References copyColumnToClipboard(), and RecentRequestsTableModel::Message.

Referenced by ReceiveCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 208 of file receivecoinsdialog.cpp.

References on_receiveButton_clicked(), Ui_ReceiveCoinsDialog::reqAmount, Ui_ReceiveCoinsDialog::reqLabel, Ui_ReceiveCoinsDialog::reqMessage, and ui.

+ Here is the call graph for this function:

void ReceiveCoinsDialog::on_receiveButton_clicked ( )
privateslot

Definition at line 119 of file receivecoinsdialog.cpp.

References RecentRequestsTableModel::addNewRequest(), AddressTableModel::addRow(), clear(), AddressBookPage::ForSelection, WalletModel::getAddressTableModel(), WalletModel::getOptionsModel(), WalletModel::getRecentRequestsTableModel(), AddressBookPage::getReturnValue(), AddressTableModel::labelForAddress(), model, AddressTableModel::Receive, AddressBookPage::ReceivingTab, Ui_ReceiveCoinsDialog::reqAmount, Ui_ReceiveCoinsDialog::reqLabel, Ui_ReceiveCoinsDialog::reqMessage, Ui_ReceiveCoinsDialog::reuseAddress, AddressBookPage::setModel(), ui, and BitcoinAmountField::value.

Referenced by keyPressEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::on_recentRequestsView_doubleClicked ( const QModelIndex &  index)
privateslot

Definition at line 158 of file receivecoinsdialog.cpp.

References RecentRequestsTableModel::entry(), WalletModel::getOptionsModel(), WalletModel::getRecentRequestsTableModel(), model, ReceiveRequestDialog::setInfo(), and ReceiveRequestDialog::setModel().

Referenced by on_showRequestButton_clicked().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::on_removeRequestButton_clicked ( )
privateslot

Definition at line 188 of file receivecoinsdialog.cpp.

References WalletModel::getRecentRequestsTableModel(), model, Ui_ReceiveCoinsDialog::recentRequestsView, RecentRequestsTableModel::removeRows(), and ui.

+ Here is the call graph for this function:

void ReceiveCoinsDialog::on_showRequestButton_clicked ( )
privateslot

Definition at line 176 of file receivecoinsdialog.cpp.

References WalletModel::getRecentRequestsTableModel(), model, on_recentRequestsView_doubleClicked(), Ui_ReceiveCoinsDialog::recentRequestsView, and ui.

+ Here is the call graph for this function:

void ReceiveCoinsDialog::recentRequestsView_selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
privateslot

Definition at line 168 of file receivecoinsdialog.cpp.

References Ui_ReceiveCoinsDialog::recentRequestsView, Ui_ReceiveCoinsDialog::removeRequestButton, Ui_ReceiveCoinsDialog::showRequestButton, and ui.

Referenced by setModel().

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::reject ( )
slot

Definition at line 101 of file receivecoinsdialog.cpp.

References clear().

+ Here is the call graph for this function:

void ReceiveCoinsDialog::resizeEvent ( QResizeEvent *  event)
privatevirtual

Definition at line 202 of file receivecoinsdialog.cpp.

References columnResizingFixer, RecentRequestsTableModel::Message, and GUIUtil::TableViewLastColumnResizingFixer::stretchColumnWidth().

+ Here is the call graph for this function:

void ReceiveCoinsDialog::setModel ( WalletModel model)

Definition at line 58 of file receivecoinsdialog.cpp.

References AMOUNT_MINIMUM_COLUMN_WIDTH, columnResizingFixer, RecentRequestsTableModel::Date, DATE_COLUMN_WIDTH, WalletModel::getOptionsModel(), WalletModel::getRecentRequestsTableModel(), RecentRequestsTableModel::Label, LABEL_COLUMN_WIDTH, model, Ui_ReceiveCoinsDialog::recentRequestsView, recentRequestsView_selectionChanged(), RecentRequestsTableModel::sort(), ui, and updateDisplayUnit().

Referenced by WalletView::setWalletModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::showMenu ( const QPoint &  point)
privateslot

Definition at line 238 of file receivecoinsdialog.cpp.

References contextMenu, WalletModel::getRecentRequestsTableModel(), model, Ui_ReceiveCoinsDialog::recentRequestsView, and ui.

Referenced by ReceiveCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ReceiveCoinsDialog::updateDisplayUnit ( )
privateslot

Definition at line 111 of file receivecoinsdialog.cpp.

References OptionsModel::getDisplayUnit(), WalletModel::getOptionsModel(), model, Ui_ReceiveCoinsDialog::reqAmount, BitcoinAmountField::setDisplayUnit(), and ui.

Referenced by clear(), and setModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

GUIUtil::TableViewLastColumnResizingFixer* ReceiveCoinsDialog::columnResizingFixer
private

Definition at line 56 of file receivecoinsdialog.h.

Referenced by resizeEvent(), and setModel().

QMenu* ReceiveCoinsDialog::contextMenu
private

Definition at line 58 of file receivecoinsdialog.h.

Referenced by ReceiveCoinsDialog(), and showMenu().

WalletModel* ReceiveCoinsDialog::model
private
Ui::ReceiveCoinsDialog* ReceiveCoinsDialog::ui
private

The documentation for this class was generated from the following files: