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() );
91 void dropped( TQDropEvent* );
104 void selected(
const TQString &uid );
109 void executed(
const TQString &uid );
119 void urlDropped(
const KURL& );
124 void sortFieldChanged();
129 void viewFieldsChanged();
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.