Fabcoin Core  0.16.2
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
 
CAmount minimum () const
 
void setMinimum (const CAmount &min)
 

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
 
CAmount minAmount
 
QSize cachedMinimumSizeHint
 

Detailed Description

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

Definition at line 20 of file fabcoinamountfield.cpp.

Constructor & Destructor Documentation

AmountSpinBox::AmountSpinBox ( QWidget *  parent)
inlineexplicit

Definition at line 25 of file fabcoinamountfield.cpp.

Member Function Documentation

bool AmountSpinBox::event ( QEvent *  event)
inlineprotected

Definition at line 168 of file fabcoinamountfield.cpp.

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

Definition at line 46 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

CAmount AmountSpinBox::minimum ( ) const
inline

Definition at line 130 of file fabcoinamountfield.cpp.

Here is the caller graph for this function:

QSize AmountSpinBox::minimumSizeHint ( ) const
inline

Definition at line 97 of file fabcoinamountfield.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 153 of file fabcoinamountfield.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 79 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AmountSpinBox::setMinimum ( const CAmount min)
inline

Definition at line 135 of file fabcoinamountfield.cpp.

Here is the caller graph for this function:

void AmountSpinBox::setSingleStep ( const CAmount step)
inline

Definition at line 92 of file fabcoinamountfield.cpp.

Here is the caller graph for this function:

void AmountSpinBox::setValue ( const CAmount value)
inline

Definition at line 63 of file fabcoinamountfield.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 70 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

StepEnabled AmountSpinBox::stepEnabled ( ) const
inlineprotected

Definition at line 183 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

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

Definition at line 36 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

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

Definition at line 58 of file fabcoinamountfield.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 146 of file fabcoinamountfield.cpp.

int AmountSpinBox::currentUnit
private

Definition at line 143 of file fabcoinamountfield.cpp.

CAmount AmountSpinBox::minAmount
private

Definition at line 145 of file fabcoinamountfield.cpp.

CAmount AmountSpinBox::singleStep
private

Definition at line 144 of file fabcoinamountfield.cpp.


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