paceholder / nodeeditor

Qt Node Editor. Dataflow programming framework
BSD 3-Clause "New" or "Revised" License
2.92k stars 795 forks source link

Modify node's port creation method #362

Closed zmoth closed 1 year ago

zmoth commented 1 year ago

This PR is just for the record and you can choose which parts you also agree with.

This is a very tedious update and may not have been well thought out in some cases.

Mainly because the original uses too many unnecessary functions in the port creation section, so my idea is to manage the port section directly with a std::vector.

This update also implements dynamic ports and writes them as dynamic_port2 examples.

The indexed examples were all tested successfully on windows, including but not limited to copy and paste, save and load, and data passing.

Here are the main changes.