kdeprint Library API Documentation

KPFilterPage Class Reference

Inheritance diagram for KPFilterPage:

Inheritance graph
[legend]
Collaboration diagram for KPFilterPage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Protected Slots

void slotAddClicked ()
void slotRemoveClicked ()
void slotUpClicked ()
void slotDownClicked ()
void slotConfigureClicked ()
void slotItemSelected (QListViewItem *)

Protected Member Functions

KXmlCommandcurrentFilter ()
void checkFilterChain ()
void updateInfo ()
QStringList activeList ()
void updateButton ()

Detailed Description

Definition at line 34 of file kpfilterpage.h.


Member Function Documentation

void KPFilterPage::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 291 of file kpfilterpage.cpp.

References checkFilterChain(), QDictIterator::current(), QDictIterator::currentKey(), KXmlCommand::description(), QDict::find(), QDict::insert(), KXmlCommandManager::loadCommand(), KXmlCommand::name(), QDict::remove(), KXmlCommandManager::self(), KXmlCommand::setOptions(), and QStringList::split().

void KPFilterPage::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 327 of file kpfilterpage.cpp.

References activeList(), QDict::find(), KXmlCommand::getOptions(), and QStringList::join().

bool KPFilterPage::isValid QString msg  )  [virtual]
 

Returns true if options selected in the page are valid (no conflict), false otherwise.

When returning false, msg should contain an error message explaining what is wrong in the selected options.

Parameters:
msg should contain an error message when returning false
Returns:
valid status

Reimplemented from KPrintDialogPage.

Definition at line 390 of file kpfilterpage.cpp.


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.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 9 08:05:52 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003