clintbellanger/flare — pull request #293 by Gallaecio (2012-02-19 20:16:51+00:00)
Title: #4: Separated tabs logic from Log menu logic, generating a new widget cl...

Hi,

I finished my first approach to the refactoring.

The new class, WidgetTabControl, keeps track of the drawing of the header (the actual tabs), as well of the area both for the tabs and the content (dimensions and position), and of course of the active track.

The MenuLog class setups this class, and then interacts with it, MenuLog asks WidgetTabControl for the current active tab and the content area, and use that data to draw the needed content there.