Fabcoin Core  0.16.2
P2P Digital Currency
Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
TokenAmountSpinBox Class Reference

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

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

Signals

void valueChanged ()
 

Public Member Functions

 TokenAmountSpinBox (QWidget *parent)
 
QValidator::State validate (QString &text, int &pos) const
 
void fixup (QString &input) const
 
int256_t value (bool *valid_out=0) const
 
void setValue (const int256_t &value)
 
void stepBy (int steps)
 
int256_t minimum () const
 
void setMinimum (const int256_t &min)
 
void setTotalSupply (const int256_t &value)
 
void setDecimalUnits (int value)
 

Protected Member Functions

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

Private Member Functions

int256_t parse (const QString &text, bool *valid_out=0) const
 Parse a string into a number of base monetary units and return validity. More...
 
void setSingleStep ()
 
int256_t getMax (int256_t a, int256_t b) const
 
int256_t getMin (int256_t a, int256_t b) const
 

Private Attributes

int decimalUnits
 
int256_t totalSupply
 
int256_t singleStep
 
int256_t minAmount
 

Detailed Description

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

Definition at line 16 of file tokenamountfield.cpp.

Constructor & Destructor Documentation

TokenAmountSpinBox::TokenAmountSpinBox ( QWidget *  parent)
inlineexplicit

Definition at line 21 of file tokenamountfield.cpp.

Member Function Documentation

bool TokenAmountSpinBox::event ( QEvent *  event)
inlineprotected

Definition at line 142 of file tokenamountfield.cpp.

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

Definition at line 43 of file tokenamountfield.cpp.

Here is the call graph for this function:

int256_t TokenAmountSpinBox::getMax ( int256_t  a,
int256_t  b 
) const
inlineprivate

Definition at line 133 of file tokenamountfield.cpp.

Here is the caller graph for this function:

int256_t TokenAmountSpinBox::getMin ( int256_t  a,
int256_t  b 
) const
inlineprivate

Definition at line 137 of file tokenamountfield.cpp.

Here is the caller graph for this function:

int256_t TokenAmountSpinBox::minimum ( ) const
inline

Definition at line 76 of file tokenamountfield.cpp.

Here is the caller graph for this function:

int256_t TokenAmountSpinBox::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 109 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenAmountSpinBox::setDecimalUnits ( int  value)
inline

Definition at line 92 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenAmountSpinBox::setMinimum ( const int256_t &  min)
inline

Definition at line 81 of file tokenamountfield.cpp.

Here is the caller graph for this function:

void TokenAmountSpinBox::setSingleStep ( )
inlineprivate

Definition at line 123 of file tokenamountfield.cpp.

Here is the caller graph for this function:

void TokenAmountSpinBox::setTotalSupply ( const int256_t &  value)
inline

Definition at line 87 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenAmountSpinBox::setValue ( const int256_t &  value)
inline

Definition at line 60 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenAmountSpinBox::stepBy ( int  steps)
inline

Definition at line 67 of file tokenamountfield.cpp.

Here is the call graph for this function:

StepEnabled TokenAmountSpinBox::stepEnabled ( ) const
inlineprotected

Definition at line 157 of file tokenamountfield.cpp.

Here is the call graph for this function:

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

Definition at line 33 of file tokenamountfield.cpp.

Here is the call graph for this function:

int256_t TokenAmountSpinBox::value ( bool *  valid_out = 0) const
inline

Definition at line 55 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenAmountSpinBox::valueChanged ( )
signal

Here is the caller graph for this function:

Member Data Documentation

int TokenAmountSpinBox::decimalUnits
private

Definition at line 99 of file tokenamountfield.cpp.

int256_t TokenAmountSpinBox::minAmount
private

Definition at line 102 of file tokenamountfield.cpp.

int256_t TokenAmountSpinBox::singleStep
private

Definition at line 101 of file tokenamountfield.cpp.

int256_t TokenAmountSpinBox::totalSupply
private

Definition at line 100 of file tokenamountfield.cpp.


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