#include <currcluster.h>
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 () |
| virtual void | sValueBaseChanged (double) |
| virtual void | sValueLocalChanged () |
| virtual void | sValueLocalChanged (double) |
Static Protected Attributes | |
| static QString | _baseAbbr = QString() |
| static int | _baseId = -1 |
| static int | _baseScale = 2 |
enum CurrDisplay::State [protected] |
| CurrDisplay::CurrDisplay | ( | QWidget * | parent, |
| const char * | name = 0 |
||
| ) |
| QString CurrDisplay::baseCurrAbbr | ( | ) | [static] |
| int CurrDisplay::baseId | ( | ) | [static] |
| virtual double CurrDisplay::baseValue | ( | ) | const [inline, virtual] |
| void CurrDisplay::clear | ( | ) | [slot] |
Reimplemented in CurrCluster.
| double CurrDisplay::convert | ( | const int | from, |
| const int | to, | ||
| const double | amount, | ||
| const QDate & | date | ||
| ) | [static] |
| QString CurrDisplay::currAbbr | ( | ) | const [virtual] |
Reimplemented in CurrCluster.
| 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 CurrDisplayFormats CurrDisplay::format | ( | ) | const [inline, virtual] |
| virtual Q_INVOKABLE int CurrDisplay::id | ( | ) | const [inline, virtual] |
Reimplemented in CurrCluster.
| void CurrDisplay::idChanged | ( | int | ) | [signal] |
| virtual bool CurrDisplay::isBase | ( | ) | const [inline, virtual] |
Reimplemented in CurrCluster.
| virtual bool CurrDisplay::isEmpty | ( | ) | const [inline, virtual] |
| virtual bool CurrDisplay::isEnabled | ( | ) | const [inline, virtual] |
Reimplemented from QWidget.
Reimplemented in CurrCluster.
| 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] |
Reimplemented in CurrCluster.
| void CurrDisplay::setBaseValue | ( | double | newValue | ) | [slot] |
| void CurrDisplay::setDataWidgetMap | ( | XDataWidgetMapper * | m | ) | [protected, virtual, slot] |
Reimplemented in CurrCluster.
| void CurrDisplay::setDefaultLocalValue | ( | double | p | ) | [inline, slot] |
| void CurrDisplay::setEffective | ( | const QDate & | newValue | ) | [slot] |
| void CurrDisplay::setEnabled | ( | bool | B | ) | [inline, slot] |
Reimplemented from QWidget.
Reimplemented in CurrCluster.
| virtual void CurrDisplay::setFieldNameValue | ( | QString | p | ) | [inline, virtual, slot] |
| void CurrDisplay::setFormat | ( | CurrDisplayFormats | pFormat = Money | ) | [virtual, slot] |
Reimplemented in CurrCluster.
| void CurrDisplay::setId | ( | int | curr_id | ) | [slot] |
Reimplemented in CurrCluster.
| 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] |
Reimplemented from QWidget.
Reimplemented in CurrCluster.
| void CurrDisplay::sReformat | ( | ) | const [protected, virtual, slot] |
Reimplemented in CurrCluster.
| void CurrDisplay::sValueBaseChanged | ( | ) | [protected, virtual, slot] |
| void CurrDisplay::sValueBaseChanged | ( | double | newValue | ) | [protected, virtual, slot] |
| void CurrDisplay::sValueLocalChanged | ( | ) | [protected, virtual, slot] |
| void CurrDisplay::sValueLocalChanged | ( | double | newValue | ) | [protected, virtual, slot] |
| void CurrDisplay::valueBaseChanged | ( | const double | ) | [signal] |
| void CurrDisplay::valueChanged | ( | ) | [signal] |
| void CurrDisplay::valueLocalChanged | ( | const double | ) | [signal] |
QString CurrDisplay::_baseAbbr = QString() [static, protected] |
int CurrDisplay::_baseId = -1 [static, protected] |
bool CurrDisplay::_baseKnown [protected] |
int CurrDisplay::_baseScale = 2 [static, protected] |
int CurrDisplay::_decimals [protected] |
QDate CurrDisplay::_effective [protected] |
QString CurrDisplay::_fieldNameValue [protected] |
CurrDisplayFormats CurrDisplay::_format [protected] |
QGridLayout* CurrDisplay::_grid [protected] |
bool CurrDisplay::_localControl [protected] |
int CurrDisplay::_localId [protected] |
bool CurrDisplay::_localKnown [protected] |
int CurrDisplay::_localScale [protected] |
XDataWidgetMapper* CurrDisplay::_mapper [protected] |
State CurrDisplay::_state [protected] |
double CurrDisplay::_valueBase [protected] |
double CurrDisplay::_valueLocal [protected] |
XLineEdit* CurrDisplay::_valueLocalWidget [protected] |
double CurrDisplay::baseValue [read, write] |
double CurrDisplay::defaultLocalValue [read, write] |
bool CurrDisplay::enabled [read, write] |
Reimplemented from QWidget.
Reimplemented in CurrCluster.
QString CurrDisplay::fieldNameValue [read, write] |
CurrDisplayFormats CurrDisplay::format [read, write] |
bool CurrDisplay::localControl [read, write] |
double CurrDisplay::localValue [read, write] |
| Generated on Mon Jan 23 2012 12:22:31 | xTuple ERP Programmer Reference, Version 3.8.0 |
1.7.6.1
|