30 Commits

Author SHA1 Message Date
Phillip Stephens c72381fced Add ability to have multiple input connections 2020-04-17 10:10:30 -07:00
Phillip Stephens d5b3c7defb Linux build fixes 2020-04-17 07:18:45 -07:00
Luke Street 0959790966 Delete connections when changing port types 2020-04-17 05:44:24 -04:00
Luke Street 3cd627eb91 Add nodedata_cast 2020-04-17 02:57:33 -04:00
Luke Street 50b4353dcf Use QStringLiteral where needed 2020-04-17 02:25:14 -04:00
Dmitry Pinaev a939cf8659 (#241) Add missing namespace for Style 2020-01-25 00:23:08 +01:00
Dmitry Pinaev eff278c49e (#257) define hash for QString depending on Qt version 2020-01-24 23:24:47 +01:00
Malcohol 2816c94fca Mimimum expanding widgets (#246)
Support widgets with QSizePolicy::MinimumExpanding
2019-07-28 14:41:55 +02:00
Dmitry Pinaev 1151b597b3 Add FlowScene::allNodes() #229 2019-05-01 13:11:24 +02:00
Dmitry Pinaev c41a038b13 Emit nodePlaced on restoring #234 2019-05-01 12:27:03 +02:00
paceholder f494150bee Add connection created/deleted slots to nodedatamodel (#175) (#211) 2019-02-10 17:07:58 +01:00
Davide Faconti 5ad2aaf21f Add signal for embedded widget size changes (#187) 2019-02-09 19:15:43 +01:00
Davide Faconti 80f4a278c9 Improve scene cleanup operations (#185)
* cleaner cleanup

* avoid inconsistency in nPorts

* allow exceptions if the user pass an invalid PortIndex
2019-02-09 19:13:27 +01:00
Andrey Syrokomskiy cc4b3ae777 Added the new signal FlowScene::nodePlaced(). 2019-02-09 18:19:39 +01:00
fredakilla 282b439af0 Cleanup Qt keywords (#199)
* Qt no keywords

* replace emit with Q_EMIT

* add QT_NO_KEYWORDS definition to CMakeLists.txt
2019-02-06 22:05:38 +01:00
Davide Faconti a8264e391d Remove NodeDataModel::clone() (#164)
* removed NodeDataModel::clone(), using a more classic Factory/Builder pattern.

* trying to make visual studio happy

* Allow the DataModelRegistry to use static method Name() if defined

* use modern type_traits
2018-05-11 11:00:30 +02:00
Justin Bassett 5f3d84329b Misc improvements (use std::move, use const&, etc) (#170) 2018-05-11 10:21:44 +02:00
Justin Bassett 2d4499c1fb Move implementation of std::make_unique to QtNodes::detail::make_unique (#162) 2018-05-02 17:54:58 +02:00
paceholder 2c94a67cee Fix memory leake by passing parent to FlowScene (#151) (#155) 2018-04-27 19:37:58 +02:00
Dmitry Pinaev a93aded454 Export NodeState from dll (#156) 2018-04-25 18:20:09 +02:00
Dmitry Pinaev 6a4340ec2e Implement Converters separately from DataModels (#148) 2018-04-15 12:11:29 +02:00
Justin ddfdaa947d Improve cmake (modernize, add install()s) (#142)
* Update CMakeLists.txt to modern practices

* Add CMake installs()
restructure include/ src/ to accomodate it
2018-03-11 18:03:03 +01:00
Dmitry Pinaev 276940926d Expose Node and Connection classes (#97) 2017-06-08 09:17:06 +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
Dmitry Pinaev 318ce62ba7 Implement JSON-based styles for Nodes, Connections, and Scene 2016-11-27 20:07:18 +01:00