2009-10-06, 16:01
I was planning to produce a simple patch to control the speed of Automatic Scrolling of Plot/Review text. My preferred skin (PM3.HD) has an option to enable/disable auto-scrolling, but I found myself having to edit the autoscroll values in ViewsVideoLibrary.xmlwhen I wanted to slow down the scrolling speed.
I though that a SpinControlEx to replace the existing RadioButton on custom_SkinSetting_1111.xml would be a good way of extending the current "On, Off" capability to something like "Off, Slow, Medium, Fast".
If nobody wanted to accept this functionality into XBMC, then what the hell; at least I'd learn something and gain some personal satisfaction from the exercise.
At first, I thought I'd nothing more to do than tinker with custom_SkinSetting_1111.xml and ViewsVideoLibrary.xml to make my change, but further reading suggested that SpinControlEx cannot be populated or interrogated without making changes to both the skin and the source. Although this is slightly more complex than this rusty developer had anticipated, I thought I could give it a go in any case, and looked to the code that controls the "Auto Resume" function in GUIWindowSettingsCategory.cpp for inspiration.
Having got this far through the thought process, I now have a fundamental question;
Although PM3.HD and Project Mayhem III and the only two current official skins in SVN, I'm assuming that any new feature which breaks existing Skins would be considered a bad thing. Can anyone confirm if my fears around this proposed patch are indeed valid?
Many thanks in advance,
Fergus.
PS - If it's not already apparent, I haven't undertaken any real programming for years (Project Manager to trade these days) and intended to tackle this by copying and modifying existing fragments of code without necessarilly understanding the ins and outs of each line. It's for this reason that I fear that the need for widespread/complex code changes may be beyond me.
I though that a SpinControlEx to replace the existing RadioButton on custom_SkinSetting_1111.xml would be a good way of extending the current "On, Off" capability to something like "Off, Slow, Medium, Fast".
If nobody wanted to accept this functionality into XBMC, then what the hell; at least I'd learn something and gain some personal satisfaction from the exercise.
At first, I thought I'd nothing more to do than tinker with custom_SkinSetting_1111.xml and ViewsVideoLibrary.xml to make my change, but further reading suggested that SpinControlEx cannot be populated or interrogated without making changes to both the skin and the source. Although this is slightly more complex than this rusty developer had anticipated, I thought I could give it a go in any case, and looked to the code that controls the "Auto Resume" function in GUIWindowSettingsCategory.cpp for inspiration.
Having got this far through the thought process, I now have a fundamental question;
If I successfully replaced the RadioButton with a SpinControlEx in custom_SkinSetting_1111.xml and GUIWindowSettingsCategory.cpp (and managed to actually make use of it's set value in ViewsVideoLibrary.xml) would I have produced a patch that effectively breaks every other skin?
Although PM3.HD and Project Mayhem III and the only two current official skins in SVN, I'm assuming that any new feature which breaks existing Skins would be considered a bad thing. Can anyone confirm if my fears around this proposed patch are indeed valid?
Many thanks in advance,
Fergus.
PS - If it's not already apparent, I haven't undertaken any real programming for years (Project Manager to trade these days) and intended to tackle this by copying and modifying existing fragments of code without necessarilly understanding the ins and outs of each line. It's for this reason that I fear that the need for widespread/complex code changes may be beyond me.