tags:

views:

297

answers:

4

I'd like to apply the MVC pattern to a GUI we are developing for an embedded system. In this case my understanding is we would need to provide the underlying framework for listener/event actions between the Controller and View. Also, I have seen some examples where the Model send an event to the View, but perhaps that is not correct. Does that seem correct?

Does anyone know of a framework targeted to embedded devices that may have this capability?

A: 

I could suggest the Qt Toolkit. But you don't give any mention of your platform capabilities.

Conor OG
+1  A: 

If your embedded device supports Java, eRCP would be the best GUI framework in that case. Check out: http://www.eclipse.org/ercp/

Model sends event to view is a way to notify the view updated about things has been changed in model. It's normal communication between M & V in MVC. However, the "view" here should be a generic view which is bound via an "observable" interface, not a concrete one.

For example:

  • Abstract View: Clock (generic interface)
  • Concrete View: Digital Clock, Analog Clock <--implementation of Clock
  • Model: Time <-- "knows" Clock but not Digital or Analog...
instcode
A: 

If you are working on a linux platform. Try Enlightenment the best GUI I have ever seen.....

A: 

This is a bit late, but Storyboard Suite from Crank Software is designed specifically for embedded systems and explicitly emphasizes an MVC design pattern.

Storyboard applications are based on a data deployment bundle which makes it portable to multiple operating systems, CPU architectures and rendering technologies and also provides a GUI builder that lets you use images as your 'widgets' and use Lua scripting for the system and glue logic.

I work for Crank, but you can download a free evaluation to try it out

Thomas

Thomas