kdeprint Library API Documentation

KPQtPage Class Reference

Inheritance diagram for KPQtPage:

Inheritance graph
[legend]
Collaboration diagram for KPQtPage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KPQtPage (QWidget *parent=0, const char *name=0)
 KPQtPage (DrMain *driver, QWidget *parent=0, const char *name=0)
 ~KPQtPage ()
void setOptions (const QMap< QString, QString > &opts)
void getOptions (QMap< QString, QString > &opts, bool incldef=false)

Protected Slots

void slotOrientationChanged (int)
void slotColorModeChanged (int)
void slotNupChanged (int)

Protected Member Functions

void init ()

Protected Attributes

QButtonGroupm_orientbox
QButtonGroupm_colorbox
QButtonGroupm_nupbox
QComboBoxm_pagesize
QLabelm_orientpix
QLabelm_colorpix
QLabelm_nuppix

Detailed Description

Definition at line 32 of file kpqtpage.h.


Member Function Documentation

void KPQtPage::setOptions const QMap< QString, QString > &  opts  )  [virtual]
 

This function is called to update the current page with the options contained in opts.

Reimplement it in subclasses.

Parameters:
opts the structure containing the options to update the page

Reimplemented from KPrintDialogPage.

Definition at line 249 of file kpqtpage.cpp.

References DrListOption::choices(), KPrintDialogPage::driver(), QWidget::find(), DrListOption::findChoice(), DrGroup::findOption(), QPtrList::findRef(), QString::isEmpty(), m_colorbox, m_nupbox, m_orientbox, m_pagesize, QButtonGroup::setButton(), QComboBox::setCurrentItem(), slotColorModeChanged(), slotNupChanged(), and slotOrientationChanged().

void KPQtPage::getOptions QMap< QString, QString > &  opts,
bool  incldef = false
[virtual]
 

This function is called to fill the structure opts with the selected options from this dialog page.

If incldef is true, include also options with default values, otherwise discard them. Reimplement this function in subclasses.

Parameters:
opts the option set to fill
incldef if true, include also options with default values
See also:
setOptions()

Reimplemented from KPrintDialogPage.

Definition at line 293 of file kpqtpage.cpp.

References QPtrList::at(), DrListOption::choices(), QComboBox::currentItem(), KPrintDialogPage::driver(), QString::find(), DrGroup::findOption(), DrBase::get(), QButtonGroup::id(), KXmlCommandManager::insertCommand(), QStringList::join(), m_colorbox, m_nupbox, m_orientbox, m_pagesize, DrBase::name(), QString::number(), QMap::remove(), QButtonGroup::selected(), KXmlCommandManager::self(), and QStringList::split().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdeprint Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Jul 20 12:48:19 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003