cancel
Showing results for 
Search instead for 
Did you mean: 

Ideas needed how to organize code in Screen class

BParh.1
Senior III

As I add more widgets into a screen, and each with non trivial behavior,one problem that I start to realize is codebase for Screen class grow massively. And some widgets may have associated overlay widgets. Imagine all those code reside in one .cpp.

I tried one approach that is to create the widgets as custom container, this create a .cpp file for reach container of widgets. This somewhat better in term of code organization, but it pose challenge as we need now to establish communication between widgets.

For this reason, I don't like the idea of making custom container for this, but at the same time I could not think an elegant way to address this.

I would like to hear some ideas. Thank you in advance!

0 REPLIES 0