• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeutils
 

tdeutils

Classes | Defines
KControl module classes

Classes

class  KCMultiDialog
 A method that offers a KDialogBase containing arbitrary KControl Modules. More...
class  TDECModuleContainer
 TDECModuleContainer is a convenience class encapsulating several TDECModules. More...
class  TDECModuleInfo
 A class that provides information about a TDECModule. More...
class  TDECModuleLoader
 Loads a KControl Module. More...
class  TDECModuleProxy
 Encapsulates a TDECModule for embedding. More...
class  TDECModuleProxyIface
 DCOP Interface for TDECModule. More...
class  TDECModuleProxyRootDispatcher
 DCOP interface for communicating with the real module running in root mode. More...

Defines

#define KCMODULECONTAINER(modules, factoryName)

Detailed Description

Thwse classes provide the KControl module API.


Define Documentation

#define KCMODULECONTAINER (   modules,
  factoryName 
)
Value:
extern "C" \
{ \
    TDECModule *create_## factoryName(TQWidget *parent, const char *name) \
    { \
        return new TDECModuleContainer( parent, name, TQString( modules ) ); \
    } \
    \
    bool test_## factoryName() \
    { \
        TQStringList modList = TQStringList::split( ",", TQString(modules).remove( " " )); \
        for ( TQStringList::Iterator it = modList.begin(); it != modList.end(); ++it ) \
            if ( TDECModuleLoader::testModule( *it ) ) \
                return true; \
        return false; \
    } \
}

This macro creates an factory declaration which when run creates an TDECModule with specified modules.

For example:

 KCMODULECONTAINER( "kcm_fonts, kcm_keyboard,kcm_fonts", misc_modules)

would create a TDECModule with three tabs, each containing one of the specified KCMs. Each use of the macro must be accompanied by a desktop file where the factory name equals the second argument in the macro(in this example, misc_modules).
The module container takes care of testing the contained modules when being shown, as well as when the module itself is asked whether it should be shown.

Parameters:
modulesthe modules to put in the container
factoryNamewhat factory name the module should have

Definition at line 194 of file tdecmodulecontainer.h.

tdeutils

Skip menu "tdeutils"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeutils

Skip menu "tdeutils"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeutils by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.