#include <PrintParametersInt.h>
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 |
QGpGuiTools::PrintParametersInt::PrintParametersInt | ( | QObject * | parent = 0 | ) |
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; }
QString QGpGuiTools::PrintParametersInt::colorMode | ( | ) | const |
QString QGpGuiTools::PrintParametersInt::colorModeHelp | ( | ) | const [inline] |
{return "GrayScale, Color";}
QString QGpGuiTools::PrintParametersInt::currentSettings | ( | ) | const |
int QGpGuiTools::PrintParametersInt::fromPage | ( | ) | const [inline] |
int QGpGuiTools::PrintParametersInt::numCopies | ( | ) | const [inline] |
References _numCopies.
{return _numCopies;}
QString QGpGuiTools::PrintParametersInt::orientation | ( | ) | const |
QString QGpGuiTools::PrintParametersInt::orientationHelp | ( | ) | const [inline] |
{return "Portrait, Landscape";}
QString QGpGuiTools::PrintParametersInt::pageOrder | ( | ) | const |
QString QGpGuiTools::PrintParametersInt::pageOrderHelp | ( | ) | const [inline] |
{return "FirstPageFirst, LastPageFirst";}
QString QGpGuiTools::PrintParametersInt::pageSize | ( | ) | const |
QString QGpGuiTools::PrintParametersInt::pageSizeHelp | ( | ) | const [inline] |
{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";}
void QGpGuiTools::PrintParametersInt::setColorMode | ( | QString | val | ) |
References _colorMode, and TRACE.
{ TRACE; val=val.toLower(); if(val=="color") _colorMode=QPrinter::Color; else if(val=="grayscale") _colorMode=QPrinter::GrayScale; }
void QGpGuiTools::PrintParametersInt::setFromPage | ( | int | val | ) | [inline] |
void QGpGuiTools::PrintParametersInt::setNumCopies | ( | int | val | ) | [inline] |
References _numCopies.
{if(val>0) _numCopies=val;}
void QGpGuiTools::PrintParametersInt::setOrientation | ( | QString | val | ) |
References _orientation, and TRACE.
{ TRACE; val=val.toLower(); if(val=="portrait") _orientation=QPrinter::Portrait; else if(val=="landscape") _orientation=QPrinter::Landscape; }
void QGpGuiTools::PrintParametersInt::setPageOrder | ( | QString | val | ) |
References _pageOrder, and TRACE.
{ TRACE; val=val.toLower(); if(val=="firstpagefirst") _pageOrder=QPrinter::FirstPageFirst; else if(val=="lastpagefirst") _pageOrder=QPrinter::LastPageFirst; }
void QGpGuiTools::PrintParametersInt::setPageSize | ( | QString | val | ) |
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] |
int QGpGuiTools::PrintParametersInt::toPage | ( | ) | const [inline] |
friend class QSA [friend] |
QPrinter::ColorMode QGpGuiTools::PrintParametersInt::_colorMode [protected] |
Referenced by PrintParametersInt(), and setColorMode().
int QGpGuiTools::PrintParametersInt::_from [protected] |
Referenced by fromPage(), PrintParametersInt(), setFromPage(), and setToPage().
int QGpGuiTools::PrintParametersInt::_numCopies [protected] |
Referenced by numCopies(), PrintParametersInt(), and setNumCopies().
QPrinter::Orientation QGpGuiTools::PrintParametersInt::_orientation [protected] |
Referenced by PrintParametersInt(), and setOrientation().
QPrinter::PageOrder QGpGuiTools::PrintParametersInt::_pageOrder [protected] |
Referenced by setPageOrder().
QPrinter::PageSize QGpGuiTools::PrintParametersInt::_pageSize [protected] |
Referenced by PrintParametersInt(), and setPageSize().
int QGpGuiTools::PrintParametersInt::_to [protected] |
Referenced by PrintParametersInt(), setFromPage(), setToPage(), and toPage().
QString QGpGuiTools::PrintParametersInt::colorMode [read, write] |
QString QGpGuiTools::PrintParametersInt::colorModeHelp [read] |
QString QGpGuiTools::PrintParametersInt::currentSettings [read] |
int QGpGuiTools::PrintParametersInt::fromPage [read, write] |
int QGpGuiTools::PrintParametersInt::numCopies [read, write] |
QString QGpGuiTools::PrintParametersInt::orientation [read, write] |
QString QGpGuiTools::PrintParametersInt::orientationHelp [read] |
QString QGpGuiTools::PrintParametersInt::pageOrder [read, write] |
QString QGpGuiTools::PrintParametersInt::pageOrderHelp [read] |
QString QGpGuiTools::PrintParametersInt::pageSize [read, write] |
QString QGpGuiTools::PrintParametersInt::pageSizeHelp [read] |
int QGpGuiTools::PrintParametersInt::toPage [read, write] |