TabPrinter Class Reference
#include <tabprinter.h>

Public Member Functions | |
| TabPrinter (QWidget *parent=0, const char *name=0) | |
| ~TabPrinter () | |
| void | restoreDefaults (struct ApplicationPrefs *prefsData) |
| void | storeValues () |
| void | unitChange (QString unit, int docUnitIx, double invUnitConversion) |
Private Slots | |
| void | selOtherComm () |
Private Attributes | |
| int | docUnitIndex |
| double | unitRatio |
| PrefsContext * | prefs |
Detailed Description
Definition at line 15 of file tabprinter.h.
Constructor & Destructor Documentation
| TabPrinter::TabPrinter | ( | QWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
| TabPrinter::~TabPrinter | ( | ) | [inline] |
Definition at line 21 of file tabprinter.h.
Member Function Documentation
| void TabPrinter::restoreDefaults | ( | struct ApplicationPrefs * | prefsData | ) |
Definition at line 43 of file tabprinter.cpp.
References ApplicationPrefs::docUnitIndex, docUnitIndex, PrefsContext::get(), PrefsContext::getBool(), PrefsFile::getContext(), PrefsContext::getDouble(), PrefsContext::getInt(), PrinterUtil::getPrinterNames(), PrefsManager::instance(), PrinterUtil::isPostscriptPrinter(), prefs, PrefsManager::prefsFile, tr(), unitGetPrecisionFromIndex(), unitGetRatioFromIndex(), unitGetSuffixFromIndex(), and unitRatio.
Referenced by Preferences::setupGui().
| void TabPrinter::storeValues | ( | ) |
Definition at line 131 of file tabprinter.cpp.
References prefs, PrefsContext::set(), tr(), and unitRatio.
Referenced by Preferences::updatePreferences().
| void TabPrinter::unitChange | ( | QString | unit, | |
| int | docUnitIx, | |||
| double | invUnitConversion | |||
| ) |
Definition at line 179 of file tabprinter.cpp.
References docUnitIndex, and unitGetPrecisionFromIndex().
Referenced by Preferences::unitChange().
| void TabPrinter::selOtherComm | ( | ) | [private, slot] |
Member Data Documentation
int TabPrinter::docUnitIndex [private] |
double TabPrinter::unitRatio [private] |
PrefsContext* TabPrinter::prefs [private] |
The documentation for this class was generated from the following files:
