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() );
104 void selected(
const TQString &uid );
109 void executed(
const TQString &uid );
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;
void startDrag()
Called whenever the user attempts to start a drag in the view.
void sortFieldChanged()
Emitted whenever the sort field of a view has changed.
Filter for AddressBook related objects (Addressees)
void executed(const TQString &uid)
Emitted whenever the user activates an entry in the view.
void dropped(TQDropEvent *)
Called whenever the user drops something in the active view.
Base class for all views in kaddressbook.
void selected(const TQString &uid)
Emitted whenever the user selects an entry in the view.
void viewFieldsChanged()
Emitted whenever the view fields changed.
The view manager manages the views and everything related to them.
void urlDropped(const KURL &)
Emitted whenever a url is dragged on a view.
void modified()
Emitted whenever the address book is modified in some way.