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
CurrDisplay Class Reference

#include <currcluster.h>

Inheritance diagram for CurrDisplay:
QWidget CurrCluster

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 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)
 

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 &)
 

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 setDataWidgetMap (XDataWidgetMapper *m)
 
virtual void sReformat () const
 
virtual void sValueBaseChanged ()
 
virtual void sValueBaseChanged (double)
 
virtual void sValueLocalChanged ()
 
virtual void sValueLocalChanged (double)
 

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
 

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
protected
Enumerator
New 
NANew 
Initialized 
NAInit 

Property Documentation

◆ baseValue

double CurrDisplay::baseValue
readwrite

◆ defaultLocalValue

double CurrDisplay::defaultLocalValue
readwrite

◆ enabled

bool CurrDisplay::enabled
readwrite

◆ fieldNameValue

QString CurrDisplay::fieldNameValue
readwrite

◆ format

CurrDisplayFormats CurrDisplay::format
readwrite

◆ localControl

bool CurrDisplay::localControl
readwrite

◆ localValue

double CurrDisplay::localValue
readwrite

Constructor & Destructor Documentation

◆ CurrDisplay()

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

◆ ~CurrDisplay()

CurrDisplay::~CurrDisplay ( )

Member Function Documentation

◆ baseCurrAbbr()

QString CurrDisplay::baseCurrAbbr ( )
static

◆ baseId()

int CurrDisplay::baseId ( )
static

◆ baseValue()

virtual double CurrDisplay::baseValue ( ) const
inlinevirtual

◆ clear

void CurrDisplay::clear ( )
slot

◆ convert()

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

◆ currAbbr()

QString CurrDisplay::currAbbr ( ) const
virtual

Reimplemented in CurrCluster.

◆ currSymbol()

QString CurrDisplay::currSymbol ( const int  pid)
static

◆ decimals()

virtual int CurrDisplay::decimals ( ) const
inlinevirtual

◆ defaultLocalValue()

double CurrDisplay::defaultLocalValue ( ) const
inline

◆ effective()

virtual QDate CurrDisplay::effective ( ) const
inlinevirtual

◆ effectiveChanged

void CurrDisplay::effectiveChanged ( const QDate &  )
signal

◆ fieldNameValue()

virtual QString CurrDisplay::fieldNameValue ( ) const
inlinevirtual

◆ format()

virtual CurrDisplayFormats CurrDisplay::format ( ) const
inlinevirtual

◆ id()

virtual Q_INVOKABLE int CurrDisplay::id ( ) const
inlinevirtual

Reimplemented in CurrCluster.

◆ idChanged

void CurrDisplay::idChanged ( int  )
signal

◆ isBase()

virtual bool CurrDisplay::isBase ( ) const
inlinevirtual

Reimplemented in CurrCluster.

◆ isEmpty()

virtual bool CurrDisplay::isEmpty ( ) const
inlinevirtual

◆ isEnabled()

virtual bool CurrDisplay::isEnabled ( ) const
inlinevirtual

Reimplemented in CurrCluster.

◆ isZero()

bool CurrDisplay::isZero ( ) const
virtual

◆ localControl()

virtual bool CurrDisplay::localControl ( ) const
inlinevirtual

◆ localValue()

virtual double CurrDisplay::localValue ( ) const
inlinevirtual

◆ noConversionRate

void CurrDisplay::noConversionRate ( )
signal

◆ reset

void CurrDisplay::reset ( )
slot

◆ set()

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

◆ setBaseValue

void CurrDisplay::setBaseValue ( double  newValue)
slot

◆ setDataWidgetMap

void CurrDisplay::setDataWidgetMap ( XDataWidgetMapper m)
protectedvirtualslot

◆ setDefaultLocalValue

void CurrDisplay::setDefaultLocalValue ( double  p)
inlineslot

◆ setEffective()

void CurrDisplay::setEffective ( const QDate &  newValue)

◆ setEnabled()

void CurrDisplay::setEnabled ( bool  B)
inline

◆ setFieldNameValue()

virtual void CurrDisplay::setFieldNameValue ( QString  p)
inlinevirtual

◆ setFormat()

void CurrDisplay::setFormat ( CurrDisplayFormats  pFormat = Money)
virtual

◆ setId

void CurrDisplay::setId ( int  curr_id)
slot

◆ setLocalControl()

void CurrDisplay::setLocalControl ( bool  newValue)

◆ setLocalValue()

void CurrDisplay::setLocalValue ( double  newValue)

◆ setNA()

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

◆ setPaletteForegroundColor()

void CurrDisplay::setPaletteForegroundColor ( const QColor &  newColor)

◆ sReformat

void CurrDisplay::sReformat ( ) const
protectedvirtualslot

◆ sValueBaseChanged [1/2]

void CurrDisplay::sValueBaseChanged ( )
protectedvirtualslot

◆ sValueBaseChanged [2/2]

void CurrDisplay::sValueBaseChanged ( double  newValue)
protectedvirtualslot

◆ sValueLocalChanged [1/2]

void CurrDisplay::sValueLocalChanged ( )
protectedvirtualslot

◆ sValueLocalChanged [2/2]

void CurrDisplay::sValueLocalChanged ( double  newValue)
protectedvirtualslot

◆ valueBaseChanged

void CurrDisplay::valueBaseChanged ( const double  )
signal

◆ valueChanged

void CurrDisplay::valueChanged ( )
signal

◆ valueLocalChanged

void CurrDisplay::valueLocalChanged ( const double  )
signal

Member Data Documentation

◆ _baseAbbr

QString CurrDisplay::_baseAbbr
staticprotected

◆ _baseId

int CurrDisplay::_baseId
staticprotected

◆ _baseKnown

bool CurrDisplay::_baseKnown
protected

◆ _baseScale

int CurrDisplay::_baseScale
staticprotected

◆ _decimals

int CurrDisplay::_decimals
protected

◆ _effective

QDate CurrDisplay::_effective
protected

◆ _fieldNameValue

QString CurrDisplay::_fieldNameValue
protected

◆ _format

CurrDisplayFormats CurrDisplay::_format
protected

◆ _grid

QGridLayout* CurrDisplay::_grid
protected

◆ _localControl

bool CurrDisplay::_localControl
protected

◆ _localId

int CurrDisplay::_localId
protected

◆ _localKnown

bool CurrDisplay::_localKnown
protected

◆ _localScale

int CurrDisplay::_localScale
protected

◆ _mapper

XDataWidgetMapper* CurrDisplay::_mapper
protected

◆ _state

State CurrDisplay::_state
protected

◆ _valueBase

double CurrDisplay::_valueBase
protected

◆ _valueLocal

double CurrDisplay::_valueLocal
protected

◆ _valueLocalWidget

XLineEdit* CurrDisplay::_valueLocalWidget
protected

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

Generated on Mon May 3 2021 xTuple ERP Programmer Reference, Version 4.12.0 doxygen 1.8.17