Jump to: navigation, search

Difference between revisions of "ListenTo"


(Example)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
ListenTo is a concept in {{UBIK}} Studio, that allows to connect and therefore cascade controls in an arbitrary mannner. The basic idea is, that each control can have a "Master" control, meaning another control to which selection changes it is constantly listening. This master is referred as the its ListenTo-Source.
+
ListenTo is a concept in {{UBIK}} Studio, that allows to connect and therefore cascade controls in an arbitrary mannner. The basic idea is, that each control can have a "Master" control, meaning another control to which selection changes it is constantly listening. This master is referred as its ListenTo-Source.
  
 
==Example==
 
==Example==
 
Let's assume a [[Class Browser]] shall be the master control and we want an [[Object Editor]] to always allow us to edit the currently selected object of this Class Browser.
 
Let's assume a [[Class Browser]] shall be the master control and we want an [[Object Editor]] to always allow us to edit the currently selected object of this Class Browser.
  
# Open a ClassBrowser in an area of {{UBIK}} Studio
+
# Open a Class Browser in an area of {{UBIK}} Studio
# Open an ObjectEditor in another area
+
# Open an Object Editor in another area
# Drag an object from the ClassBrowser with the left mouse button and drop it on the header of the tab where the Object Editor is in. The header text should now display a "+" sign and the text of the dropped object.
+
# Drag an object from the Class Browser with the left mouse button and drop it on the header of the tab where the Object Editor is in. The header text should now display a "+" sign and the text of the dropped object.

Revision as of 13:29, 11 March 2013

Purpose

ListenTo is a concept in UBIK® Studio, that allows to connect and therefore cascade controls in an arbitrary mannner. The basic idea is, that each control can have a "Master" control, meaning another control to which selection changes it is constantly listening. This master is referred as its ListenTo-Source.

Example

Let's assume a Class Browser shall be the master control and we want an Object Editor to always allow us to edit the currently selected object of this Class Browser.

  1. Open a Class Browser in an area of UBIK® Studio
  2. Open an Object Editor in another area
  3. Drag an object from the Class Browser with the left mouse button and drop it on the header of the tab where the Object Editor is in. The header text should now display a "+" sign and the text of the dropped object.