aseba-community / thymio-vpl2

Next generation VPL for Thymio using Qt Quick from Qt 5.x
GNU Lesser General Public License v3.0
2 stars 5 forks source link

Generate error when inconsistent blocks are put on the same line in simple mode #10

Closed stephanemagnenat closed 7 years ago

stephanemagnenat commented 7 years ago

When inconsistent actions are put together in simple mode, VPL should generate an error. This happens when there are on the same line:

  1. two instances of the same action blocks
  2. two instances of different blocks using the same actuators, such as the simple and the advanced motor blocks

Point 2. might be solved by #46, but 1. remains.

marvelous commented 7 years ago

BlockDefinition.category must be unique if not empty

stephanemagnenat commented 7 years ago

Currently BlockDefinition.category is a string, shouldn't it be an enumeration type (http://doc.qt.io/qt-5/qml-enumeration.html) instead? This remarks also applies to the type.

marvelous commented 7 years ago

No, it should not be a predefined list.