24 #ifndef EXTENSIONMANAGER_H
25 #define EXTENSIONMANAGER_H
27 #include "extensionwidget.h"
31 #include <tqptrlist.h>
32 #include <tqstringlist.h>
36 class TDEActionCollection;
46 typedef TQValueList<ExtensionData> List;
48 TDEToggleAction* action;
49 KAB::ExtensionWidget *widget;
53 bool isDetailsExtension;
56 class ExtensionManager : public TQObject
62 ExtensionManager( TQWidget *extensionBar, TQWidgetStack *detailsStack, KAB::Core *core, TQObject *parent, const char *name = 0 );
68 void restoreSettings();
84 bool isQuickEditVisible() const;
86 TQWidget *activeDetailsWidget() const;
89 void setSelectionChanged();
94 void detailsWidgetActivated( TQWidget* widget );
95 void detailsWidgetDeactivated( TQWidget* widget );
96 void modified( const TDEABC::Addressee::List& );
97 void deleted( const TQStringList& );
100 void activationToggled( const TQString &extid );
103 void createExtensionWidgets();
104 void setExtensionActive( const TQString &extid, bool active );
107 TQWidget *mExtensionBar;
109 TQMap<TQString, ExtensionData> mExtensionMap;
110 TQStringList mActiveExtensions;
111 TQSignalMapper *mMapper;
112 TQPtrList<TDEAction> mActionList;
113 TDEActionCollection *mActionCollection;
114 TQSplitter *mSplitter;
115 TQWidgetStack *mDetailsStack;
116 TQWidget *mActiveDetailsWidget;
|