From kde-devel Mon Nov 26 11:32:22 2001 From: blackie () blackie ! dk (Jesper K ! Pedersen) Date: Mon, 26 Nov 2001 11:32:22 +0000 To: kde-devel Subject: Re: [patch] New KEdit ready, please review X-MARC-Message: https://marc.info/?l=kde-devel&m=100677424023558 David Faure writes: | On Monday 26 November 2001 11:41, Mickael Marchand wrote: | > Hmm, ok, i can try that then, just give me some example please, i don't know how | > to do it :/ | > actually, i was thinking to use the kregexpeditor implementation from kdeutils, maybe you mean | > rewriting it in kdelibs ? but this will add a lot of stuff in kdeui then | > actually, using kdeutils' kregexpeditor needs to link with kpart (see | > khtml_find in cvs) i think | > m_editorDialog = KParts::ComponentFactory::createInstanceFromQuery( | > "KRegExpEditor/KRegExpEditor", QString::null, this ); | > this line create the editor, i think it needs to use kpart for that... | > is there any other way to 'call' the editor ? | > | > if anyone can point me to a url/example where i can see how to implement | > interfaces without linking with kpart, it would be usefull :), i'm quite lost with interfaces now | > ... | | The trick is... that you can use KParts::ComponentFactory::*, since this | is an inline template method, it doesn't actually require to _link_ | to KParts. You simply need the header file, which you can include from kdeui | (for instance using ) ;) | | BTW http://developer.kde.org/documentation/library/cvs-api/classref/interfaces/KRegExpEditorInterface.html | just updated with the full docu for kregexpeditorinterface. Thanks David ;-) Any other questions regarding KRegExpEditor, please do not hesitate to send me a mail directly at blackie@kde.org (I'm the author of KRegExpEditor ;-) >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<