kdeprint Library API Documentation

KPCopiesPage Class Reference

Inheritance diagram for KPCopiesPage:

KPrintDialogPage KPReloadObject QWidget List of all members.

Public Member Functions

 KPCopiesPage (KPrinter *prt=0, QWidget *parent=0, const char *name=0)
 ~KPCopiesPage ()
void setOptions (const QMap< QString, QString > &opts)
void getOptions (QMap< QString, QString > &opts, bool incldef=false)
void initialize (bool usePlugin=true)

Protected Slots

void slotRangeEntered ()
void slotCollateClicked ()

Protected Member Functions

void reload ()

Protected Attributes

QRadioButtonm_all
QRadioButtonm_current
QRadioButtonm_range
QLineEditm_rangeedit
QComboBoxm_pageset
QCheckBoxm_collate
QCheckBoxm_order
QSpinBoxm_copies
QLabelm_collatepix
bool m_useplugin
KPrinterm_printer

Detailed Description

Definition at line 34 of file kpcopiespage.h.


Member Function Documentation

void KPCopiesPage::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 296 of file kpcopiespage.cpp.

References QString::isEmpty(), m_all, m_collate, m_copies, m_current, m_order, m_pageset, m_range, m_rangeedit, QRadioButton::setChecked(), QCheckBox::setChecked(), QComboBox::setCurrentItem(), QLineEdit::setText(), QSpinBox::setValue(), slotCollateClicked(), and QString::toInt().

void KPCopiesPage::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 329 of file kpcopiespage.cpp.

References QComboBox::currentItem(), QString::fromLatin1(), QRadioButton::isChecked(), QCheckBox::isChecked(), m_collate, m_copies, m_current, m_order, m_pageset, m_range, m_rangeedit, QString::number(), QLineEdit::text(), and QSpinBox::text().


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 Mon Jun 12 11:41:36 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003