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

#include <taxdisplay.h>

Inheritance diagram for TaxDisplay:
CurrDisplay QWidget

Public Types

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

Properties

double baseValue
 
double defaultLocalValue
 
bool enabled
 
QString fieldNameValue
 
CurrDisplayFormats format
 
bool localControl
 
double localValue
 
int orderId
 
QString type
 

Public Slots

void clear ()
 
void reset ()
 
void setBaseValue (double)
 
void setDefaultLocalValue (double p)
 
void setId (int)
 
void setMode (int)
 
void setOrderId (int)
 
void setType (QString)
 
void sOpen ()
 
void sRecalculate ()
 
void sRefresh ()
 
void sUpdate (QString, int, double, QString)
 
void sUpdateMenu ()
 

Signals

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

Public Member Functions

 TaxDisplay (QWidget *=0, const char *=0)
 
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
 
Q_INVOKABLE void invalidate ()
 
virtual bool isBase () const
 
virtual bool isEmpty () const
 
virtual bool isEnabled () const
 
virtual bool isZero () const
 
virtual bool localControl () const
 
virtual double localValue () const
 
Q_INVOKABLE int mode ()
 
Q_INVOKABLE int orderId ()
 
Q_INVOKABLE void save ()
 
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 &)
 
Q_INVOKABLE QString type ()
 

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 Member Functions

virtual bool eventFilter (QObject *, QEvent *)
 
void positionMenuLabel ()
 
virtual void resizeEvent (QResizeEvent *)
 

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

Property Documentation

◆ baseValue

double CurrDisplay::baseValue
readwriteinherited

◆ defaultLocalValue

double CurrDisplay::defaultLocalValue
readwriteinherited

◆ enabled

bool CurrDisplay::enabled
readwriteinherited

◆ fieldNameValue

QString CurrDisplay::fieldNameValue
readwriteinherited

◆ format

CurrDisplayFormats CurrDisplay::format
readwriteinherited

◆ localControl

bool CurrDisplay::localControl
readwriteinherited

◆ localValue

double CurrDisplay::localValue
readwriteinherited

◆ orderId

int TaxDisplay::orderId
readwrite

◆ type

QString TaxDisplay::type
readwrite

Constructor & Destructor Documentation

◆ TaxDisplay()

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

Member Function Documentation

◆ baseCurrAbbr()

QString CurrDisplay::baseCurrAbbr ( )
staticinherited

◆ baseId()

int CurrDisplay::baseId ( )
staticinherited

◆ baseValue()

virtual double CurrDisplay::baseValue ( ) const
inlinevirtualinherited

◆ clear

void CurrDisplay::clear ( )
slotinherited

◆ convert()

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

◆ currAbbr()

QString CurrDisplay::currAbbr ( ) const
virtualinherited

Reimplemented in CurrCluster.

◆ currSymbol()

QString CurrDisplay::currSymbol ( const int  pid)
staticinherited

◆ decimals()

virtual int CurrDisplay::decimals ( ) const
inlinevirtualinherited

◆ defaultLocalValue()

double CurrDisplay::defaultLocalValue ( ) const
inlineinherited

◆ effective()

virtual QDate CurrDisplay::effective ( ) const
inlinevirtualinherited

◆ effectiveChanged

void CurrDisplay::effectiveChanged ( const QDate &  )
signalinherited

◆ eventFilter()

bool TaxDisplay::eventFilter ( QObject obj,
QEvent *  event 
)
protectedvirtual

◆ fieldNameValue()

virtual QString CurrDisplay::fieldNameValue ( ) const
inlinevirtualinherited

◆ format()

virtual CurrDisplayFormats CurrDisplay::format ( ) const
inlinevirtualinherited

◆ id()

virtual Q_INVOKABLE int CurrDisplay::id ( ) const
inlinevirtualinherited

Reimplemented in CurrCluster.

◆ idChanged

void CurrDisplay::idChanged ( int  )
signalinherited

◆ invalidate()

void TaxDisplay::invalidate ( )

◆ isBase()

virtual bool CurrDisplay::isBase ( ) const
inlinevirtualinherited

Reimplemented in CurrCluster.

◆ isEmpty()

virtual bool CurrDisplay::isEmpty ( ) const
inlinevirtualinherited

◆ isEnabled()

virtual bool CurrDisplay::isEnabled ( ) const
inlinevirtualinherited

Reimplemented in CurrCluster.

◆ isZero()

bool CurrDisplay::isZero ( ) const
virtualinherited

◆ localControl()

virtual bool CurrDisplay::localControl ( ) const
inlinevirtualinherited

◆ localValue()

virtual double CurrDisplay::localValue ( ) const
inlinevirtualinherited

◆ mode()

int TaxDisplay::mode ( )

◆ noConversionRate

void CurrDisplay::noConversionRate ( )
signalinherited

◆ orderId()

Q_INVOKABLE int TaxDisplay::orderId ( )

◆ positionMenuLabel()

void TaxDisplay::positionMenuLabel ( )
protected

◆ reset

void CurrDisplay::reset ( )
slotinherited

◆ resizeEvent()

void TaxDisplay::resizeEvent ( QResizeEvent *  )
protectedvirtual

◆ save() [1/2]

void TaxDisplay::save ( )

◆ save [2/2]

void TaxDisplay::save ( bool  )
signal

◆ set()

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

◆ setBaseValue

void CurrDisplay::setBaseValue ( double  newValue)
slotinherited

◆ setDataWidgetMap

void CurrDisplay::setDataWidgetMap ( XDataWidgetMapper m)
protectedvirtualslotinherited

◆ setDefaultLocalValue

void CurrDisplay::setDefaultLocalValue ( double  p)
inlineslotinherited

◆ setEffective()

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

◆ setEnabled()

void CurrDisplay::setEnabled ( bool  B)
inlineinherited

◆ setFieldNameValue()

virtual void CurrDisplay::setFieldNameValue ( QString  p)
inlinevirtualinherited

◆ setFormat()

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

◆ setId

void CurrDisplay::setId ( int  curr_id)
slotinherited

◆ setLocalControl()

void CurrDisplay::setLocalControl ( bool  newValue)
inherited

◆ setLocalValue()

void CurrDisplay::setLocalValue ( double  newValue)
inherited

◆ setMode

void TaxDisplay::setMode ( int  mode)
slot

◆ setNA()

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

◆ setOrderId

void TaxDisplay::setOrderId ( int  id)
slot

◆ setPaletteForegroundColor()

void CurrDisplay::setPaletteForegroundColor ( const QColor &  newColor)
inherited

◆ setType

void TaxDisplay::setType ( QString  type)
slot

◆ sOpen

void TaxDisplay::sOpen ( )
slot

◆ sRecalculate

void TaxDisplay::sRecalculate ( )
slot

◆ sReformat

void CurrDisplay::sReformat ( ) const
protectedvirtualslotinherited

◆ sRefresh

void TaxDisplay::sRefresh ( )
slot

◆ sUpdate

void TaxDisplay::sUpdate ( QString  type,
int  orderId,
double  tax,
QString  error 
)
slot

◆ sUpdateMenu

void TaxDisplay::sUpdateMenu ( )
slot

◆ 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

◆ type()

Q_INVOKABLE QString TaxDisplay::type ( )

◆ 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

◆ _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

◆ _valueBase

double CurrDisplay::_valueBase
protectedinherited

◆ _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