[Ktechlab-devel] Node refactoring, second patch

P Zoltan zoltan.padrah at gmail.com
Fri Aug 29 19:45:57 UTC 2008


   Hello,

  I'm attaching a second patch related to node refactoring. The bad news is  
that this one has become even bigger than the previous one.

  What's changed with this patch:

  - Node, ECNode classes: removed the non-valid interface from it (  
add/removeInputConnector, acceptInput/Output, input/outputConnectorList)  
and added new methods ( getAConnector, getAllConnectors)

  - ICNDocument: in order to use the corresponding interfaces of Node,  
ECNode, this class has been "split" into 2: FlowICNDocument and  
CircuitICNDocument. The FlowDocument and CircuitICNDocument classes now  
inherit from these, respectively.

  - other classes have been changed to make things compatible:  
Canvasmanupulator, PinMap*, CNItem, ItemDocument, ItemDocumentData,  
NodeGroup

  - a small change is in MechanicsDocument to make KDevelop happy about  
syntax

  The node refactoring isn't complete yet, but now the only thing left to  
do is to remove all the references to the Node::type() method and the  
method itself.

  I'm waiting for feedback :D

    Zoltan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node-refactor-part2.patch.bz2
Type: application/bzip2
Size: 14625 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/ktechlab-devel/attachments/20080829/3f59bb8e/attachment.bin>


More information about the Ktechlab-devel mailing list