beautifying code

Simon Hausmann sh at caldera.de
Wed Sep 20 09:21:06 UTC 2000


On Wed, Sep 20, 2000 at 11:24:46AM +0200, Falk Brettschneider wrote:
> Hi Simon,
> 
> Simon Hausmann wrote:
> > 
> > On Wed, Sep 20, 2000 at 08:31:08PM +0000, John Birch wrote:
> > >
> > Regarding the variable names and the braces there are no rules. However
> > most (all?) agreed on using the foo()/setFoo() style for methods in
> > kdelibs where appropriate, for consistency with qt.
> Uhmm...nice to meet you Simon. :-)

Hiya ;-)

> I found the time to try the KPart::GUIActivateEvent and it works now for
> me locally. Thanks for your hint. But one thing is not clear to me...
> why is there an activate and a deactivate state? At the moment I
> sendEvent that activating thingy to inform my partial GUI that actions
> must be dynamically adapted.

Well, a GUI can be active or not active. Just like a widget can be
shown or hidden. For a QWidget you get a Show/Hide event, and for the GUI
you get an activation event with a bool as argument, indicating whether
the GUI is activated or deactivated.

Where exactly do you need an event/notification for updating you GUI?
Perhaps you might want to introduce your own new event? Or just
use ActionLists or a whole GUIClient object?

Bye,
 Simon




More information about the KDevelop-devel mailing list