From: Dmitry Y. <ye...@gm...> - 2012-05-16 02:17:53
Attachments:
widget_bar_changes.diff
test_bar.conf
|
Hi there, I'm not sure if this is the best way to reach out to lcd4linux developers, so please feel free to forward it to the proper addresses. First of all, I wanted to thank everyone for such a great utility! I started using it recently on my router and NAS with the help of small Coby DP-152 dpf's. The reason for my contacting developers is a request for enhancement of Bar Widget for the graphical driver. Many use cases for the Bar Widget require utilization of two expressions, but split-bar is not natural/useful in some situations. For example: - on small screens - for CPU or RAM usage indicators when values should stack up (e.g. show CPU as "user + system + idle"; and RAM as "used + buffers + free") - for indicators that would benefit from a threshold notification (e.g. filesystem utilization when it reaches 90% or other preferred threshold) The enhancement that I'd like to propose will introduce the following new behaviors of bar gauges - have them overlay each other (obviously using different colors) and be able to choose one of two modes: 1) smaller gauge is always on top of the bigger one; and use the first gauge (a.k.a. bar0) in case they are equal - this mode will be introduced as style 'Y', and 'y' for 'Y'+'H' 2) first gauge (the bar0) is always on top of the second (the bar1) - will be called style 'F', a 'f' for 'F'+'H' I've already prepared the changes and made some optimizations to the part of the code that renders the widget for the graphical driver. The changes are 100% backward compatible. The patch to the latest SVN revision is attached as well as configuration examples to demonstrate the new modes. Could someone please review the changes and advice whether anything else needs to be changed? If any, I'll look into the suggestion(s) to make the changes ready for submission into trunk. Please let me know if you'd like me to prepare some gif-animations to demonstrate the new behavior or if you need any explanation/comments to the code. Thanks, :-Dmitry |
From: Michael R. <mi...@re...> - 2012-05-16 15:00:27
|
Hi Dimitry, sounds interesting! As I currently don't have a graphical (and color!) display around, some gif demos would be nice! greetings, Michael Am 2012-05-16 04:17, schrieb Dmitry Yermolenko: > Hi there, > > I'm not sure if this is the best way to reach out to lcd4linux developers, > so please feel free to forward it to the proper addresses. > > First of all, I wanted to thank everyone for such a great utility! I started > using it recently on my router and NAS with the help of small Coby DP-152 > dpf's. > > The reason for my contacting developers is a request for enhancement of Bar > Widget for the graphical driver. Many use cases for the Bar Widget require > utilization of two expressions, but split-bar is not natural/useful in some > situations. For example: > - on small screens > - for CPU or RAM usage indicators when values should stack up (e.g. show CPU > as "user + system + idle"; and RAM as "used + buffers + free") > - for indicators that would benefit from a threshold notification (e.g. > filesystem utilization when it reaches 90% or other preferred threshold) > > The enhancement that I'd like to propose will introduce the following new > behaviors of bar gauges - have them overlay each other (obviously using > different colors) and be able to choose one of two modes: > 1) smaller gauge is always on top of the bigger one; and use the first gauge > (a.k.a. bar0) in case they are equal - this mode will be introduced as style > 'Y', and 'y' for 'Y'+'H' > 2) first gauge (the bar0) is always on top of the second (the bar1) - will > be called style 'F', a 'f' for 'F'+'H' > > I've already prepared the changes and made some optimizations to the part of > the code that renders the widget for the graphical driver. The changes are > 100% backward compatible. The patch to the latest SVN revision is attached > as well as configuration examples to demonstrate the new modes. Could > someone please review the changes and advice whether anything else needs to > be changed? If any, I'll look into the suggestion(s) to make the changes > ready for submission into trunk. > > Please let me know if you'd like me to prepare some gif-animations to > demonstrate the new behavior or if you need any explanation/comments to the > code. > > Thanks, > > :-Dmitry > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Lcd4linux-users mailing list > Lcd...@li... > https://lists.sourceforge.net/lists/listinfo/lcd4linux-users -- Michael Reinelt <mi...@re...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |
From: Dmitry Y. <ye...@gm...> - 2012-05-16 16:54:29
|
The best way to demonstrate the new bar styles would be through examples that use the following bars and just play with their styles and directions: Bar1: expression = 3, expression2 = 10 Bar2: expression = 5, expression2 = 5 Bar3: expression = 10, expression2 = 3 All the bars use the following widget configuration: class 'Bar' max 10 barcolor0 Bar0 # red barcolor1 Bar1 # green update second Here is the list of attached files that can be used with lcd4linux after applying my patches to the sources: layout_explanation.png – explains the screen layout of the examples bar_original.conf + bar_original.png – the configuration and the screenshot of the original styles in lcd4linux for split-bars (this config-file can be used with the current/unchanged version of lcd4linux). bar_overlay.conf + bar_overlay.png – the configuration and the screenshot for the "overlay" bar styles that always show smaller gauge on top of the bigger one; and use the first gauge when they are equal. This style was coded as 'Y'; and 'y' to make it "hollow". bar_fixed_layers.conf + bar_fixed_layers.png – the configuration and the screenshot for the "fixed layers" bar styles that always show first gauge on top of the second one. This style was coded as 'F'; and 'f' to make it "hollow". Just a note on selecting letter 'Y' and 'y' for the "overlay" styles – I was originally going to use 'O' and 'o' to represent the style, but decided against it due to the fact that the default style is '0' (number zero) and it will make a lot of confusion when reading the wiki or configuration. Thanks, :-Dmitry |