20#ifndef TDECMODULECONTAINER_H
21#define TDECMODULECONTAINER_H
23#include <tqvaluelist.h>
25#include <tqstringlist.h>
27#include <tdecmodule.h>
28#include <tdecmoduleloader.h>
87 TDECModuleContainer( TQWidget *parent,
const char* name,
const TQString& mods = TQString() );
96 void addModule(
const TQString& module );
137 typedef TQValueList<TDECModuleProxy*> ModuleList;
155 void tabSwitched( TQWidget * module );
173 class TDECModuleContainerPrivate;
174 TDECModuleContainerPrivate *d;
194#define KCMODULECONTAINER( modules, factoryName ) \
197 TDECModule *create_## factoryName(TQWidget *parent, const char *name) \
199 return new TDECModuleContainer( parent, name, TQString( modules ) ); \
202 bool test_## factoryName() \
204 TQStringList modList = TQStringList::split( ",", TQString(modules).remove( " " )); \
205 for ( TQStringList::Iterator it = modList.begin(); it != modList.end(); ++it ) \
207 if ( TDECModuleLoader::testModule( *it ) ) \
TDECModuleContainer is a convenience class encapsulating several TDECModules.
ModuleList changedModules
A list containing TDECModuleProxy objects which have changed and must be saved.
ModuleList allModules
A list of all modules which are encapsulated.
Encapsulates a TDECModule for embedding.
virtual TQString handbookSection() const