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

Widget for entering fabcoin amounts. More...

#include <fabcoinamountfield.h>

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

Signals

void valueChanged ()
 

Public Member Functions

 FabcoinAmountField (QWidget *parent=0)
 
CAmount value (bool *value=0) const
 
void setValue (const CAmount &value)
 
void setSingleStep (const CAmount &step)
 Set single step in satoshis. 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 setDisplayUnit (int unit)
 Change unit used to display amount. More...
 
void clear ()
 Make field empty and ready for new input. More...
 
void setEnabled (bool fEnabled)
 Enable/Disable. More...
 
QWidget * setupTabChain (QWidget *prev)
 Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907), in these cases we have to set it up manually. More...
 
CAmount minimum () const
 
void setMinimum (const CAmount &min)
 

Protected Member Functions

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

Properties

qint64 value
 

Private Slots

void unitChanged (int idx)
 

Private Attributes

AmountSpinBoxamount
 
QValueComboBoxunit
 

Detailed Description

Widget for entering fabcoin amounts.

Definition at line 20 of file fabcoinamountfield.h.

Constructor & Destructor Documentation

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

Definition at line 209 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

Member Function Documentation

void FabcoinAmountField::clear ( )

Make field empty and ready for new input.

Definition at line 240 of file fabcoinamountfield.cpp.

Here is the caller graph for this function:

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

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

Definition at line 268 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

CAmount FabcoinAmountField::minimum ( ) const

Definition at line 321 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

void FabcoinAmountField::setDisplayUnit ( int  unit)

Change unit used to display amount.

Definition at line 311 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void FabcoinAmountField::setEnabled ( bool  fEnabled)

Enable/Disable.

Definition at line 246 of file fabcoinamountfield.cpp.

Here is the caller graph for this function:

void FabcoinAmountField::setMinimum ( const CAmount min)

Definition at line 326 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void FabcoinAmountField::setReadOnly ( bool  fReadOnly)

Make read-only.

Definition at line 295 of file fabcoinamountfield.cpp.

Here is the caller graph for this function:

void FabcoinAmountField::setSingleStep ( const CAmount step)

Set single step in satoshis.

Definition at line 316 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QWidget * FabcoinAmountField::setupTabChain ( QWidget *  prev)

Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907), in these cases we have to set it up manually.

Definition at line 278 of file fabcoinamountfield.cpp.

Here is the caller graph for this function:

void FabcoinAmountField::setValid ( bool  valid)

Mark current value as invalid in UI.

Definition at line 260 of file fabcoinamountfield.cpp.

Here is the caller graph for this function:

void FabcoinAmountField::setValue ( const CAmount value)

Definition at line 290 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void FabcoinAmountField::unitChanged ( int  idx)
privateslot

Definition at line 300 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool FabcoinAmountField::validate ( )

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

Definition at line 252 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CAmount FabcoinAmountField::value ( bool *  value = 0) const

Definition at line 285 of file fabcoinamountfield.cpp.

Here is the call graph for this function:

void FabcoinAmountField::valueChanged ( )
signal

Definition at line 174 of file moc_fabcoinamountfield.cpp.

Here is the caller graph for this function:

Member Data Documentation

AmountSpinBox* FabcoinAmountField::amount
private

Definition at line 70 of file fabcoinamountfield.h.

QValueComboBox* FabcoinAmountField::unit
private

Definition at line 71 of file fabcoinamountfield.h.

Property Documentation

qint64 FabcoinAmountField::value
readwrite

Definition at line 26 of file fabcoinamountfield.h.


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