Sign in to follow this  
Followers 0
Cotino

The proper way to organize a GUI project

1 post in this topic

Hi,

Until now i've always coded on a single file, which is fine as i start, but not so much when i reach 1k+ lines.

I have to change the way i code, so i thought about making multiple files.

However, maybe there is a standarized way of doing. I'm always using OnEventMode. Here's what i thought :

 

1 file for the main loop

1 file for the GUI(s)/Anything that would affect the entire project (config/global variable)

1 file for control-related function (On button press, combo box etc)

1 file for regular functions

1 file for each type of control (though some could be regrouped, like edit and input)

1 file for the includes

 

What do you think ? Would that be too much ? How do you do it ?

Maybe that is more a discussion thread than a GUI help, i'll let you mods decide.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0