Difference between revisions of "Control Center Modules (KDE3 Architecture)"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
imported>Eliddell
(Created page with "== Control center modules == The KDE control center is a modular application. It acts as a container for "Control center modules". Modules are implemented as dynamically loa...")
 
(Updated article (class ref link, class names))
Line 1: Line 1:
  +
{{Applicable to TDE}}
== Control center modules ==
 
   
  +
The KDE control center is a modular application. It acts
+
The '''Trinity Control Center''' is a modular application. It acts
as a container for "Control center modules". Modules are implemented
+
as a container for "Control Center modules". Modules are implemented
 
as dynamically loadable libraries.
 
as dynamically loadable libraries.
   
In order to write a control center module, inherit the class KCModule
+
In order to write a control center module, inherit the class TDECModule
from the libkdeui library. This class in turn inherits QWidget.
+
from the libtdeui library. This class in turn inherits TQWidget.
 
Basically, you only have to reimplement some methods to load and
 
Basically, you only have to reimplement some methods to load and
 
save the configuration of the items that are configured in your
 
save the configuration of the items that are configured in your
 
module. In order to notify the control center about a new module,
 
module. In order to notify the control center about a new module,
 
it has to install a [http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.html .desktop file] in the
 
it has to install a [http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.html .desktop file] in the
directory <tt>applnk/Settings</tt> in the KDE directory hierarchy.
+
directory <tt>applnk/Settings</tt> in the TDE directory hierarchy.
   
 
Further information is available in the
 
Further information is available in the
[http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKCModule.html KCModule]
+
[http://trinitydesktop.org/docs/trinity/tdelibs/tdeui/html/classTDECModule.html TDECModule]
 
class reference.
 
class reference.
   

Revision as of 19:42, 22 August 2021

TDE Logo.png
Information on this page is applicable to TDE
This page contains archived KDE 3.x content from various sources which is directly applicable to (or has been updated for) the Trinity Desktop Environment.


The Trinity Control Center is a modular application. It acts as a container for "Control Center modules". Modules are implemented as dynamically loadable libraries.

In order to write a control center module, inherit the class TDECModule from the libtdeui library. This class in turn inherits TQWidget. Basically, you only have to reimplement some methods to load and save the configuration of the items that are configured in your module. In order to notify the control center about a new module, it has to install a .desktop file in the directory applnk/Settings in the TDE directory hierarchy.

Further information is available in the TDECModule class reference.


Initial Author: Bernd Gehrmann