List of all members | Properties | Public Member Functions | Public Slots | Signals | Protected Attributes | Protected Slots
CurrCluster Class Reference

#include <currcluster.h>

Properties

bool allowNegative
 
bool baseVisible
 
bool currencyDisabled
 
bool currencyEditable
 
bool currencyEnabled
 
bool currencyVisible
 
bool enabled
 
QString fieldNameCurr
 
- Properties inherited from CurrDisplay
double baseValue
 
double defaultLocalValue
 
bool enabled
 
QString fieldNameValue
 
CurrDisplayFormats format
 
bool localControl
 
double localValue
 

Public Member Functions

 CurrCluster (QWidget *parent, const char *name=0)
 
bool allowNegative () const
 
bool baseVisible () const
 
QString currAbbr () const
 
bool currencyDisabled () const
 
bool currencyEnabled () const
 
bool currencyVisible () const
 
QString fieldNameCurr () const
 
int id () const
 
bool isBase () const
 
bool isEnabled () const
 
- Public Member Functions inherited from CurrDisplay
 CurrDisplay (QWidget *parent, const char *name=0)
 
 ~CurrDisplay ()
 
virtual double baseValue () const
 
virtual int decimals () const
 
double defaultLocalValue () const
 
virtual QDate effective () const
 
virtual QString fieldNameValue () const
 
virtual CurrDisplayFormats format () const
 
virtual bool isEmpty () 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 set (const double, const int, const QDate &, const bool=true)
 
void setAllowNegative (bool)
 
void setBaseVisible (bool)
 
void setCurrencyDisabled (bool)
 
void setCurrencyEditable (bool)
 
void setCurrencyEnabled (bool)
 
void setCurrencyVisible (bool)
 
void setDataWidgetMap (XDataWidgetMapper *m)
 
void setEnabled (bool)
 
void setFieldNameCurr (QString p)
 
virtual void setFormat (CurrDisplayFormats)
 
void setId (int)
 
void setPaletteForegroundColor (const QColor &)
 
void sLostFocus ()
 
- Public Slots inherited from CurrDisplay
void clear ()
 
void reset ()
 
void setBaseValue (double)
 
void setDefaultLocalValue (double p)
 
void setId (int)
 

Signals

void editingFinished ()
 
- Signals inherited from CurrDisplay
void effectiveChanged (const QDate &)
 
void idChanged (int)
 
void noConversionRate ()
 
void valueBaseChanged (const double)
 
void valueChanged ()
 
void valueLocalChanged (const double)
 

Protected Attributes

bool _baseVisible
 
XComboBox_currency
 
bool _currencyEnabled
 
QDoubleValidator * _validator
 
QLabel_valueBaseLit
 
QLabel_valueBaseWidget
 
- Protected Attributes inherited from CurrDisplay
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 sId (int)
 
virtual void sReformat () const
 
- Protected Slots inherited from CurrDisplay
virtual void setDataWidgetMap (XDataWidgetMapper *m)
 
virtual void sReformat () const
 
virtual void sValueBaseChanged ()
 
virtual void sValueBaseChanged (double)
 
virtual void sValueLocalChanged ()
 
virtual void sValueLocalChanged (double)
 

Additional Inherited Members

- Public Types inherited from CurrDisplay
enum  CurrDisplayFormats {
  Money, SalesPrice, PurchPrice, ExtPrice,
  Cost
}
 
- Static Public Member Functions inherited from CurrDisplay
static QString baseCurrAbbr ()
 
static int baseId ()
 
static double convert (const int, const int, const double, const QDate &)
 
static QString currSymbol (const int)
 
- Protected Types inherited from CurrDisplay
enum  State { New, NANew, Initialized, NAInit }
 
- Static Protected Attributes inherited from CurrDisplay
static QString _baseAbbr = QString()
 
static int _baseId = -1
 
static int _baseScale = 2
 

Constructor & Destructor Documentation

CurrCluster::CurrCluster ( QWidget parent,
const char *  name = 0 
)

Member Function Documentation

bool CurrCluster::allowNegative ( ) const
inline
bool CurrCluster::baseVisible ( ) const
inline
void CurrCluster::clear ( )
slot
QString CurrCluster::currAbbr ( ) const
inlinevirtual

Reimplemented from CurrDisplay.

bool CurrCluster::currencyDisabled ( ) const
inline
bool CurrCluster::currencyEnabled ( ) const
inline
bool CurrCluster::currencyVisible ( ) const
inline
void CurrCluster::editingFinished ( )
signal
QString CurrCluster::fieldNameCurr ( ) const
inline
int CurrCluster::id ( ) const
inlinevirtual

Reimplemented from CurrDisplay.

bool CurrCluster::isBase ( ) const
inlinevirtual

Reimplemented from CurrDisplay.

bool CurrCluster::isEnabled ( ) const
inlinevirtual

Reimplemented from CurrDisplay.

void CurrCluster::set ( const double  newValue,
const int  newId,
const QDate &  newDate,
const bool  isBase = true 
)
slot
void CurrCluster::setAllowNegative ( bool  value)
slot
void CurrCluster::setBaseVisible ( bool  showBase)
slot
void CurrCluster::setCurrencyDisabled ( bool  newValue)
slot
void CurrCluster::setCurrencyEditable ( bool  newValue)
slot
void CurrCluster::setCurrencyEnabled ( bool  newValue)
slot
void CurrCluster::setCurrencyVisible ( bool  showCurrency)
slot
void CurrCluster::setDataWidgetMap ( XDataWidgetMapper m)
slot
void CurrCluster::setEnabled ( bool  newValue)
slot
void CurrCluster::setFieldNameCurr ( QString  p)
inlineslot
void CurrCluster::setFormat ( CurrDisplayFormats  pFormat)
virtualslot
void CurrCluster::setId ( int  curr_id)
slot
void CurrCluster::setPaletteForegroundColor ( const QColor &  newColor)
slot
void CurrCluster::sId ( int  id)
protectedvirtualslot
void CurrCluster::sLostFocus ( )
slot
void CurrCluster::sReformat ( ) const
protectedvirtualslot

Member Data Documentation

bool CurrCluster::_baseVisible
protected
XComboBox* CurrCluster::_currency
protected
bool CurrCluster::_currencyEnabled
protected
QDoubleValidator* CurrCluster::_validator
protected
QLabel* CurrCluster::_valueBaseLit
protected
QLabel* CurrCluster::_valueBaseWidget
protected

Property Documentation

bool CurrCluster::allowNegative
readwrite
bool CurrCluster::baseVisible
readwrite
bool CurrCluster::currencyDisabled
readwrite
bool CurrCluster::currencyEditable
readwrite
bool CurrCluster::currencyEnabled
readwrite
bool CurrCluster::currencyVisible
readwrite
bool CurrCluster::enabled
readwrite
QString CurrCluster::fieldNameCurr
readwrite

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

Generated on Fri Oct 7 2016 16:24:47 xTuple ERP Programmer Reference, Version 4.7.0 doxygen 1.8.10