29 #include <kaddressbookview.h>
35 class TDESelectAction;
39 namespace KAB {
class Core; }
40 namespace TDEABC {
class AddressBook; }
56 ViewManager( KAB::Core *core, TQWidget *parent,
const char *name = 0 );
59 void restoreSettings();
64 TQStringList selectedUids()
const;
65 TQStringList selectedEmails()
const;
66 TDEABC::Addressee::List selectedAddressees()
const;
70 TDEABC::Field *currentSortField()
const;
71 TDEABC::Field::List viewFields()
const;
74 void setSelected(
const TQString &uid = TQString(),
bool selected =
true );
75 void setFirstSelected(
bool selected =
true );
77 void refreshView(
const TQString &uid = TQString() );
132 void setActiveView(
const TQString &name );
133 void setActiveFilter(
int index );
134 void configureFilters();
137 void createViewFactories();
138 TQStringList filterNames()
const;
139 int filterPosition(
const TQString &name )
const;
140 TQStringList viewNames()
const;
141 int viewPosition(
const TQString &name )
const;
148 Filter::List mFilterList;
150 TQDict<KAddressBookView> mViewDict;
151 TQDict<ViewFactory> mViewFactoryDict;
152 TQStringList mViewNameList;
154 TQWidgetStack *mViewWidgetStack;
157 TDEAction *mActionDeleteView;
158 TDESelectAction *mActionSelectView;
Filter for AddressBook related objects (Addressees)
Base class for all views in kaddressbook.
The view manager manages the views and everything related to them.
void viewFieldsChanged()
Emitted whenever the view fields changed.
void startDrag()
Called whenever the user attempts to start a drag in the view.
void urlDropped(const KURL &)
Emitted whenever a url is dragged on a view.
void dropped(TQDropEvent *)
Called whenever the user drops something in the active view.
void modified()
Emitted whenever the address book is modified in some way.
void selected(const TQString &uid)
Emitted whenever the user selects an entry in the view.
void sortFieldChanged()
Emitted whenever the sort field of a view has changed.
void executed(const TQString &uid)
Emitted whenever the user activates an entry in the view.