BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
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::AmountSpinBox ( QWidget *  parent)
inlineexplicit

Definition at line 25 of file bitcoinamountfield.cpp.

Member Function Documentation

◆ event()

bool AmountSpinBox::event ( QEvent *  event)
inlineprotected

Definition at line 152 of file bitcoinamountfield.cpp.

◆ fixup()

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

Definition at line 45 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

◆ minimumSizeHint()

QSize AmountSpinBox::minimumSizeHint ( ) const
inline

Definition at line 94 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

◆ parse()

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:

◆ setDisplayUnit()

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:

◆ setSingleStep()

void AmountSpinBox::setSingleStep ( const CAmount step)
inline

Definition at line 89 of file bitcoinamountfield.cpp.

Here is the caller graph for this function:

◆ setValue()

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:

◆ stepBy()

void AmountSpinBox::stepBy ( int  steps)
inline

Definition at line 67 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

◆ stepEnabled()

StepEnabled AmountSpinBox::stepEnabled ( ) const
inlineprotected

Definition at line 167 of file bitcoinamountfield.cpp.

Here is the call graph for this function:

◆ validate()

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:

◆ value()

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:

◆ valueChanged

void AmountSpinBox::valueChanged ( )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ cachedMinimumSizeHint

QSize AmountSpinBox::cachedMinimumSizeHint
mutableprivate

Definition at line 130 of file bitcoinamountfield.cpp.

◆ currentUnit

int AmountSpinBox::currentUnit
private

Definition at line 128 of file bitcoinamountfield.cpp.

◆ singleStep

CAmount AmountSpinBox::singleStep
private

Definition at line 129 of file bitcoinamountfield.cpp.


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