User:Mxttie: Difference between revisions
m (packaging hint) |
No edit summary |
||
Line 1: | Line 1: | ||
== Developing my first plasmoid == | == Developing my first plasmoid == | ||
=== Learn by example === | |||
Existing plasmoids can be found in the following places: | |||
* http://websvn.kde.org/trunk/KDE/kdebase/workspace/plasma/ | |||
* http://websvn.kde.org/trunk/KDE/kdeexamples/plasma/ | |||
* http://websvn.kde.org/trunk/KDE/kdebase/apps/plasma/ | |||
Plasma widgets which you can use to build your plasmoid UI: | |||
* http://websvn.kde.org/trunk/KDE/kdelibs/plasma/widgets/ | |||
Other intesting plasma sources: | |||
* http://websvn.kde.org/trunk/KDE/kdebase/runtime/plasma/ | |||
=== When using OpenSSL === | |||
You have to remove the FindOpenSSL cmake module supplied by KDE libs which is superseded now by the Cmake provided one. The KDE one does not link against the crypto lib. | |||
=== Adding custom SVG content to your plasmoid === | === Adding custom SVG content to your plasmoid === | ||
Line 13: | Line 28: | ||
A desktop theme can support your plasmoid by supplying a file with the same name. If it is not found, there is a fallback to the default theme. | A desktop theme can support your plasmoid by supplying a file with the same name. If it is not found, there is a fallback to the default theme. | ||
=== Adding configuration === | |||
KConfig.. | |||
=== Packaging and deploying === | === Packaging and deploying === | ||
[02:09] <aseigo> look in kdesdk/scripts/createtarball .. it has everythign you need :) | [02:09] <aseigo> look in kdesdk/scripts/createtarball .. it has everythign you need :) |
Revision as of 17:20, 4 August 2010
Developing my first plasmoid
Learn by example
Existing plasmoids can be found in the following places:
- http://websvn.kde.org/trunk/KDE/kdebase/workspace/plasma/
- http://websvn.kde.org/trunk/KDE/kdeexamples/plasma/
- http://websvn.kde.org/trunk/KDE/kdebase/apps/plasma/
Plasma widgets which you can use to build your plasmoid UI:
Other intesting plasma sources:
When using OpenSSL
You have to remove the FindOpenSSL cmake module supplied by KDE libs which is superseded now by the Cmake provided one. The KDE one does not link against the crypto lib.
Adding custom SVG content to your plasmoid
Normally, relative paths are used to point to items from the current desktop theme. When you have custom content that's not part of any theme yet, you can supply it with your plasmoid by installing it in the default desktop theme.
In Cmake language this translates to:
install(FILES "analog_telemeter.svgz" DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/default/widgets/ )
I discovered this by looking at the cmake files of desktop themes. Desktop themes are found in KDE/kdeartwork/desktopthemes , except for oxygen, which can be found at KDE/kdebase/runtime/desktoptheme/oxygen. DATA_INSTALL_DIR translates for example to /usr/share/kde4/apps.
A desktop theme can support your plasmoid by supplying a file with the same name. If it is not found, there is a fallback to the default theme.
Adding configuration
KConfig..
Packaging and deploying
[02:09] <aseigo> look in kdesdk/scripts/createtarball .. it has everythign you need :)