You are not logged in.

Search results

Search results 1-10 of 10.

Wednesday, September 15th 2004, 10:27pm

Author: David Boosalis

RE: Another KPart question

anda_skoa Thanks for your informative reply. It realy cleared up a lot of misconceptions I had about KParts. I just assumed that when I saw a resource file and in it was a XML <kpart> tag, that there was a part lurking in a library to to be used. If I want to continue this effort of having a KPart for KIConEdit(and other applications), do you think it will be easy to do so. I guess there is a lot of documention on how to do this, they make it sound easy, but seeing that there are not a lot of kp...

Wednesday, September 15th 2004, 7:32pm

Author: David Boosalis

RE: Another KPart question

Thank you for the feed back, so if I don't use the XML file what is the call I make for a KIconedit part instance. I have searched the for kiconedit.h and have found it only in the KDE source directory. The kiconeditui.rc file tells me nothing on how to create a Class( or does it). Is there a special directory for .h files with respect to kparts. Sorry for the ignorance here. I really want to try and use KPparts, and by posting here I hope that I am helping others understand how to use them -dav...

Wednesday, September 15th 2004, 1:17am

Author: David Boosalis

Another KPart question

I must be the second bigest idiot in the world (modesty keeps me from claiming to be the biggest). I would like to use KIconEdit as a part. I've taken a few baby steps thanks to help from this board in getting KHTMLPart to render. So here is what I have for KIconEdit BrowserDialog::BrowserDialog( QWidget* p, const char* n, bool m, WFlags fl ): KParts::MainWindow(p,n,fl),m_part( 0L ) { KActionCollection* act = actionCollection(); (void) KStdAction::open( this, SLOT( slotFileOpen() ), act, "file_o...

Monday, September 13th 2004, 4:55pm

Author: David Boosalis

KHTML Plugin will not reize

Does anyone know how to get the KHTML plugin to resize correctly if it is to be inherrited by KMainWindow::plugin. When the window comes up and I set it to 400x400 pixels only the outer window gets resized and not the KHTML window. I've tried using a gridlayou, but nada. If I make the KHTML widget a toplevel widget then it works fine. Here is the simple code I am working with: BrowserDialog::BrowserDialog( QWidget* p, const char* n, bool m, WFlags fl ): KParts::MainWindow(p,n,fl),m_part( 0L ) { ...

Wednesday, September 1st 2004, 4:33am

Author: David Boosalis

dcopClient::connectDCOPSignal()

I would like to capture a signal from another process (kiconedit). So I am doing something like: DCOPClient *dcopClient = KApplication::dcopClient(); if (dcopClient) { bstatus = dcopClient->findObject("kiconedit*", "MainApplication-Interface", 0, data,foundApp,foundObj); qDebug("Status of dcop = %d",bstatus); qDebug("App ID= " + dcopClient->appId()); qDebug("Status of find App = " + foundApp); qDebug("Status of find Obj = " + foundObj); // so far so good, get proper names for foundApp, and found...

Tuesday, July 20th 2004, 10:54pm

Author: David Boosalis

More good news

Well I found out out how open a window with a phantom konqueror session. Instead of calling openURL, call openBrowserWindow. This will open up a brand new window. DCOPS is very cool Now if I could just get a handle on using KParts ?

Tuesday, July 20th 2004, 9:29pm

Author: David Boosalis

DCOP 101 - some basics

Figured it out. I had the third parameter wrong it should have been openUrl(QString) and not openURL(); If anyone is interested this is how I found the id, as you cannot know it apriori DCOPClient *dcopClient = KApplication::dcopClient(); if (dcopClient) { QCStringList csl = dcopClient->registeredApplications(); QCStringList::iterator it; for(it = csl.begin();it != csl.end();++it) { cstr = *it; qDebug("looking at: " + cstr); if (cstr.contains("konqueror")) { qDebug("Found browser = " + cstr); fo...

Tuesday, July 20th 2004, 7:43pm

Author: David Boosalis

DCOP 101 - some basics

I would like to use KDE's dcop API to send a request to konquer. I think it will be something like: DCopClient *dcopClient = KApplication::dcopClient(); dcopClient->send("konqueor" if (dcopClient) { dcopClient->send("konqueror-3741", "konqueror-mainwindow#1", "openURL", "www.ibm.com/developerWorks"); } If I do this from the command line it works. Also how can I dtermine the id, if any for konqueror are available, and is there a good way to start a konqueor session if none exists. Thank you for a...

Sunday, July 4th 2004, 7:16pm

Author: David Boosalis

RE: Easy Example on using KParts

Thank you for the reply. I looked at the example in your URL, and it gets me on the way, but by no means is it complete. I wish there was really some solid up to date instructions and tutorials on how to use kparts, as it is really very compliated, yet there is very little knowledge of it to be found. I think that is why most appplications seem not to use KPARTS, and just write their own widgets and API. This is a pitty, as it probable leads to a lot of code bloat as nothing in KDE gets reused e...

Sunday, July 4th 2004, 4:19am

Author: David Boosalis

Easy Example on using KParts

While not new to QT, I am very new to KDE. I would like to learn more about KDEParts, as I would like to be able to embed KWord, and KCalc into my application. KParts seems to be a bit overwhelming. Perhaps it is easier if you use an IDE, but I would prefer to stay with emacs. Are there any simple KDE programs that use KDE parts and whose source is available. KParts seems to be very complicated, are they used much by programmers, or are most KDE apps stand alone. Thank you -david