This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Plugin System

Tags: None
(comma "," separated)
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS

Plugin System

Tue Dec 09, 2008 1:47 am
I want to implement a plugin system into my application. And I was wondering how can I go about doing it? Is there any good tutorials for KDE4? And would I need to do anything special to have like a menu to open up a file dialog and load the plugin manually?


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
User avatar
msoeken
Mentor
Posts
300
Karma
4
OS

RE: Plugin System

Tue Dec 09, 2008 7:07 am
Hey, what should these plugins do? For UI plugins, kpart is often used: http://techbase.kde.org/Development/Tutorials/Using_KParts

If it should be more general, have a look at the kate plugin system. This file is for the manager to load the plugins:
http://websvn.kde.org/trunk/KDE/kdesdk/kate/app/katepluginmanager.cpp?revision=752361&view=markup

And here is a directory containing plugins. There is also a skeleton plugin for the most basic implementation
http://websvn.kde.org/trunk/KDE/kdesdk/kate/plugins/

cheers, m


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS

RE: Plugin System

Tue Dec 09, 2008 2:19 pm
Well it will be to allow cosmetic changes, bots, etc in C++, or in Python, Ruby, or KJScript via Kross.

Last edited by ComaWhite on Tue Dec 09, 2008 2:24 pm, edited 1 time in total.


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan