kaddressbook Library API Documentation

ViewConfigureWidget Class Reference

This widget is the base class for all view configuration widgets. More...

#include <viewconfigurewidget.h>

Inheritance diagram for ViewConfigureWidget:

ConfigureCardViewWidget ConfigureTableViewWidget List of all members.

Public Methods

 ViewConfigureWidget (KABC::AddressBook *ab, QWidget *parent, const char *name=0)
virtual ~ViewConfigureWidget ()
virtual void restoreSettings (KConfig *config)
virtual void saveSettings (KConfig *config)
QVBoxaddPage (const QString &item, const QString &header=QString::null, const QPixmap &pixmap=QPixmap())

Detailed Description

This widget is the base class for all view configuration widgets.

The author of a view may wish to inherit from this widget and add config pages that add custom config options. The default implementation of this widget is to show a page with the select fields widget. For simple views this may be sufficient.

Definition at line 48 of file viewconfigurewidget.h.


Member Function Documentation

void ViewConfigureWidget::restoreSettings KConfig *    config [virtual]
 

Reads the configuration from the config object and sets the values in the GUI.

If this method is overloaded, be sure to call the base class's method.

Do not change the group of the config object in this method.

Reimplemented in ConfigureCardViewWidget, and ConfigureTableViewWidget.

Definition at line 69 of file viewconfigurewidget.cpp.

Referenced by ConfigureTableViewWidget::restoreSettings(), and ConfigureCardViewWidget::restoreSettings().

void ViewConfigureWidget::saveSettings KConfig *    config [virtual]
 

Writes the configuration from the GUI to the config object.

If this method is overloaded, be sure to call the base class's method.

Do not change the group of the config object in this method.

Reimplemented in ConfigureCardViewWidget, and ConfigureTableViewWidget.

Definition at line 75 of file viewconfigurewidget.cpp.

Referenced by ConfigureTableViewWidget::saveSettings(), and ConfigureCardViewWidget::saveSettings().

QVBox * ViewConfigureWidget::addPage const QString   item,
const QString   header = QString::null,
const QPixmap   pixmap = QPixmap()
 

Use this method to add new pages to the widget.

Definition at line 81 of file viewconfigurewidget.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:54 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003