kdeprint Library API Documentation

KPTagsPage Class Reference

Inheritance diagram for KPTagsPage:

Inheritance graph
[legend]
Collaboration diagram for KPTagsPage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Definition at line 27 of file kptagspage.h.


Member Function Documentation

void KPTagsPage::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 143 of file kptagspage.cpp.

References QString::isEmpty(), QString::prepend(), and QTable::text().

void KPTagsPage::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 122 of file kptagspage.cpp.

References QMap::begin(), QMap::end(), QTable::numRows(), QString::replace(), and QTable::setText().

bool KPTagsPage::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 105 of file kptagspage.cpp.

References QString::arg(), QString::find(), QString::isEmpty(), and QTable::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 Thu Sep 15 11:03:22 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003