tableviewwrapper.h
00001 #ifndef TABLEVIEWWRAPPER_H
00002 #define TABLEVIEWWRAPPER_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <qstring.h>
00028 #include <klocale.h>
00029 #include "kaddressbooktableview.h"
00030 #include "configuretableviewdialog.h"
00031 #include "viewwrapper.h"
00032
00033 namespace KABC { class AddressBook; }
00034
00035 class TableViewWrapper : public ViewWrapper
00036 {
00037 public:
00038 TableViewWrapper() : ViewWrapper() {}
00039 virtual ~TableViewWrapper() {}
00040
00041 virtual QString type() const { return "Table"; };
00042
00043 virtual QString description() const
00044 {
00045
00046 QString desc = i18n("A listing of contacts in a table. Each cell of "
00047 "the table holds a field of the contact.");
00048
00049 return desc;
00050 }
00051
00052 virtual KAddressBookView *createView(KABC::AddressBook *doc,
00053 QWidget *parent,
00054 const char *name)
00055 {
00056 return new KAddressBookTableView(doc, parent, name);
00057 }
00058
00059 virtual ConfigureViewDialog *createConfigureViewDialog(
00060 const QString &viewName,
00061 KABC::AddressBook *doc,
00062 QWidget *parent,
00063 const char *name)
00064 {
00065 return new ConfigureTableViewDialog(viewName, doc, parent, name);
00066 }
00067
00068 };
00069
00070 #endif
This file is part of the documentation for kdelibs Version 3.1.5.