kaddressbook
ViewFactory Class Reference
List of all members.Detailed Description
Definition at line 275 of file kaddressbookview.h.
Public Member Functions | |
virtual KAddressBookView * | view (KAB::Core *core, QWidget *parent, const char *name=0)=0 |
virtual QString | type () const=0 |
virtual QString | description () const=0 |
virtual ViewConfigureWidget * | configureWidget (KABC::AddressBook *ab, QWidget *parent, const char *name=0) |
Protected Member Functions | |
virtual QObject * | createObject (QObject *, const char *, const char *, const QStringList &) |
Member Function Documentation
virtual QString ViewFactory::type | ( | ) | const [pure virtual] |
- Returns:
- The type of the view.
This is normally a small one word string (ie: Table, Icon, Tree, etc).
virtual QString ViewFactory::description | ( | ) | const [pure virtual] |
- Returns:
- The description of the view.
This should be a 3 to 4 line string (don't actually use return characters in the string) describing the features offered by the view.
ViewConfigureWidget * ViewFactory::configureWidget | ( | KABC::AddressBook * | ab, | |
QWidget * | parent, | |||
const char * | name = 0 | |||
) | [virtual] |
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 196 of file kaddressbookview.cpp.
The documentation for this class was generated from the following files: