ViewWrapper Class Reference
The ViewWrapper class is a lightweight class that will be instantiated for each view type. More...
#include <viewwrapper.h>
Public Member Functions | |
virtual QString | type () const =0 |
virtual QString | description () const =0 |
virtual KAddressBookView * | createView (KABC::AddressBook *doc, QWidget *parent, const char *name)=0 |
Creates a view of the given type and returns the view. | |
virtual ConfigureViewDialog * | createConfigureViewDialog (const QString &viewName, KABC::AddressBook *doc, QWidget *parent, const char *name) |
Creates a config dialog for the view type. |
Detailed Description
The ViewWrapper class is a lightweight class that will be instantiated for each view type.It's job it to provide meta data about the view type as well as some utility functions for creating the actual view object and its config dialog.
A view implementer will need to subclass from this class to fill in the createView() and createViewConfigDialog() methods.
Definition at line 43 of file viewwrapper.h.
Member Function Documentation
|
|
|
|
|
Creates a view of the given type and returns the view. The caller is responsible for managing the memory allocated by the view. Referenced by ViewManager::setActiveView(). |
|
Creates a config dialog for the view type. The default implementation will return a ViewConfigDialog. This default dialog will allow the user to set the visible fields only. If you need more config options (as most views will), this method can be overloaded to return your sublcass of ViewConfigDialog. If this method is over loaded the base classes method should not be called. Definition at line 37 of file viewwrapper.cpp. Referenced by ViewManager::modifyView(). |
The documentation for this class was generated from the following files: