Signals and slots » History » Version 2
Ohlsson, Staffan, 20/01/2012 08:15 AM
1 | 1 | Ohlsson, Staffan | h1. Signals and slots |
---|---|---|---|
2 | 1 | Ohlsson, Staffan | |
3 | 2 | Ohlsson, Staffan | The Framework uses a _signals_ and _slots_ mechanism, similar to the one used by Qt, for communication between [[Info_Bricks|Bricks]] and [[Control_Objects|Control Objects]]. |
4 | 1 | Ohlsson, Staffan | |
5 | 2 | Ohlsson, Staffan | Each Brick or Control Object can have several signals, which can be emitted, and slots, corresponding to methods which are exposed to the framework. |
6 | 1 | Ohlsson, Staffan | |
7 | 2 | Ohlsson, Staffan | The framework ensures that a Brick and a Control Object signals and slots match when creating a GUI. To do so, it needs to know which signals and slots a given Brick or Control Object has. Each brick has one or more _connection definition_, and each Control Object declares which signals and slots it has. |