kdeprint Library API Documentation

KPImagePage Class Reference

Inheritance diagram for KPImagePage:

KPrintDialogPage QWidget List of all members.

Public Member Functions

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

Protected Slots

void slotSizeTypeChanged (int)
void slotPositionChanged ()
void slotImageSettingsChanged ()
void slotDefaultClicked ()

Detailed Description

Definition at line 31 of file kpimagepage.h.


Member Function Documentation

void KPImagePage::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 389 of file kpimagepage.cpp.

References QString::latin1(), QWidget::pos(), ImagePosition::position(), QButtonGroup::setButton(), QComboBox::setCurrentItem(), ImagePosition::setPosition(), slotSizeTypeChanged(), and QString::toInt().

void KPImagePage::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 423 of file kpimagepage.cpp.

References QComboBox::currentItem(), QString::isEmpty(), QString::number(), ImagePosition::position(), and ImagePosition::positionString().


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 Wed Feb 8 08:03:45 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003