Bitcoin Core  0.15.99
P2P Digital Currency
Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
AmountSpinBox Class Reference

QSpinBox that uses fixed-point numbers internally and uses our own formatting/parsing functions. More...

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

Signals

void valueChanged ()
 

Public Member Functions

 AmountSpinBox (QWidget *parent)
 
QValidator::State validate (QString &text, int &pos) const
 
void fixup (QString &input) const
 
CAmount value (bool *valid_out=0) const
 
void setValue (const CAmount &value)
 
void stepBy (int steps)
 
void setDisplayUnit (int unit)
 
void setSingleStep (const CAmount &step)
 
QSize minimumSizeHint () const
 

Protected Member Functions

bool event (QEvent *event)
 
StepEnabled stepEnabled () const
 

Private Member Functions

CAmount parse (const QString &text, bool *valid_out=0) const
 Parse a string into a number of base monetary units and return validity. More...
 

Private Attributes

int currentUnit
 
CAmount singleStep
 
QSize cachedMinimumSizeHint
 

Detailed Description

QSpinBox that uses fixed-point numbers internally and uses our own formatting/parsing functions.

Definition at line 20 of file bitcoinamountfield.cpp.

Constructor & Destructor Documentation

AmountSpinBox::AmountSpinBox ( QWidget *  parent)
inlineexplicit

Definition at line 25 of file bitcoinamountfield.cpp.

Member Function Documentation

bool AmountSpinBox::event ( QEvent *  event)
inlineprotected

Definition at line 152 of file bitcoinamountfield.cpp.

void AmountSpinBox::fixup ( QString &  input) const
inline

Definition at line 45 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

QSize AmountSpinBox::minimumSizeHint ( ) const
inline

Definition at line 94 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

CAmount AmountSpinBox::parse ( const QString &  text,
bool *  valid_out = 0 
) const
inlineprivate

Parse a string into a number of base monetary units and return validity.

Note
Must return 0 if !valid.

Definition at line 137 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AmountSpinBox::setDisplayUnit ( int  unit)
inline

Definition at line 76 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AmountSpinBox::setSingleStep ( const CAmount step)
inline

Definition at line 89 of file bitcoinamountfield.cpp.

Here is the caller graph for this function:

void AmountSpinBox::setValue ( const CAmount value)
inline

Definition at line 61 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AmountSpinBox::stepBy ( int  steps)
inline

Definition at line 67 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

StepEnabled AmountSpinBox::stepEnabled ( ) const
inlineprotected

Definition at line 167 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

QValidator::State AmountSpinBox::validate ( QString &  text,
int &  pos 
) const
inline

Definition at line 35 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

CAmount AmountSpinBox::value ( bool *  valid_out = 0) const
inline

Definition at line 56 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AmountSpinBox::valueChanged ( )
signal

Here is the caller graph for this function:

Member Data Documentation

QSize AmountSpinBox::cachedMinimumSizeHint
mutableprivate

Definition at line 130 of file bitcoinamountfield.cpp.

int AmountSpinBox::currentUnit
private

Definition at line 128 of file bitcoinamountfield.cpp.

CAmount AmountSpinBox::singleStep
private

Definition at line 129 of file bitcoinamountfield.cpp.


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