All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Protected Attributes | Properties | Friends
QGpGuiTools::PrintParametersInt Class Reference

#include <PrintParametersInt.h>

List of all members.

Public Member Functions

QString colorMode () const
QString colorModeHelp () const
QString currentSettings () const
int fromPage () const
int numCopies () const
QString orientation () const
QString orientationHelp () const
QString pageOrder () const
QString pageOrderHelp () const
QString pageSize () const
QString pageSizeHelp () const
 PrintParametersInt (QObject *parent=0)
void setColorMode (QString val)
void setFromPage (int val)
void setNumCopies (int val)
void setOrientation (QString val)
void setPageOrder (QString val)
void setPageSize (QString val)
void setToPage (int val)
int toPage () const

Protected Attributes

QPrinter::ColorMode _colorMode
int _from
int _numCopies
QPrinter::Orientation _orientation
QPrinter::PageOrder _pageOrder
QPrinter::PageSize _pageSize
int _to

Properties

QString colorMode
QString colorModeHelp
QString currentSettings
int fromPage
int numCopies
QString orientation
QString orientationHelp
QString pageOrder
QString pageOrderHelp
QString pageSize
QString pageSizeHelp
int toPage

Friends

class QSA

Constructor & Destructor Documentation

References _colorMode, _from, _numCopies, _orientation, _pageSize, _to, and TRACE.

 : QObject(parent)
{
  TRACE;
  _orientation=QPrinter::Portrait;
  _pageSize=QPrinter::A4;
  _colorMode=QPrinter::Color;
  _from=0;
  _to=0;
  _numCopies=1;
}

Member Function Documentation

{return "GrayScale, Color";}

References _from.

{return _from;}

References _numCopies.

{return _numCopies;}
{return "Portrait, Landscape";}
{return "FirstPageFirst, LastPageFirst";}
                               {return "A4, B5, Letter, Legal, Executive, A0, A1, A2, A3, A5, A6, "
                                "A7, A8, A9, B0, B1, B10, B2, B3, B4, B6, B7, B8, B9, C5E, "
                                "Comm10E, DLE, Folio, Ledger, Tabloid,Custom";}

References _colorMode, and TRACE.

{
  TRACE;
  val=val.toLower();
  if(val=="color") _colorMode=QPrinter::Color;
  else if(val=="grayscale") _colorMode=QPrinter::GrayScale;
}

References _from, and _to.

{if(val>_to) {_from=_to;_to=val;} else _from=val;}

References _numCopies.

{if(val>0) _numCopies=val;}

References _orientation, and TRACE.

{
  TRACE;
  val=val.toLower();
  if(val=="portrait") _orientation=QPrinter::Portrait;
  else if(val=="landscape") _orientation=QPrinter::Landscape;
}

References _pageOrder, and TRACE.

{
  TRACE;
  val=val.toLower();
  if(val=="firstpagefirst") _pageOrder=QPrinter::FirstPageFirst;
  else if(val=="lastpagefirst") _pageOrder=QPrinter::LastPageFirst;
}

References _pageSize, and TRACE.

{
  TRACE;
  val=val.toLower();
  if(val=="a4") _pageSize=QPrinter::A4;
  else if(val=="b5") _pageSize=QPrinter::B5;
  else if(val=="letter") _pageSize=QPrinter::Letter;
  else if(val=="legal") _pageSize=QPrinter::Legal;
  else if(val=="executive") _pageSize=QPrinter::Executive;
  else if(val=="a1") _pageSize=QPrinter::A1;
  else if(val=="a2") _pageSize=QPrinter::A2;
  else if(val=="a3") _pageSize=QPrinter::A3;
  else if(val=="a5") _pageSize=QPrinter::A5;
}
void QGpGuiTools::PrintParametersInt::setToPage ( int  val) [inline]

References _from, and _to.

{if(val<_from) {_to=_from;_from=val;} else _to=val;}

References _to.

{return _to;}

Friends And Related Function Documentation

friend class QSA [friend]

Member Data Documentation

QPrinter::ColorMode QGpGuiTools::PrintParametersInt::_colorMode [protected]

Referenced by PrintParametersInt(), and setColorMode().

QPrinter::Orientation QGpGuiTools::PrintParametersInt::_orientation [protected]
QPrinter::PageOrder QGpGuiTools::PrintParametersInt::_pageOrder [protected]

Referenced by setPageOrder().

QPrinter::PageSize QGpGuiTools::PrintParametersInt::_pageSize [protected]

Referenced by PrintParametersInt(), and setPageSize().


Property Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines