List of all members | Public Types | Properties | Public Member Functions | Public Slots | Signals | Static Public Member Functions | Protected Types | Protected Attributes | Protected Slots | Static Protected Attributes
CurrDisplay Class Reference

#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
 
void set (const double, const int, const QDate &, const bool=true)
 
void setEffective (const QDate &)
 
void setEnabled (bool B)
 
virtual void setFieldNameValue (QString p)
 
virtual void setFormat (CurrDisplayFormats=Money)
 
void setLocalControl (bool)
 
void setLocalValue (double)
 
void setNA (const bool=true)
 
void setPaletteForegroundColor (const QColor &)
 

Public Slots

void clear ()
 
void reset ()
 
void setBaseValue (double)
 
void setDefaultLocalValue (double p)
 
void setId (int)
 

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
 

Member Enumeration Documentation

Enumerator
Money 
SalesPrice 
PurchPrice 
ExtPrice 
Cost 
enum CurrDisplay::State
protected
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
inlinevirtual
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

Reimplemented in CurrCluster.

QString CurrDisplay::currSymbol ( const int  pid)
static
virtual int CurrDisplay::decimals ( ) const
inlinevirtual
double CurrDisplay::defaultLocalValue ( ) const
inline
virtual QDate CurrDisplay::effective ( ) const
inlinevirtual
void CurrDisplay::effectiveChanged ( const QDate &  )
signal
virtual QString CurrDisplay::fieldNameValue ( ) const
inlinevirtual
virtual CurrDisplayFormats CurrDisplay::format ( ) const
inlinevirtual
virtual Q_INVOKABLE int CurrDisplay::id ( ) const
inlinevirtual

Reimplemented in CurrCluster.

void CurrDisplay::idChanged ( int  )
signal
virtual bool CurrDisplay::isBase ( ) const
inlinevirtual

Reimplemented in CurrCluster.

virtual bool CurrDisplay::isEmpty ( ) const
inlinevirtual
virtual bool CurrDisplay::isEnabled ( ) const
inlinevirtual

Reimplemented in CurrCluster.

bool CurrDisplay::isZero ( ) const
virtual
virtual bool CurrDisplay::localControl ( ) const
inlinevirtual
virtual double CurrDisplay::localValue ( ) const
inlinevirtual
void CurrDisplay::noConversionRate ( )
signal
void CurrDisplay::reset ( )
slot
void CurrDisplay::set ( const double  newValue,
const int  newId,
const QDate &  newDate,
const bool  isBase = true 
)
void CurrDisplay::setBaseValue ( double  newValue)
slot
void CurrDisplay::setDataWidgetMap ( XDataWidgetMapper m)
protectedvirtualslot
void CurrDisplay::setDefaultLocalValue ( double  p)
inlineslot
void CurrDisplay::setEffective ( const QDate &  newValue)
void CurrDisplay::setEnabled ( bool  B)
inline
virtual void CurrDisplay::setFieldNameValue ( QString  p)
inlinevirtual
void CurrDisplay::setFormat ( CurrDisplayFormats  pFormat = Money)
virtual
void CurrDisplay::setId ( int  curr_id)
slot
void CurrDisplay::setLocalControl ( bool  newValue)
void CurrDisplay::setLocalValue ( double  newValue)
void CurrDisplay::setNA ( const bool  isNA = true)
void CurrDisplay::setPaletteForegroundColor ( const QColor &  newColor)
void CurrDisplay::sReformat ( ) const
protectedvirtualslot
void CurrDisplay::sValueBaseChanged ( )
protectedvirtualslot
void CurrDisplay::sValueBaseChanged ( double  newValue)
protectedvirtualslot
void CurrDisplay::sValueLocalChanged ( )
protectedvirtualslot
void CurrDisplay::sValueLocalChanged ( double  newValue)
protectedvirtualslot
void CurrDisplay::valueBaseChanged ( const double  )
signal
void CurrDisplay::valueChanged ( )
signal
void CurrDisplay::valueLocalChanged ( const double  )
signal

Member Data Documentation

QString CurrDisplay::_baseAbbr = QString()
staticprotected
int CurrDisplay::_baseId = -1
staticprotected
bool CurrDisplay::_baseKnown
protected
int CurrDisplay::_baseScale = 2
staticprotected
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

Property Documentation

double CurrDisplay::baseValue
readwrite
double CurrDisplay::defaultLocalValue
readwrite
bool CurrDisplay::enabled
readwrite
QString CurrDisplay::fieldNameValue
readwrite
CurrDisplayFormats CurrDisplay::format
readwrite
bool CurrDisplay::localControl
readwrite
double CurrDisplay::localValue
readwrite

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

Generated on Fri Oct 7 2016 14:23:28 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10