home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
MVC for MP's GUI?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="niekh" data-source="post: 4171" data-attributes="member: 10457"><p>Hi everyone!</p><p></p><p>Disclaimer: Firstly I must confess that I haven't read a single line of MP's source code so forgive me if this proves to be a moot point.</p><p></p><p>I've been thinking about adding an LCD and some accompanying navigational buttons to my HTPC. Having read the LCD thread it seems like implementing support for LCDs (and other devices) isn't quite straightforward. </p><p></p><p>Then a thought popped up! Have you, the developers of MP, considered using the Model-View-Controller (MVC) design pattern for MP's GUI? Using MVC would facilitate implementing support for several input devices and output devices. An output device can be provided with one default view and several, possibly user defined, alternative views. </p><p></p><p>Examples of input devices:</p><p>- Keyboard</p><p>- Remote control</p><p>- (case) Buttons</p><p></p><p>Examples of output devices:</p><p>- Screen</p><p>- LCD</p><p>- LEDs</p><p></p><p>An Excel spreadsheet for example has underlying data (the model) and several views (editing grid, bar graphs etc.). Updates made to the underlying data is automatically reflected in all open views. I'm not saying that Excel implements MVC (have no clue really!) but the principle is the same.</p><p></p><p>It is my belief that implementing MVC would ease the tasks of implementing new input/output devices as well as enabling user customization of MP's GUI.</p><p></p><p>For a primer on MVC visit <a href="http://ootips.org/mvc-pattern.html" target="_blank">http://ootips.org/mvc-pattern.html</a>.</p><p></p><p>Regards,</p><p>Nils.</p></blockquote><p></p>
[QUOTE="niekh, post: 4171, member: 10457"] Hi everyone! Disclaimer: Firstly I must confess that I haven't read a single line of MP's source code so forgive me if this proves to be a moot point. I've been thinking about adding an LCD and some accompanying navigational buttons to my HTPC. Having read the LCD thread it seems like implementing support for LCDs (and other devices) isn't quite straightforward. Then a thought popped up! Have you, the developers of MP, considered using the Model-View-Controller (MVC) design pattern for MP's GUI? Using MVC would facilitate implementing support for several input devices and output devices. An output device can be provided with one default view and several, possibly user defined, alternative views. Examples of input devices: - Keyboard - Remote control - (case) Buttons Examples of output devices: - Screen - LCD - LEDs An Excel spreadsheet for example has underlying data (the model) and several views (editing grid, bar graphs etc.). Updates made to the underlying data is automatically reflected in all open views. I'm not saying that Excel implements MVC (have no clue really!) but the principle is the same. It is my belief that implementing MVC would ease the tasks of implementing new input/output devices as well as enabling user customization of MP's GUI. For a primer on MVC visit [url]http://ootips.org/mvc-pattern.html[/url]. Regards, Nils. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
MVC for MP's GUI?
Contact us
RSS
Top
Bottom