I am working on a flexible graphical interface that can have ~ 12 different layouts. These layouts are all clearly defined and will not change. Each layout consists of several widgets that interact with DLLs using bit patterns. Although most widgets are the same, the bit patterns used vary depending on the type of interface.
My gut instinct is to use inheritance: define a common “panel” and have subclasses for different configurations. However, there are parts of the interface that are user defined and specified in the XML file.
Should the entire panel be defined in XML or only user sections?
source
share