[linux-audio-dev] libcui - design-question

Magnus Hjorth magnus.hjorth at home.se
Thu Sep 15 20:26:43 UTC 2005


On Thu, 15 Sep 2005 16:13:15 +0200
Alfons Adriaensen <fons.adriaensen at alcatel.be> wrote:

> When thinking MVC, you do just the opposite: when you touch something
> on the GUI, all it does is send a event ('user has clicked on button
> #123') to the 'model' part. This does the thinking, takes actions, and
> may send a command back to the GUI ('set the state of button #123 to
> RED'). The GUI has become just a dumb translation between commands or
> events and visual objects. 

The model shouldn't know about which buttons etc exist in the GUI and how to display things, so the event should be more like ('user wants to perform action #123') and the response should be more like ('the model state changed to RED') IMO.


About the original question, maybe it would be a good idea to integrate with or at least support the ATK library that's part of GTK/GNOME? It allows you to "announce" your widgets and accept input in a generic way from input devices... 

/Magnus



More information about the Linux-audio-dev mailing list