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

From: Magnus Hjorth <magnus.hjorth@email-addr-hidden>
Date: Thu Sep 15 2005 - 23:26:43 EEST

On Thu, 15 Sep 2005 16:13:15 +0200
Alfons Adriaensen <fons.adriaensen@email-addr-hidden> 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
Received on Fri Sep 16 00:15:07 2005

This archive was generated by hypermail 2.1.8 : Fri Sep 16 2005 - 00:15:07 EEST