clintbellanger/flare — pull request #294 by Gallaecio (2012-02-19 20:30:11+00:00)
Title: #4: Created a new Widget class for Tab Controls from the existing code i...

Hi,

I tried to separate the tabs logic of the MenuLog class into a second class, WidgetTabControl.

On this approach, when rendering the tabs:
- MenuLog asks WidgetTabControl for the identifier of the active tab.
- MenuLog asks for the rectangle where the content of the tab should be drawn.
- MenuLog draws the content of the active tab on the retrieved rectangle.

It is a rather simple approach, maybe not the best one, but I could not come up with anything else.