29 Mar
2009
29 Mar
'09
1:24 a.m.
On Sat, 2009-03-28 at 17:19 -0700, Krzysztof KosiĆski wrote:
Idea 3 is to refactor the tools code, so that each tool is a separate object, and the number of files that list all tools is reduced to a minimum. This would get rid of toolbox.cpp, as well as greatly simplify the writing of new tools.
The tools are more of separate objects now.
A proper splitting would not really get rid of toolbox.cpp, but instead create a new toolbox.cpp *per* tool.
However, we still will need toolbox.cpp to load up the defined ones from the XML definition and assemble the actual UI presentation.
But, yes, splitting each tool to a functional code unit and a UI code unit could simplify creation and addition of them.