Creator : Execute property widgets inside the activity

Bug #492607 reported by Michael Janelle-Montcalm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tutorius
Fix Released
High
Simon Poirier

Bug Description

In the Creator, inside the property editor for actions, users can specify values for each property of the action. In the case of a UAM property, the widget selector is executed, which displays a mask on the screen and unmasks the widget under the mouse, which allows for simple selection.

Since we moved the Creator to the service, we cannot rely anymore on the old property editors as they assumed that they would be ran inside the current activity. Right now, all the property widgets are executed inside the service. This causes problems only for actions, as they have no way of executing a particular selection widget inside the current activity.

The solution to this bug will allow the execution of custom selection events inside the current activity. This will notably be applied to the Change Color addon, which needs to select a widget inside the activity. A mechanism must be devised to allow communication between the Probe and the Creator to be able to run those selection widgets.

One way this could be done is by re-using the existing createEvent method on the Probe and sending custom Creator-only events, with a single mandatory property being the one that is desired for the action in the Creator. Since we enforce the execution of all the property widgets for all the mandatory properties of an event already, this would provide with a quick and easy way to pull off this communication without modifying the interfaces for both the Probe and the Creator.

Changed in tutorius:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Michael Janelle-Montcalm (michael-jmontcalm)
Changed in tutorius:
assignee: Michael Janelle-Montcalm (michael-jmontcalm) → simpoir (simpoir)
Revision history for this message
Simon Poirier (simpoir) wrote :

fixed by commit 342f15e9e9170af02ed332cefd095b51fa0ed759
The path we chose was to assume that mandatory properties can (or not) have values (whether the value is None or not). When they are installed in editmode, the install call will fetch values from the activity, return the action address and will call back the update callback on the creator with the new values.

Changed in tutorius:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.