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

Widget for entering raven amounts. More...

#include <ravenamountfield.h>

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

Signals

void valueChanged ()
 

Public Member Functions

 RavenAmountField (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...
 

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 raven amounts.

Definition at line 21 of file ravenamountfield.h.

Constructor & Destructor Documentation

◆ RavenAmountField()

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

Definition at line 222 of file ravenamountfield.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void RavenAmountField::clear ( )

Make field empty and ready for new input.

Definition at line 253 of file ravenamountfield.cpp.

◆ eventFilter()

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

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

Definition at line 282 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ setDisplayUnit()

void RavenAmountField::setDisplayUnit ( int  unit)

Change unit used to display amount.

Definition at line 325 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ setEnabled()

void RavenAmountField::setEnabled ( bool  fEnabled)

Enable/Disable.

Definition at line 259 of file ravenamountfield.cpp.

◆ setReadOnly()

void RavenAmountField::setReadOnly ( bool  fReadOnly)

Make read-only.

Definition at line 309 of file ravenamountfield.cpp.

◆ setSingleStep()

void RavenAmountField::setSingleStep ( const CAmount step)

Set single step in satoshis.

Definition at line 330 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ setupTabChain()

QWidget * RavenAmountField::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 292 of file ravenamountfield.cpp.

◆ setValid()

void RavenAmountField::setValid ( bool  valid)

Mark current value as invalid in UI.

Definition at line 273 of file ravenamountfield.cpp.

Here is the caller graph for this function:

◆ setValue()

void RavenAmountField::setValue ( const CAmount value)

Definition at line 304 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ unitChanged

void RavenAmountField::unitChanged ( int  idx)
privateslot

Definition at line 314 of file ravenamountfield.cpp.

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

◆ validate()

bool RavenAmountField::validate ( )

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

Definition at line 265 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ value()

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

Definition at line 299 of file ravenamountfield.cpp.

Here is the call graph for this function:

◆ valueChanged

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

Member Data Documentation

◆ amount

AmountSpinBox* RavenAmountField::amount
private

Definition at line 68 of file ravenamountfield.h.

◆ unit

QValueComboBox* RavenAmountField::unit
private

Definition at line 69 of file ravenamountfield.h.

Property Documentation

◆ value

qint64 RavenAmountField::value
readwrite

Definition at line 27 of file ravenamountfield.h.


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