Commit Graph

48 Commits

Author SHA1 Message Date
Dmitry Pinaev b8287567f7 A 2020-02-07 17:36:32 +01:00
Dmitry Pinaev ad1c48a6ee experiment 2020-02-07 00:16:39 +01:00
Davide Faconti 87f0d386bf Prefer for loop over lambda (#181) 2018-06-06 11:30:40 +02:00
Dmitry Pinaev 6a4340ec2e Implement Converters separately from DataModels (#148) 2018-04-15 12:11:29 +02:00
Remigiusz Kołłątaj 78370041a1 Changing default node style to custom one where feasible (#134)
Signed-off-by: Remigiusz Kołłątaj <remigiusz.kollataj@mobica.com>
2018-02-10 00:02:42 +01:00
Dmitry Pinaev 690464bac5 Improve code style #84 2017-04-24 22:14:19 +02:00
Davide Faconti 4c4c59b387 Add custom style to node model (#84) 2017-04-24 22:14:19 +02:00
Russell Greene d3cc2fb4db Add NodePaintDelegate for custom painting (#67)
* Add onPaint callback to NodeDataModel for custom painting stuff

* Add NodePainterDelegate that allows for custom painting

* Fix state call

* Update NodePainter.cpp
2017-04-22 14:01:42 +02:00
Davide Faconti 07264cdeb7 Allow single connection policy for output ports (#83) 2017-04-22 13:59:13 +02:00
Davide Faconti f103831328 Lower requirements to c++11 and Qt 5.2 (#59)
* downgrade requirements to c++11 and Qt 5.2

* Update make_unique.hpp

* Update make_unique.hpp

* Update .travis.yml

* Update .travis.yml
2017-03-03 19:44:03 +01:00
David Bachrati 64dd7d491a Implement automatic insertion of typecast nodes (#52)
* Automatic type cast node insertation working in a basic manner

* Port paint fix to handle convertible types

* Code cleanup, documentation,, and minor fixes

* Fixing master merge

* Master merge fix 2

* Master merge fix 3

* Code style fixes

* Fixing logic error, where typecast node with the same input-output types were permitted

* Fixes based on @russelltg 's suggestions

* Got rid of unique_ptr static_casts

* Partial fixes from the code review

* Merging master into branch vol. 3
2017-01-30 18:03:49 +01:00
Dmitry Pinaev a18376f2e1 Fix windows build with namespaces 2017-01-30 16:06:30 +01:00
Dmitry Pinaev 0eaa18eb30 Introducet QtNodes namespace (#40) 2017-01-30 15:00:42 +01:00
David Bachrati 770a1aa9ec Implement runtime validation and error reporting (#46)
* Node validation and error display implemented

* Added option to iterate through nodes in the scene. (Useful to read out data from all the nodes, makes code generation based on the graphs easier.)

* Visual error fix for nodes that change size depending on input, plus minor styling and logic fixes in the example, based on the comments of @russelltg

* Validation extended to handle warnings, based on the idea of @russeltg ; Error display colors now come from the style system;  Additional bugfixes

* DefaultStyle.json identation fix

* FlowScene.cpp identation fix

* Travis build test fix
2017-01-25 11:34:03 +01:00
David Bachrati a62f088b2b Renamable input and output ports on nodes (#45)
* Add option to set custom captions for node ports

* Calculator example modified to consistently use custom ports labels where it makes sense

* Minor fixes in modified code
2017-01-12 23:10:03 +01:00
Russell Greene 870520fceb Make Nodes uniques owned by FlowScene instead of using shared_ptr (#38)
Nodes were stored in shared_ptr objects, which doesn't make sense
because FlowScene shoule be the only owner of Nodes.
2017-01-08 19:42:16 +01:00
Dmitry Pinaev f2875edfbe Fix node rendering with very long captions 2016-12-22 13:17:40 +01:00
Dmitry Pinaev 6c730a2ef6 Implement hash-based connection color 2016-12-11 17:35:22 +01:00
Dmitry Pinaev 97a5629c9d Use references instead of pointers 2016-11-28 21:23:31 +01:00
Russell Greene 150ceb8034 Don't use const std::unique_ptr<...>& everywhere, use raw pointer
instead
2016-11-28 09:15:11 +01:00
Dmitry Pinaev 318ce62ba7 Implement JSON-based styles for Nodes, Connections, and Scene 2016-11-27 20:07:18 +01:00
Dmitry Pinaev 6674c22f1b Allow multiple out connections 2016-11-25 02:15:27 +01:00
Dmitry Pinaev bf0585c4d2 Merge branch 'master' of github.com:paceholder/nodeeditor 2016-11-07 22:14:46 +01:00
Dmitry Pinaev de37205d0f Fix #21. Make connections selectable and removable 2016-11-07 22:12:44 +01:00
Jean-Michaël Celerier 25dffe3c07 fixes for building with GCC 6 under Linux 2016-10-06 12:06:10 +02:00