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!)
Using reflection for GUIControlFactory
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="NoMoDo" data-source="post: 4238" data-attributes="member: 10381"><p><strong>Patch uploaded to SourceForge.</strong></p><p></p><p>My patch is up on sourceforge.</p><p></p><p><strong>Note:</strong> I will only be available to discuss this patch up until Monday. After that, I will not be able to do any serious MP work for at least six months, and will only be able to come by the chat room on weekends, so please ask me any questions you might have about my patch before Monday.</p><p></p><p><strong>@Frodo</strong>: I noticed that in many controls, there is a LOT of difficult-to-maintain duplication when one control is contained within the other (for example, the scrollbar in the listbox, etc etc...). This gets out of hand in FilmStrip, for example. I think that after merging my patch, it should be very easy to fix this. Controls that are contained within controls should be nested elements of the containing control's xml node, and they can each have their own name.</p><p></p><p>For Example:</p><p><control></p><p>.....<type>thumbnailpanel</type></p><p>.....<main scrollbar></p><p>...........<type>vscrollbar</type></p><p>...........etc...</p><p>....</main scrollbar></p><p>....<default thumbnail></p><p>...........<type>image</type></p><p></p><p></p><p>etc...</p><p></p><p>And the corresponding C# code would simply be:</p><p>[XmlSkinElement("main scollbar")] GUIvscrollBar m_scrollBar;</p><p>[XmlSkinElement("default thumbnail) GUIImage m_defaultThumbnail;</p><p></p><p>I think this will remove a few good dozens (more than a 100?) lines of needless duplication. And again, with my patch this should be extremely simple to introduce elegantly, but I'm not going to do this myself as I've tapped out on time I can spend on MP for a while (life gets in the way <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> )</p></blockquote><p></p>
[QUOTE="NoMoDo, post: 4238, member: 10381"] [b]Patch uploaded to SourceForge.[/b] My patch is up on sourceforge. [b]Note:[/b] I will only be available to discuss this patch up until Monday. After that, I will not be able to do any serious MP work for at least six months, and will only be able to come by the chat room on weekends, so please ask me any questions you might have about my patch before Monday. [b]@Frodo[/b]: I noticed that in many controls, there is a LOT of difficult-to-maintain duplication when one control is contained within the other (for example, the scrollbar in the listbox, etc etc...). This gets out of hand in FilmStrip, for example. I think that after merging my patch, it should be very easy to fix this. Controls that are contained within controls should be nested elements of the containing control's xml node, and they can each have their own name. For Example: <control> .....<type>thumbnailpanel</type> .....<main scrollbar> ...........<type>vscrollbar</type> ...........etc... ....</main scrollbar> ....<default thumbnail> ...........<type>image</type> etc... And the corresponding C# code would simply be: [XmlSkinElement("main scollbar")] GUIvscrollBar m_scrollBar; [XmlSkinElement("default thumbnail) GUIImage m_defaultThumbnail; I think this will remove a few good dozens (more than a 100?) lines of needless duplication. And again, with my patch this should be extremely simple to introduce elegantly, but I'm not going to do this myself as I've tapped out on time I can spend on MP for a while (life gets in the way :D ) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Using reflection for GUIControlFactory
Contact us
RSS
Top
Bottom