Raven Core  3.0.0
P2P Digital Currency
Signals | Public Member Functions | Protected Member Functions | Properties | Private Attributes | List of all members
AssetAmountField Class Reference

#include <ravenamountfield.h>

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

Signals

void valueChanged ()
 

Public Member Functions

 AssetAmountField (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...
 
void setUnit (int unit)
 
void setMaxAmount (CAmount &max)
 

Protected Member Functions

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

Properties

qint64 value
 

Private Attributes

AmountSpinBoxamount
 
int assetUnit
 

Detailed Description

Definition at line 79 of file ravenamountfield.h.

Constructor & Destructor Documentation

◆ AssetAmountField()

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

Definition at line 335 of file ravenamountfield.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void AssetAmountField::clear ( )

Make field empty and ready for new input.

Definition at line 361 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ eventFilter()

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

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

Definition at line 389 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ setDisplayUnit()

void AssetAmountField::setDisplayUnit ( int  unit)

Change unit used to display amount.

◆ setEnabled()

void AssetAmountField::setEnabled ( bool  fEnabled)

Enable/Disable.

Definition at line 367 of file ravenamountfield.cpp.

◆ setMaxAmount()

void AssetAmountField::setMaxAmount ( CAmount max)

◆ setReadOnly()

void AssetAmountField::setReadOnly ( bool  fReadOnly)

Make read-only.

Definition at line 409 of file ravenamountfield.cpp.

◆ setSingleStep()

void AssetAmountField::setSingleStep ( const CAmount step)

Set single step in satoshis.

Definition at line 414 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ setUnit()

void AssetAmountField::setUnit ( int  unit)

Definition at line 419 of file ravenamountfield.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setValid()

void AssetAmountField::setValid ( bool  valid)

Mark current value as invalid in UI.

Definition at line 380 of file ravenamountfield.cpp.

Here is the caller graph for this function:

◆ setValue()

void AssetAmountField::setValue ( const CAmount value)

Definition at line 404 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ validate()

bool AssetAmountField::validate ( )

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

Definition at line 372 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ value()

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

Definition at line 399 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ valueChanged

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

Member Data Documentation

◆ amount

AmountSpinBox* AssetAmountField::amount
private

Definition at line 124 of file ravenamountfield.h.

◆ assetUnit

int AssetAmountField::assetUnit
private

Definition at line 125 of file ravenamountfield.h.

Property Documentation

◆ value

qint64 AssetAmountField::value
readwrite

Definition at line 85 of file ravenamountfield.h.


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