kdeprint Library API Documentation

KPGeneralPage Class Reference

Inheritance diagram for KPGeneralPage:

Inheritance graph
[legend]
Collaboration diagram for KPGeneralPage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Protected Slots

void slotOrientationChanged (int)
void slotDuplexChanged (int)
void slotNupChanged (int)

Protected Member Functions

void initialize ()

Protected Attributes

QComboBoxm_pagesize
QComboBoxm_papertype
QComboBoxm_inputslot
QComboBoxm_startbanner
QComboBoxm_endbanner
QButtonGroupm_orientbox
QButtonGroupm_duplexbox
QButtonGroupm_nupbox
QGroupBoxm_bannerbox
QLabelm_orientpix
QLabelm_duplexpix
QLabelm_nuppix

Detailed Description

Definition at line 31 of file kpgeneralpage.h.


Member Function Documentation

void KPGeneralPage::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 478 of file kpgeneralpage.cpp.

References KPrintDialogPage::driver(), DrGroup::findOption(), DrBase::get(), QString::isEmpty(), m_duplexbox, m_endbanner, m_inputslot, m_nupbox, m_orientbox, m_pagesize, m_papertype, m_startbanner, QButtonGroup::setButton(), QComboBox::setCurrentItem(), slotDuplexChanged(), slotNupChanged(), slotOrientationChanged(), QStringList::split(), and QString::toInt().

void KPGeneralPage::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 612 of file kpgeneralpage.cpp.

References QString::arg(), QPtrList::at(), DrListOption::choices(), QButtonGroup::count(), QComboBox::currentItem(), QComboBox::currentText(), KPrintDialogPage::driver(), DrGroup::findOption(), DrBase::get(), QButtonGroup::id(), m_bannerbox, m_duplexbox, m_endbanner, m_inputslot, m_nupbox, m_orientbox, m_pagesize, m_papertype, m_startbanner, DrBase::name(), QString::number(), KPrintDialogPage::printer(), QButtonGroup::selected(), 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:12 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003