Anoncoin  0.9.4
P2P Digital Currency
Signals | Public Member Functions | Protected Member Functions | Properties | Private Slots | Private Member Functions | Private Attributes | List of all members
AnoncoinAmountField Class Reference

Widget for entering anoncoin amounts. More...

#include <anoncoinamountfield.h>

Inheritance diagram for AnoncoinAmountField:
[legend]
Collaboration diagram for AnoncoinAmountField:
[legend]

Signals

void textChanged ()
 

Public Member Functions

 AnoncoinAmountField (QWidget *parent=0)
 
qint64 value (bool *valid=0) const
 
void setValue (qint64 value)
 
void setSingleStep (qint64 step)
 Set single step in satoshis. More...
 
void setReadOnly (bool fReadOnly)
 Make read-only. More...
 
void setValid (bool valid)
 Mark current value as invalid in UI. More...
 
bool validate ()
 Perform input validation, mark field as invalid if entered value is not valid. More...
 
void setDisplayUnit (int unit)
 Change unit used to display amount. More...
 
void clear ()
 Make field empty and ready for new input. More...
 
QWidget * setupTabChain (QWidget *prev)
 Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907), in these cases we have to set it up manually. More...
 

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)
 Intercept focus-in event and ',' key presses. More...
 

Properties

qint64 value
 

Private Slots

void unitChanged (int idx)
 

Private Member Functions

void setText (const QString &text)
 
QString text () const
 

Private Attributes

QDoubleSpinBox * amount
 
QValueComboBoxunit
 
int currentUnit
 
qint64 nSingleStep
 

Detailed Description

Widget for entering anoncoin amounts.

Definition at line 18 of file anoncoinamountfield.h.

Constructor & Destructor Documentation

AnoncoinAmountField::AnoncoinAmountField ( QWidget *  parent = 0)
explicit

Definition at line 18 of file anoncoinamountfield.cpp.

Here is the call graph for this function:

Member Function Documentation

void AnoncoinAmountField::clear ( )

Make field empty and ready for new input.

Definition at line 59 of file anoncoinamountfield.cpp.

Here is the caller graph for this function:

bool AnoncoinAmountField::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Intercept focus-in event and ',' key presses.

Definition at line 96 of file anoncoinamountfield.cpp.

Here is the call graph for this function:

void AnoncoinAmountField::setDisplayUnit ( int  unit)

Change unit used to display amount.

Definition at line 178 of file anoncoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinAmountField::setReadOnly ( bool  fReadOnly)

Make read-only.

Definition at line 140 of file anoncoinamountfield.cpp.

Here is the caller graph for this function:

void AnoncoinAmountField::setSingleStep ( qint64  step)

Set single step in satoshis.

Definition at line 183 of file anoncoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinAmountField::setText ( const QString &  text)
private

Definition at line 51 of file anoncoinamountfield.cpp.

Here is the caller graph for this function:

QWidget * AnoncoinAmountField::setupTabChain ( QWidget *  prev)

Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907), in these cases we have to set it up manually.

Definition at line 117 of file anoncoinamountfield.cpp.

Here is the caller graph for this function:

void AnoncoinAmountField::setValid ( bool  valid)

Mark current value as invalid in UI.

Definition at line 80 of file anoncoinamountfield.cpp.

Here is the caller graph for this function:

void AnoncoinAmountField::setValue ( qint64  value)

Definition at line 135 of file anoncoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString AnoncoinAmountField::text ( ) const
private

Definition at line 88 of file anoncoinamountfield.cpp.

Here is the caller graph for this function:

void AnoncoinAmountField::textChanged ( )
signal

Definition at line 166 of file moc_anoncoinamountfield.cpp.

Here is the caller graph for this function:

void AnoncoinAmountField::unitChanged ( int  idx)
privateslot

Definition at line 146 of file anoncoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool AnoncoinAmountField::validate ( )

Perform input validation, mark field as invalid if entered value is not valid.

Definition at line 65 of file anoncoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

qint64 AnoncoinAmountField::value ( bool *  valid = 0) const

Definition at line 124 of file anoncoinamountfield.cpp.

Here is the call graph for this function:

Member Data Documentation

QDoubleSpinBox* AnoncoinAmountField::amount
private

Definition at line 60 of file anoncoinamountfield.h.

int AnoncoinAmountField::currentUnit
private

Definition at line 62 of file anoncoinamountfield.h.

qint64 AnoncoinAmountField::nSingleStep
private

Definition at line 63 of file anoncoinamountfield.h.

QValueComboBox* AnoncoinAmountField::unit
private

Definition at line 61 of file anoncoinamountfield.h.

Property Documentation

qint64 AnoncoinAmountField::value
readwrite

Definition at line 22 of file anoncoinamountfield.h.


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