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

Widget for entering token amounts. More...

#include <tokenamountfield.h>

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

Signals

void valueChanged ()
 

Public Member Functions

 TokenAmountField (QWidget *parent=0)
 
int256_t value (bool *value=0) const
 
void setValue (const int256_t &value)
 
void setSingleStep (const int256_t &step)
 Set single step. 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 clear ()
 Make field empty and ready for new input. More...
 
void setEnabled (bool fEnabled)
 Enable/Disable. More...
 
int256_t minimum () const
 
void setMinimum (const int256_t &min)
 
void setTotalSupply (const int256_t &value)
 
void setDecimalUnits (int value)
 
QString text () const
 

Protected Member Functions

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

Properties

int256_t value
 

Private Attributes

TokenAmountSpinBoxamount
 

Detailed Description

Widget for entering token amounts.

Definition at line 14 of file tokenamountfield.h.

Constructor & Destructor Documentation

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

Definition at line 183 of file tokenamountfield.cpp.

Member Function Documentation

void TokenAmountField::clear ( )

Make field empty and ready for new input.

Definition at line 200 of file tokenamountfield.cpp.

Here is the caller graph for this function:

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

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

Definition at line 226 of file tokenamountfield.cpp.

Here is the call graph for this function:

int256_t TokenAmountField::minimum ( ) const

Definition at line 251 of file tokenamountfield.cpp.

Here is the call graph for this function:

void TokenAmountField::setDecimalUnits ( int  value)

Definition at line 266 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenAmountField::setEnabled ( bool  fEnabled)

Enable/Disable.

Definition at line 205 of file tokenamountfield.cpp.

void TokenAmountField::setMinimum ( const int256_t &  min)

Definition at line 256 of file tokenamountfield.cpp.

Here is the call graph for this function:

void TokenAmountField::setReadOnly ( bool  fReadOnly)

Make read-only.

Definition at line 246 of file tokenamountfield.cpp.

void TokenAmountField::setSingleStep ( const int256_t &  step)

Set single step.

void TokenAmountField::setTotalSupply ( const int256_t &  value)

Definition at line 261 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenAmountField::setValid ( bool  valid)

Mark current value as invalid in UI.

Definition at line 218 of file tokenamountfield.cpp.

Here is the caller graph for this function:

void TokenAmountField::setValue ( const int256_t &  value)

Definition at line 241 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString TokenAmountField::text ( ) const

Definition at line 271 of file tokenamountfield.cpp.

Here is the caller graph for this function:

bool TokenAmountField::validate ( )

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

Definition at line 210 of file tokenamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int256_t TokenAmountField::value ( bool *  value = 0) const

Definition at line 236 of file tokenamountfield.cpp.

Here is the call graph for this function:

void TokenAmountField::valueChanged ( )
signal

Definition at line 167 of file moc_tokenamountfield.cpp.

Here is the caller graph for this function:

Member Data Documentation

TokenAmountSpinBox* TokenAmountField::amount
private

Definition at line 60 of file tokenamountfield.h.

Property Documentation

int256_t TokenAmountField::value
readwrite

Definition at line 18 of file tokenamountfield.h.


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