207 Commits

Author SHA1 Message Date
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
sindney d4b83952c6 Fix dereferencing nullptr (#194)
Dereferencing nullptr node causes crash on osx’s clang.
2018-10-15 14:13:05 +02:00
Davide Faconti 87f0d386bf Prefer for loop over lambda (#181) 2018-06-06 11:30:40 +02:00
Justin Bassett b3a3e9826b Fix Issue #127 (#140)
* Fix Issue #127

* add unit test
2018-05-29 22:05:07 +02:00
Justin Bassett 1a4addb915 Fix #168 (#173) 2018-05-14 22:02:35 +02: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
Daniel Born 5c6321e182 Fixe crash when loading previously saved file with connections (#158, #159) 2018-04-27 19:26:52 +02:00
Dmitry Pinaev 6a4340ec2e Implement Converters separately from DataModels (#148) 2018-04-15 12:11:29 +02:00
Dmitry Pinaev 2340a0b415 Forbid connection making a loop on a single node (#111) 2018-04-11 14:32:54 +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
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
ypnos e81afb00ff Support inclusion of FlowView via Qt Designer (#107)
* Add constructor with parent argument

Support inclusion of FlowView via Qt Designer and generally through
.ui files (using promoted Widget feature).

* allow to set the scene after construction

* remove ill-posed default argument

* use delegating constructor

* improve initialization order
2017-11-28 13:38:43 +01:00
Remigiusz Kołłątaj 9b7a5d06ba Change NodeStyle source in NodeGraphicsObject form default to the one defined in Node (#132)
Signed-off-by: Remigiusz Kołłątaj <remigiusz.kollataj@mobica.com>
2017-11-14 19:08:24 +01:00
Dmitry Pinaev c6e2e2b9b8 Show style warning if allowed (#119) 2017-09-30 22:30:30 +02:00
Krzysztof Borowczyk 0d808ac1aa Modifications to allow custom context menus on node objects (#112)
* Modifications to allow custom context menus on node objects

* Added position of ContextMenuEvent in signal
2017-09-25 09:54:24 +02:00
Dmitry Pinaev 3749b0478f Add protected function to access scene in FlowView 2017-09-12 10:55:09 +02:00
Dmitry Pinaev ba0727c073 Prevent resizing of non-resizable nodes (#96) 2017-08-13 12:20:10 +02:00
Dmitry Pinaev 7a0d971bfc Remove unused FlowItemInterface class 2017-08-10 10:37:03 +02:00
Remigiusz Kołłątaj 49da648f4c Correct -Wall and -Wextra warnings for GCC7.1.1 and Clang++ 4.0.1 (#105)
* Correct -Wall and -Wextra warnings for GCC7.1.1 and Clang++ 4.0.1

Signed-off-by: Remigiusz Kołłątaj <remigiusz.kollataj@mobica.com>

* MSVC doesn't like -Wextra

Signed-off-by: Remigiusz Kołłątaj <remigiusz.kollataj@mobica.com>
2017-08-10 10:35:07 +02:00
Karanvir Panesar 1e2ca62c46 Fix the Scrolling Issue (#104, #79) 2017-07-04 13:37:15 +02:00