[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: kpanelapplet.h
From: Matthias Ettrich <ettrich () trolltech ! com>
Date: 2000-03-28 21:18:22
[Download RAW message or body]
Hi,
I don't understand the kpanelapplet API. It's supposed to replace kapplet, but
I can't see how and why.
Missing things:
- slots for remove- or move-requests. They are needed in order to allow
the applet to tell the panel that it should be moved or removed. Try
'exampleapplet' and use the RMB menu.
- a virtual setupGeometry function or at least a setup() handler. This is
needed to notify the applet when the geometry of the panel changes.
Run 'exampleapplet' in a horizontal panel and then move the panel to
the left: the applet automatically adjusts itself to be a vertical
applet. The new class kpannelapplet cannot do that.
Bad things:
- orientation() and position() are probably queried quite often ( for
example in paint event handling). Having them doing synchonous dcop
calls is too slow. Rather cache these values in the applet and
implement a callback were the panel informs the applets about position
or orientation changes. But again, the old class did that.
The only benefit I see are the heightForWidth() and widthForHeight() functions.
What's the purpose of KPanelApplet? Or better: what's wrong with KApplet that
can't be fixed?
Matthias
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic