When one is programming a GUI interface using object oriented programming (in this case, gtk libraries) what is the preferred method to creating multiple consecutive windows?
For example, user has to do a step 1 2 and 3, and all 3 steps are being done using separate windows.
Should i create separate classes for each window and then just overwrite the memory used by the old window every time I instantiate a new window? (Creating 3 consecutive objects from smaller classes, one for each window, with each object overwriting the previous when constructed)
or
Should I instead destroy the original window and redraw the new window in its place, thus reusing the original object over and over? (This method uses one large object construct from one class which handles all 3 windows within itself)
>>58491567
To clarify...
>user has to do a step 1 2 and 3, and all 3 steps are being done using separate windows.
Is there a reason I shouldnt create a class for each window?
>GUI
>>58491746
Thanks for the bump. I figured it may take a while before someone answers. This isnt the normal "lol, windows roxxorz! ima haxor" thread I see on here
>>58491567
If possible, just use one class. If you have to create different classes, create an interface or use inheritance. Otherwise, it would be needlessly complicated.
>>58491816
Huh. good answer, thank you