Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323002 - StatusMeterWidget
Summary: StatusMeterWidget
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: UI (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0.0.M2   Edit
Assignee: Steffen Kriese CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 05:24 EDT by Stephan Mann CLA
Modified: 2011-05-18 12:00 EDT (History)
1 user (show)

See Also:


Attachments
Patch including the new widget and the examples (40.40 KB, patch)
2010-08-18 05:27 EDT, Stephan Mann CLA
elias: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Mann CLA 2010-08-18 05:24:49 EDT
I'd like to contribute a new widget to Riena. The attached patch applies to HEAD as of today. I've extended the example application to show the use of the StatusMeter in Playground/Table and Playground/Traverse. Note that the use in Playground/Table is limited by bug43910 since the checkbox is also an image. Making the StatusMeter wider would result in an distorted checkbox.

Since this is my first Riena contribution I'd like you to do a thorough code review. I'm looking forward to your suggestions on how to improve.
Comment 1 Stephan Mann CLA 2010-08-18 05:27:23 EDT
Created attachment 176876 [details]
Patch including the new widget and the examples
Comment 2 Steffen Kriese CLA 2010-08-19 03:13:52 EDT
Thanks Stephan, great contribution :-)  
Patch is applied!

I had to do a little tweaking in the StatusMeterRidget to set the custom colors. When the methods set*Color are called in the ridget from SubModuleController.configureRidgets(), the uicontrol isn't available at that point. So I assigned the colors to fields in the StatusMeterRidget and when updateUIControl() is called, passed them to the uicontrol.
Comment 3 Elias Volanakis CLA 2010-08-19 22:25:46 EDT
Comment on attachment 176876 [details]
Patch including the new widget and the examples

Adding IPLog flag.