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

Load kPart on demand

Tags: None
(comma "," separated)
User avatar
KronoZ
Registered Member
Posts
26
Karma
0
OS

Load kPart on demand

Sun Mar 22, 2009 11:54 am
Hi guys.

This thread originally started in the brainstorm section (-implemented-konqu ... 38962.html).
But i thought i'd start a new one somewehere else since it has become a bit OT.

Let me summarize it:
My idea was to be able to integrate kmail and akregator inside konqueror in order to provide a kind of all-in-one internet experience.
It turns out that this is structurally possbile since there exist kMail and aKregator kParts.

The ultimate solution is this: add 2 buttons in the konqueror sidebar, one for mail and one for feeds which would load their respective kPart in a new tab.
(for those who have used it, yes, this is inspired by the Opera browser ;-) )

I had an interresting response telling me to use smtp://, pop3:// or imap:// as well as rss:// in the same fashion there is the bookmarks:// page.
The problem is it doesn't work. For me at least.

What i managed to do :
I tried using the file association dialog. For instance for the rss mime type (application->rss+xml), in the 'embedding' tab i added the akregator kPart and checked 'load file in embedded viewer'.
Then, i just created a file 'test.rss' (containing 'hello') and, when i load that file in Konqueror, i do have the akregator kPart in Konqueror, which proves that my "idea" is feasible. (i also get an error since my file obviously has not a correct xml syntax).

So, i'm thinking of maybe a script that would be called from those sidebar button and would contain some DBUS command to tell Konqueror to load the kParts (dunno if this can be achieved).
I would like to know if any of you has any idea to make this happen.

Thank you if you are willing to help me :)


KronoZ, proud to be a member of KDE forums since 2008-Nov.
User avatar
KronoZ
Registered Member
Posts
26
Karma
0
OS

RE: Load kPart on demand

Mon Mar 23, 2009 10:37 am
So, nobody's got an idea ? :)


KronoZ, proud to be a member of KDE forums since 2008-Nov.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: Load kPart on demand

Tue Mar 24, 2009 3:04 am
This would definitely be possible. Just a case of making the changes needed to the code. You might even be able to do it with a plugin.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
KronoZ
Registered Member
Posts
26
Karma
0
OS

RE: Load kPart on demand

Thu Mar 26, 2009 3:21 pm
Well, yeah that's what i think as well.
I'm thinking about starting to hack a bit on Konqueror anyway.
But i need to strengthen a bit my c++/Qt knowledge first :p
I'm on my way though


KronoZ, proud to be a member of KDE forums since 2008-Nov.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Sogou [Bot], Yahoo [Bot]