Difference between revisions of "Panel Applets (KDE3 Architecture)"
imported>Eliddell (Created page with "== Panel Applets == KDE's panel (also known as kicker) allows small programs, called "applets", to be embedded. Currently, for example the clock and the pager are implemented...") |
m (→Panel Applets: Minor updates and improvements, updated apidoc link) |
||
Line 1: | Line 1: | ||
⚫ | |||
⚫ | |||
⚫ | |||
+ | {{Applicable to TDE}} |
||
+ | |||
== Panel Applets == |
== Panel Applets == |
||
− | + | The Trinity panel (also known as '''Kicker''') allows small programs, called |
|
− | + | ''applets'', to be embedded. Currently, for example the clock and |
|
the pager are implemented as applets. |
the pager are implemented as applets. |
||
Line 15: | Line 20: | ||
and external applets is transparent. He implements an applet as a |
and external applets is transparent. He implements an applet as a |
||
dynamically loadable library and inherits from the KPanelApplet class |
dynamically loadable library and inherits from the KPanelApplet class |
||
− | in the |
+ | in the <tt>libtdeui</tt> library. In order to notify the panel about a new applet, |
it has to install a [http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-0.9.8.html .desktop file] in the |
it has to install a [http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-0.9.8.html .desktop file] in the |
||
− | directory share/apps/kicker/applet in the |
+ | directory <tt>share/apps/kicker/applet</tt> in the TDE directory |
hierarchy. |
hierarchy. |
||
Further information is available in the |
Further information is available in the |
||
− | [http:// |
+ | [http://trinitydesktop.org/docs/trinity/tdelibs/tdeui/html/classKPanelApplet.html KPanelApplet] |
documentation. |
documentation. |
||
''Initial Author:'' [mailto:bernd@kdevelop.org Bernd Gehrmann] |
''Initial Author:'' [mailto:bernd@kdevelop.org Bernd Gehrmann] |
||
− | |||
⚫ | |||
⚫ | |||
⚫ |
Revision as of 14:57, 3 November 2021
Panel Applets
The Trinity panel (also known as Kicker) allows small programs, called applets, to be embedded. Currently, for example the clock and the pager are implemented as applets.
Applets can run either in the internally (i.e. in the panel's process space) or externally (i.e. as separate processes). The advantage of the first method is that the memory overhead is not higher than really necessary. On the other hand, an unstable applet can crash the whole panel. This can not happen with an external applet which communicates with the panel via a DCOP connection.
From the programmer's point of view, the difference between internal and external applets is transparent. He implements an applet as a dynamically loadable library and inherits from the KPanelApplet class in the libtdeui library. In order to notify the panel about a new applet, it has to install a .desktop file in the directory share/apps/kicker/applet in the TDE directory hierarchy.
Further information is available in the KPanelApplet documentation.
Initial Author: Bernd Gehrmann