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

The XDocCopySetter gives the user a unified interface for telling the system how many copies of a particular document should be printed when it gets sent to a printer, what the watermark should be on the report, and whether the report should show prices or not. More...

#include <xdoccopysetter.h>

Inheritance diagram for XDocCopySetter:
QWidget Ui::XDocCopySetter Ui_XDocCopySetter

Properties

QString labelText
 
QString numCopiesMetric
 
QString showPriceMetric
 
QString watermarkMetric
 

Public Slots

virtual bool save ()
 
virtual void setLabelText (const QString text)
 
virtual void setNumCopies (const int numCopies)
 
virtual void setNumCopiesMetric (const QString metric)
 
virtual void setShowPriceMetric (const QString metric)
 
virtual void setWatermarkMetric (const QString metric)
 

Public Member Functions

 XDocCopySetter (QWidget *parent=0, const char *name=0)
 
 ~XDocCopySetter ()
 
virtual QString labelText () const
 
virtual Q_INVOKABLE int numCopies () const
 
virtual QString numCopiesMetric () const
 
void retranslateUi (QWidget *XDocCopySetter)
 
void retranslateUi (QWidget *XDocCopySetter)
 
void setupUi (QWidget *XDocCopySetter)
 
void setupUi (QWidget *XDocCopySetter)
 
virtual Q_INVOKABLE bool showCosts (const int row) const
 
virtual QString showPriceMetric () const
 
virtual Q_INVOKABLE QString watermark (const int row) const
 
virtual QString watermarkMetric () const
 

Public Attributes

QGroupBox_copiesGroup
 
QVBoxLayout * _copiesGroupLyt
 
QSpinBox_numOfCopies
 
QLabel_numOfCopiesLit
 
QHBoxLayout * _numOfCopiesLyt
 
XTreeWidget_watermarks
 
QGridLayout * _xDocCopySetterLyt
 
QSpacerItem * spacer11
 

Protected Slots

virtual void languageChange ()
 
virtual void sEditWatermark ()
 

Protected Attributes

QString _numCopiesMetric
 
QString _showPriceMetric
 
QString _watermarkMetric
 

Detailed Description

The XDocCopySetter gives the user a unified interface for telling the system how many copies of a particular document should be printed when it gets sent to a printer, what the watermark should be on the report, and whether the report should show prices or not.

See also
printInvoice

Property Documentation

◆ labelText

QString XDocCopySetter::labelText
readwrite

◆ numCopiesMetric

QString XDocCopySetter::numCopiesMetric
readwrite

◆ showPriceMetric

QString XDocCopySetter::showPriceMetric
readwrite

◆ watermarkMetric

QString XDocCopySetter::watermarkMetric
readwrite

Constructor & Destructor Documentation

◆ XDocCopySetter()

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

◆ ~XDocCopySetter()

XDocCopySetter::~XDocCopySetter ( )

Member Function Documentation

◆ labelText()

virtual QString XDocCopySetter::labelText ( ) const
virtual

◆ languageChange

void XDocCopySetter::languageChange ( )
protectedvirtualslot

◆ numCopies()

int XDocCopySetter::numCopies ( ) const
virtual

◆ numCopiesMetric()

virtual QString XDocCopySetter::numCopiesMetric ( ) const
virtual

◆ retranslateUi() [1/2]

void Ui_XDocCopySetter::retranslateUi ( QWidget XDocCopySetter)
inlineinherited

◆ retranslateUi() [2/2]

void Ui_XDocCopySetter::retranslateUi ( QWidget XDocCopySetter)
inlineinherited

◆ save

bool XDocCopySetter::save ( )
virtualslot

◆ sEditWatermark

void XDocCopySetter::sEditWatermark ( )
protectedvirtualslot

◆ setLabelText

void XDocCopySetter::setLabelText ( const QString  text)
virtualslot

◆ setNumCopies

void XDocCopySetter::setNumCopies ( const int  numCopies)
virtualslot

◆ setNumCopiesMetric

void XDocCopySetter::setNumCopiesMetric ( const QString  metric)
virtualslot

◆ setShowPriceMetric

void XDocCopySetter::setShowPriceMetric ( const QString  metric)
virtualslot

◆ setupUi() [1/2]

void Ui_XDocCopySetter::setupUi ( QWidget XDocCopySetter)
inlineinherited

◆ setupUi() [2/2]

void Ui_XDocCopySetter::setupUi ( QWidget XDocCopySetter)
inlineinherited

◆ setWatermarkMetric

void XDocCopySetter::setWatermarkMetric ( const QString  metric)
virtualslot

◆ showCosts()

bool XDocCopySetter::showCosts ( const int  row) const
virtual

◆ showPriceMetric()

virtual QString XDocCopySetter::showPriceMetric ( ) const
virtual

◆ watermark()

QString XDocCopySetter::watermark ( const int  row) const
virtual

◆ watermarkMetric()

virtual QString XDocCopySetter::watermarkMetric ( ) const
virtual

Member Data Documentation

◆ _copiesGroup

QGroupBox * Ui_XDocCopySetter::_copiesGroup
inherited

◆ _copiesGroupLyt

QVBoxLayout * Ui_XDocCopySetter::_copiesGroupLyt
inherited

◆ _numCopiesMetric

QString XDocCopySetter::_numCopiesMetric
protected

◆ _numOfCopies

QSpinBox * Ui_XDocCopySetter::_numOfCopies
inherited

◆ _numOfCopiesLit

QLabel * Ui_XDocCopySetter::_numOfCopiesLit
inherited

◆ _numOfCopiesLyt

QHBoxLayout * Ui_XDocCopySetter::_numOfCopiesLyt
inherited

◆ _showPriceMetric

QString XDocCopySetter::_showPriceMetric
protected

◆ _watermarkMetric

QString XDocCopySetter::_watermarkMetric
protected

◆ _watermarks

XTreeWidget * Ui_XDocCopySetter::_watermarks
inherited

◆ _xDocCopySetterLyt

QGridLayout * Ui_XDocCopySetter::_xDocCopySetterLyt
inherited

◆ spacer11

QSpacerItem * Ui_XDocCopySetter::spacer11
inherited

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