CurrDisplay Class Reference
#include <currcluster.h>
List of all members.
Public Types |
| enum | CurrDisplayFormats {
Money,
SalesPrice,
PurchPrice,
ExtPrice,
Cost
} |
Properties |
| double | baseValue |
| double | defaultLocalValue |
| bool | enabled |
| QString | fieldNameValue |
| CurrDisplayFormats | format |
| bool | localControl |
| double | localValue |
Public Member Functions |
| | CurrDisplay (QWidget *parent, const char *name=0) |
| | ~CurrDisplay () |
| virtual double | baseValue () const |
| virtual QString | currAbbr () const |
| virtual int | decimals () const |
| double | defaultLocalValue () const |
| virtual QDate | effective () const |
| virtual QString | fieldNameValue () const |
| virtual CurrDisplayFormats | format () const |
| virtual Q_INVOKABLE int | id () const |
| virtual bool | isBase () const |
| virtual bool | isEmpty () const |
| virtual bool | isEnabled () const |
| virtual bool | isZero () const |
| virtual bool | localControl () const |
| virtual double | localValue () const |
Public Slots |
| void | clear () |
| void | reset () |
| void | set (const double, const int, const QDate &, const bool=true) |
| void | setBaseValue (double) |
| void | setDefaultLocalValue (double p) |
| void | setEffective (const QDate &) |
| void | setEnabled (bool B) |
| virtual void | setFieldNameValue (QString p) |
| virtual void | setFormat (CurrDisplayFormats=Money) |
| void | setId (int) |
| void | setLocalControl (bool) |
| void | setLocalValue (double) |
| void | setNA (const bool=true) |
| void | setPaletteForegroundColor (const QColor &) |
Signals |
| void | effectiveChanged (const QDate &) |
| void | idChanged (int) |
| void | noConversionRate () |
| void | valueBaseChanged (const double) |
| void | valueChanged () |
| void | valueLocalChanged (const double) |
Static Public Member Functions |
| static QString | baseCurrAbbr () |
| static int | baseId () |
| static double | convert (const int, const int, const double, const QDate &) |
| static QString | currSymbol (const int) |
Protected Types |
| enum | State { New,
NANew,
Initialized,
NAInit
} |
Protected Attributes |
| bool | _baseKnown |
| int | _decimals |
| QDate | _effective |
| QString | _fieldNameValue |
| CurrDisplayFormats | _format |
| QGridLayout * | _grid |
| bool | _localControl |
| int | _localId |
| bool | _localKnown |
| int | _localScale |
| XDataWidgetMapper * | _mapper |
| State | _state |
| double | _valueBase |
| double | _valueLocal |
| XLineEdit * | _valueLocalWidget |
Protected Slots |
| virtual void | setDataWidgetMap (XDataWidgetMapper *m) |
| virtual void | sReformat () const |
| virtual void | sValueBaseChanged (double) |
| virtual void | sValueBaseChanged () |
| virtual void | sValueLocalChanged (double) |
| virtual void | sValueLocalChanged () |
Static Protected Attributes |
| static QString | _baseAbbr = QString() |
| static int | _baseId = -1 |
| static int | _baseScale = 2 |
Member Enumeration Documentation
- Enumerator:
| Money |
|
| SalesPrice |
|
| PurchPrice |
|
| ExtPrice |
|
| Cost |
|
- Enumerator:
| New |
|
| NANew |
|
| Initialized |
|
| NAInit |
|
Constructor & Destructor Documentation
| CurrDisplay::CurrDisplay |
( |
QWidget * |
parent, |
|
|
const char * |
name = 0 | |
|
) |
| | |
| CurrDisplay::~CurrDisplay |
( |
|
) |
|
Member Function Documentation
| QString CurrDisplay::baseCurrAbbr |
( |
|
) |
[static] |
| int CurrDisplay::baseId |
( |
|
) |
[static] |
| virtual double CurrDisplay::baseValue |
( |
|
) |
const [inline, virtual] |
| void CurrDisplay::clear |
( |
|
) |
[slot] |
| double CurrDisplay::convert |
( |
const int |
from, |
|
|
const int |
to, |
|
|
const double |
amount, |
|
|
const QDate & |
date | |
|
) |
| | [static] |
| QString CurrDisplay::currAbbr |
( |
|
) |
const [virtual] |
| QString CurrDisplay::currSymbol |
( |
const int |
pid |
) |
[static] |
| virtual int CurrDisplay::decimals |
( |
|
) |
const [inline, virtual] |
| double CurrDisplay::defaultLocalValue |
( |
|
) |
const [inline] |
| virtual QDate CurrDisplay::effective |
( |
|
) |
const [inline, virtual] |
| void CurrDisplay::effectiveChanged |
( |
const QDate & |
|
) |
[signal] |
| virtual QString CurrDisplay::fieldNameValue |
( |
|
) |
const [inline, virtual] |
| virtual Q_INVOKABLE int CurrDisplay::id |
( |
|
) |
const [inline, virtual] |
| void CurrDisplay::idChanged |
( |
int |
|
) |
[signal] |
| virtual bool CurrDisplay::isBase |
( |
|
) |
const [inline, virtual] |
| virtual bool CurrDisplay::isEmpty |
( |
|
) |
const [inline, virtual] |
| virtual bool CurrDisplay::isEnabled |
( |
|
) |
const [inline, virtual] |
| bool CurrDisplay::isZero |
( |
|
) |
const [virtual] |
| virtual bool CurrDisplay::localControl |
( |
|
) |
const [inline, virtual] |
| virtual double CurrDisplay::localValue |
( |
|
) |
const [inline, virtual] |
| void CurrDisplay::noConversionRate |
( |
|
) |
[signal] |
| void CurrDisplay::reset |
( |
|
) |
[slot] |
| void CurrDisplay::set |
( |
const double |
newValue, |
|
|
const int |
newId, |
|
|
const QDate & |
newDate, |
|
|
const bool |
isBase = true | |
|
) |
| | [slot] |
| void CurrDisplay::setBaseValue |
( |
double |
newValue |
) |
[slot] |
| void CurrDisplay::setDataWidgetMap |
( |
XDataWidgetMapper * |
m |
) |
[protected, virtual, slot] |
| void CurrDisplay::setDefaultLocalValue |
( |
double |
p |
) |
[inline, slot] |
| void CurrDisplay::setEffective |
( |
const QDate & |
newValue |
) |
[slot] |
| void CurrDisplay::setEnabled |
( |
bool |
B |
) |
[inline, slot] |
| virtual void CurrDisplay::setFieldNameValue |
( |
QString |
p |
) |
[inline, virtual, slot] |
| void CurrDisplay::setId |
( |
int |
curr_id |
) |
[slot] |
| void CurrDisplay::setLocalControl |
( |
bool |
newValue |
) |
[slot] |
| void CurrDisplay::setLocalValue |
( |
double |
newValue |
) |
[slot] |
| void CurrDisplay::setNA |
( |
const bool |
isNA = true |
) |
[slot] |
| void CurrDisplay::setPaletteForegroundColor |
( |
const QColor & |
newColor |
) |
[slot] |
| void CurrDisplay::sReformat |
( |
|
) |
const [protected, virtual, slot] |
| void CurrDisplay::sValueBaseChanged |
( |
double |
newValue |
) |
[protected, virtual, slot] |
| void CurrDisplay::sValueBaseChanged |
( |
|
) |
[protected, virtual, slot] |
| void CurrDisplay::sValueLocalChanged |
( |
double |
newValue |
) |
[protected, virtual, slot] |
| void CurrDisplay::sValueLocalChanged |
( |
|
) |
[protected, virtual, slot] |
| void CurrDisplay::valueBaseChanged |
( |
const |
double |
) |
[signal] |
| void CurrDisplay::valueChanged |
( |
|
) |
[signal] |
| void CurrDisplay::valueLocalChanged |
( |
const |
double |
) |
[signal] |
Member Data Documentation
Property Documentation
double CurrDisplay::baseValue [read, write] |
double CurrDisplay::defaultLocalValue [read, write] |
bool CurrDisplay::enabled [read, write] |
QString CurrDisplay::fieldNameValue [read, write] |
bool CurrDisplay::localControl [read, write] |
double CurrDisplay::localValue [read, write] |
The documentation for this class was generated from the following files: