20 #ifndef KCMODULECONTAINER_H 21 #define KCMODULECONTAINER_H 23 #include <tqvaluelist.h> 25 #include <tqstringlist.h> 28 #include <kcmoduleloader.h> 68 KCModuleContainer( TQWidget* parent,
const char* name,
const TQStringList& mods );
87 KCModuleContainer( TQWidget *parent,
const char* name,
const TQString& mods = TQString() );
96 void addModule(
const TQString& module );
131 typedef TQValueList<KCModuleProxy*> ModuleList;
149 void tabSwitched( TQWidget * module );
167 class KCModuleContainerPrivate;
168 KCModuleContainerPrivate *d;
188 #define KCMODULECONTAINER( modules, factoryName ) \ 191 KCModule *create_## factoryName(TQWidget *parent, const char *name) \ 193 return new KCModuleContainer( parent, name, TQString( modules ) ); \ 196 bool test_## factoryName() \ 198 TQStringList modList = TQStringList::split( ",", TQString(modules).remove( " " )); \ 199 for ( TQStringList::Iterator it = modList.begin(); it != modList.end(); ++it ) \ 200 if ( KCModuleLoader::testModule( *it ) ) \ 206 #endif // KCMODULECONTAINER_H ModuleList changedModules
A list containing KCModuleProxy objects which have changed and must be saved.
KCModuleContainer is a convenience class encapsulating several KCModules.
Encapsulates a KCModule for embedding.
ModuleList allModules
A list of all modules which are encapsulated.