<br><br><div class="gmail_quote">2009/12/27 Julian <span dir="ltr"><<a href="mailto:julian@svg4all.de">julian@svg4all.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
moin,<br>
<div class="im"><br>
On Sunday 27 December 2009 13:21:38 Zoltan Padrah wrote:<br>
> here are some diagrams about how I imagine the kde4 port's document should<br>
> work like:<br>
><br>
> <a href="http://sourceforge.net/userapps/trac/zoltan_padrah/wiki/KtechlabDocumentPro" target="_blank">http://sourceforge.net/userapps/trac/zoltan_padrah/wiki/KtechlabDocumentPro</a><br>
> posed<br>
</div>Just a short note on the flow-code structure. The "container" Items<br>
(ForLoopItem and WhileLoopItem) must be derived from QGraphicsItem. We should<br>
sub-class QGraphicsItem and implement QGraphicsItem::dropEvent to handle<br>
dropping of flow-code elements. QGraphicItems can have children, which can be<br>
painted "inside" the parent Item. (All coordinates are relative to the parents<br>
coordinates.) Qt handles all this, we just need to implement the handler for<br>
the dropEvent.<br>
This is just a minor implementation issue, but it should be changed. A<br>
QGraphicsView can only have one QGraphicsScene at a time. And a Scene can't<br>
contain a Scene. (As I said, this is handled by the QGraphicsItems, which can<br>
have children and provide some sort of "nested" setup.<br></blockquote><div><br>You're right, the diagrams are not correct.<br><br>We could inherit ForLoopItem from QWidget (or more specifically from some frame), then embed it into the scene with the addWidget method ( <br>
<a href="http://doc.trolltech.com/4.5/qgraphicsscene.html#addWidget">http://doc.trolltech.com/4.5/qgraphicsscene.html#addWidget</a><br>), and insert in the frame a new graphics scene. The details of this should be worked out.<br>
<br>Another issue to be discussed is how should we split the source code; what kind of plugins do we want to create. Should there be a dependency between plugins?<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
bye then<br>
julian<br>
<br>
------------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Verizon Developer Community<br>
Take advantage of Verizon's best-in-class app development support<br>
A streamlined, 14 day to market process makes app distribution fast and easy<br>
Join now and get one step closer to millions of Verizon customers<br>
<a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
_______________________________________________<br>
Ktechlab-devel mailing list<br>
<a href="mailto:Ktechlab-devel@lists.sourceforge.net">Ktechlab-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/ktechlab-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/ktechlab-devel</a><br>
</blockquote></div><br>