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

#include <currcluster.h>

Inheritance diagram for CurrCluster:
CurrDisplay QWidget

Public Types

enum  CurrDisplayFormats {
  Money, SalesPrice, PurchPrice, ExtPrice,
  Cost
}
 

Properties

bool allowNegative
 
double baseValue
 
bool baseVisible
 
bool currencyDisabled
 
bool currencyEditable
 
bool currencyEnabled
 
bool currencyVisible
 
double defaultLocalValue
 
bool enabled
 
QString fieldNameCurr
 
QString fieldNameValue
 
CurrDisplayFormats format
 
bool localControl
 
double localValue
 

Public Slots

void clear ()
 
void reset ()
 
void set (const double, const int, const QDate &, const bool=true)
 
void setAllowNegative (bool)
 
void setBaseValue (double)
 
void setBaseVisible (bool)
 
void setCurrencyDisabled (bool)
 
void setCurrencyEditable (bool)
 
void setCurrencyEnabled (bool)
 
void setCurrencyVisible (bool)
 
void setDataWidgetMap (XDataWidgetMapper *m)
 
void setDefaultLocalValue (double p)
 
void setEnabled (bool)
 
void setFieldNameCurr (QString p)
 
virtual void setFormat (CurrDisplayFormats)
 
void setId (int)
 
void setPaletteForegroundColor (const QColor &)
 
void sLostFocus ()
 

Signals

void editingFinished ()
 
void effectiveChanged (const QDate &)
 
void idChanged (int)
 
void noConversionRate ()
 
void valueBaseChanged (const double)
 
void valueChanged ()
 
void valueLocalChanged (const double)
 

Public Member Functions

 CurrCluster (QWidget *parent, const char *name=0)
 
bool allowNegative () const
 
virtual double baseValue () const
 
bool baseVisible () const
 
QString currAbbr () const
 
bool currencyDisabled () const
 
bool currencyEnabled () const
 
bool currencyVisible () const
 
virtual int decimals () const
 
double defaultLocalValue () const
 
virtual QDate effective () const
 
QString fieldNameCurr () const
 
virtual QString fieldNameValue () const
 
virtual CurrDisplayFormats format () const
 
int id () const
 
bool isBase () const
 
virtual bool isEmpty () const
 
bool isEnabled () const
 
virtual bool isZero () const
 
virtual bool localControl () const
 
virtual double localValue () const
 
void setEffective (const QDate &)
 
virtual void setFieldNameValue (QString p)
 
void setLocalControl (bool)
 
void setLocalValue (double)
 
void setNA (const bool=true)
 

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 Slots

virtual void sId (int)
 
virtual void sReformat () const
 
virtual void sValueBaseChanged ()
 
virtual void sValueBaseChanged (double)
 
virtual void sValueLocalChanged ()
 
virtual void sValueLocalChanged (double)
 

Protected Attributes

bool _baseKnown
 
bool _baseVisible
 
XComboBox_currency
 
bool _currencyEnabled
 
int _decimals
 
QDate _effective
 
QString _fieldNameValue
 
CurrDisplayFormats _format
 
QGridLayout * _grid
 
bool _localControl
 
int _localId
 
bool _localKnown
 
int _localScale
 
XDataWidgetMapper_mapper
 
State _state
 
QDoubleValidator_validator
 
double _valueBase
 
QLabel_valueBaseLit
 
QLabel_valueBaseWidget
 
double _valueLocal
 
XLineEdit_valueLocalWidget
 

Static Protected Attributes

static QString _baseAbbr
 
static int _baseId
 
static int _baseScale
 

Member Enumeration Documentation

◆ CurrDisplayFormats

Enumerator
Money 
SalesPrice 
PurchPrice 
ExtPrice 
Cost 

◆ State

enum CurrDisplay::State
protectedinherited
Enumerator
New 
NANew 
Initialized 
NAInit 

Property Documentation

◆ allowNegative

bool CurrCluster::allowNegative
readwrite

◆ baseValue

double CurrDisplay::baseValue
readwriteinherited

◆ baseVisible

bool CurrCluster::baseVisible
readwrite

◆ currencyDisabled

bool CurrCluster::currencyDisabled
readwrite

◆ currencyEditable

bool CurrCluster::currencyEditable
readwrite

◆ currencyEnabled

bool CurrCluster::currencyEnabled
readwrite

◆ currencyVisible

bool CurrCluster::currencyVisible
readwrite

◆ defaultLocalValue

double CurrDisplay::defaultLocalValue
readwriteinherited

◆ enabled

bool CurrCluster::enabled
readwrite

◆ fieldNameCurr

QString CurrCluster::fieldNameCurr
readwrite

◆ fieldNameValue

QString CurrDisplay::fieldNameValue
readwriteinherited

◆ format

CurrDisplayFormats CurrDisplay::format
readwriteinherited

◆ localControl

bool CurrDisplay::localControl
readwriteinherited

◆ localValue

double CurrDisplay::localValue
readwriteinherited

Constructor & Destructor Documentation

◆ CurrCluster()

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

Member Function Documentation

◆ allowNegative()

bool CurrCluster::allowNegative ( ) const
inline

◆ baseCurrAbbr()

QString CurrDisplay::baseCurrAbbr ( )
staticinherited

◆ baseId()

int CurrDisplay::baseId ( )
staticinherited

◆ baseValue()

virtual double CurrDisplay::baseValue ( ) const
inlinevirtualinherited

◆ baseVisible()

bool CurrCluster::baseVisible ( ) const
inline

◆ clear

void CurrCluster::clear ( )
slot

◆ convert()

double CurrDisplay::convert ( const int  from,
const int  to,
const double  amount,
const QDate &  date 
)
staticinherited

◆ currAbbr()

QString CurrCluster::currAbbr ( ) const
inlinevirtual

Reimplemented from CurrDisplay.

◆ currencyDisabled()

bool CurrCluster::currencyDisabled ( ) const
inline

◆ currencyEnabled()

bool CurrCluster::currencyEnabled ( ) const
inline

◆ currencyVisible()

bool CurrCluster::currencyVisible ( ) const
inline

◆ currSymbol()

QString CurrDisplay::currSymbol ( const int  pid)
staticinherited

◆ decimals()

virtual int CurrDisplay::decimals ( ) const
inlinevirtualinherited

◆ defaultLocalValue()

double CurrDisplay::defaultLocalValue ( ) const
inlineinherited

◆ editingFinished

void CurrCluster::editingFinished ( )
signal

◆ effective()

virtual QDate CurrDisplay::effective ( ) const
inlinevirtualinherited

◆ effectiveChanged

void CurrDisplay::effectiveChanged ( const QDate &  )
signalinherited

◆ fieldNameCurr()

QString CurrCluster::fieldNameCurr ( ) const
inline

◆ fieldNameValue()

virtual QString CurrDisplay::fieldNameValue ( ) const
inlinevirtualinherited

◆ format()

virtual CurrDisplayFormats CurrDisplay::format ( ) const
inlinevirtualinherited

◆ id()

int CurrCluster::id ( ) const
inlinevirtual

Reimplemented from CurrDisplay.

◆ idChanged

void CurrDisplay::idChanged ( int  )
signalinherited

◆ isBase()

bool CurrCluster::isBase ( ) const
inlinevirtual

Reimplemented from CurrDisplay.

◆ isEmpty()

virtual bool CurrDisplay::isEmpty ( ) const
inlinevirtualinherited

◆ isEnabled()

bool CurrCluster::isEnabled ( ) const
inlinevirtual

Reimplemented from CurrDisplay.

◆ isZero()

bool CurrDisplay::isZero ( ) const
virtualinherited

◆ localControl()

virtual bool CurrDisplay::localControl ( ) const
inlinevirtualinherited

◆ localValue()

virtual double CurrDisplay::localValue ( ) const
inlinevirtualinherited

◆ noConversionRate

void CurrDisplay::noConversionRate ( )
signalinherited

◆ reset

void CurrDisplay::reset ( )
slotinherited

◆ set

void CurrCluster::set ( const double  newValue,
const int  newId,
const QDate &  newDate,
const bool  isBase = true 
)
slot

◆ setAllowNegative

void CurrCluster::setAllowNegative ( bool  value)
slot

◆ setBaseValue

void CurrDisplay::setBaseValue ( double  newValue)
slotinherited

◆ setBaseVisible

void CurrCluster::setBaseVisible ( bool  showBase)
slot

◆ setCurrencyDisabled

void CurrCluster::setCurrencyDisabled ( bool  newValue)
slot

◆ setCurrencyEditable

void CurrCluster::setCurrencyEditable ( bool  newValue)
slot

◆ setCurrencyEnabled

void CurrCluster::setCurrencyEnabled ( bool  newValue)
slot

◆ setCurrencyVisible

void CurrCluster::setCurrencyVisible ( bool  showCurrency)
slot

◆ setDataWidgetMap

void CurrCluster::setDataWidgetMap ( XDataWidgetMapper m)
slot

◆ setDefaultLocalValue

void CurrDisplay::setDefaultLocalValue ( double  p)
inlineslotinherited

◆ setEffective()

void CurrDisplay::setEffective ( const QDate &  newValue)
inherited

◆ setEnabled

void CurrCluster::setEnabled ( bool  newValue)
slot

◆ setFieldNameCurr

void CurrCluster::setFieldNameCurr ( QString  p)
inlineslot

◆ setFieldNameValue()

virtual void CurrDisplay::setFieldNameValue ( QString  p)
inlinevirtualinherited

◆ setFormat

void CurrCluster::setFormat ( CurrDisplayFormats  pFormat)
virtualslot

◆ setId

void CurrCluster::setId ( int  curr_id)
slot

◆ setLocalControl()

void CurrDisplay::setLocalControl ( bool  newValue)
inherited

◆ setLocalValue()

void CurrDisplay::setLocalValue ( double  newValue)
inherited

◆ setNA()

void CurrDisplay::setNA ( const bool  isNA = true)
inherited

◆ setPaletteForegroundColor

void CurrCluster::setPaletteForegroundColor ( const QColor &  newColor)
slot

◆ sId

void CurrCluster::sId ( int  id)
protectedvirtualslot

◆ sLostFocus

void CurrCluster::sLostFocus ( )
slot

◆ sReformat

void CurrCluster::sReformat ( ) const
protectedvirtualslot

◆ sValueBaseChanged [1/2]

void CurrDisplay::sValueBaseChanged ( )
protectedvirtualslotinherited

◆ sValueBaseChanged [2/2]

void CurrDisplay::sValueBaseChanged ( double  newValue)
protectedvirtualslotinherited

◆ sValueLocalChanged [1/2]

void CurrDisplay::sValueLocalChanged ( )
protectedvirtualslotinherited

◆ sValueLocalChanged [2/2]

void CurrDisplay::sValueLocalChanged ( double  newValue)
protectedvirtualslotinherited

◆ valueBaseChanged

void CurrDisplay::valueBaseChanged ( const double  )
signalinherited

◆ valueChanged

void CurrDisplay::valueChanged ( )
signalinherited

◆ valueLocalChanged

void CurrDisplay::valueLocalChanged ( const double  )
signalinherited

Member Data Documentation

◆ _baseAbbr

QString CurrDisplay::_baseAbbr
staticprotectedinherited

◆ _baseId

int CurrDisplay::_baseId
staticprotectedinherited

◆ _baseKnown

bool CurrDisplay::_baseKnown
protectedinherited

◆ _baseScale

int CurrDisplay::_baseScale
staticprotectedinherited

◆ _baseVisible

bool CurrCluster::_baseVisible
protected

◆ _currency

XComboBox* CurrCluster::_currency
protected

◆ _currencyEnabled

bool CurrCluster::_currencyEnabled
protected

◆ _decimals

int CurrDisplay::_decimals
protectedinherited

◆ _effective

QDate CurrDisplay::_effective
protectedinherited

◆ _fieldNameValue

QString CurrDisplay::_fieldNameValue
protectedinherited

◆ _format

CurrDisplayFormats CurrDisplay::_format
protectedinherited

◆ _grid

QGridLayout* CurrDisplay::_grid
protectedinherited

◆ _localControl

bool CurrDisplay::_localControl
protectedinherited

◆ _localId

int CurrDisplay::_localId
protectedinherited

◆ _localKnown

bool CurrDisplay::_localKnown
protectedinherited

◆ _localScale

int CurrDisplay::_localScale
protectedinherited

◆ _mapper

XDataWidgetMapper* CurrDisplay::_mapper
protectedinherited

◆ _state

State CurrDisplay::_state
protectedinherited

◆ _validator

QDoubleValidator* CurrCluster::_validator
protected

◆ _valueBase

double CurrDisplay::_valueBase
protectedinherited

◆ _valueBaseLit

QLabel* CurrCluster::_valueBaseLit
protected

◆ _valueBaseWidget

QLabel* CurrCluster::_valueBaseWidget
protected

◆ _valueLocal

double CurrDisplay::_valueLocal
protectedinherited

◆ _valueLocalWidget

XLineEdit* CurrDisplay::_valueLocalWidget
protectedinherited

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17