logo
Published on Haiku Project (http://www.haiku-os.org)

Code structur of an gui Application.

By ZzLeCzZ
Created 2007-01-23 09:36
Hi, I wounder whats is the best way to structur the code of an gui Application. First I think it is good to seperate the gui part and the "mainapp" part (the part that doing the real work). The mainapp and the gui both have an interface to the outer world. For example the gui gives a data structur with all information collected from different views. Now the question is how to connect this two parts? My idea is to derivate a BApplication class and put the gui and the mainapp into it. The mainapp and the gui can now communicate over the global be_app pointer by sending messages to the BApplication. Then the BApplication forward this messages to the gui or to the mainapp. Is this I a good way? What can I make better or how you stuctur your application? Are there some docs? thanks
‹ Developer Tutorials [0] Translation › [0]


‹ New to Developing For Haiku [0] Building Haiku on Zeta › [0]

Source URL:
http://www.haiku-os.org/community/forum/code_structur_of_an_gui_application