[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Extra DCOP features (request for comment/review/any attention from  core guys what so ever)
From:       ian reinhart geiser <geiseri () yahoo ! com>
Date:       2001-10-26 19:03:35
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 26 October 2001 02:44 pm, Richard Moore wrote:
> This all sounds pretty good, but a little bit too abstract - could
> you post a few examples are possible with your improvements, but would
> not have been previously? You could even write a tutorial for the dot...

Here is a small example from KMainwindowInterface
What I needed to do was reduce some API duplication in the widget management 
code.  The original method was to cut and paste from QWidget functions.  Well 
Simon told me about KDCOPPropertyProxy.  This works similar to KActionProxy

The proxy returned a list of the functions it could call, and it also had a 
way to access them that was compatible with DCOPObject.  The rub here was 
that DCOPObject only had a processDynamic() function.  So without the 
functionsDynamic addition the user would have to call QTFunctions() to return 
a function list.  This would make my solution unusable for dcop or KDCOP.

The other solution was to duplicate the entire API... This is a horrible 
hacky solution and I have been trying very hard to avoid this.

The other thing that this would provide is the ability to add and remove 
functions at runtime.  One of the issues with KDialogs DCOP interface is that 
some buttons are disabled for a reason.  So it is best not to show them.  By 
adding these single special functions to the Dynamic member it makes things 
more flexible.

As for a full tutatorial I am working on a full DCOP demo to show off what 
the new scripting API can do for you in KDE 3.0.  Meanwhile I need to get 
these interfaces finalized by the end of next week.

Cheers
- -ian reinhart geiser



- -- 
========================================
When Dexter's on the Internet, can Hell be far behind?"
========================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE72bOHPy62TRm8dvgRAmrVAJ0Sz0A9AhW3gSgPtviJHSoPm4h6cQCgsWvm
RYKbDaF2ezCh1RoXsEKh6YQ=
=vhA5
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic