Practical sessions
There are some additions you could make to the code:
- Add a menu entry to create a new, empty scene.
Right now, we can only load and save a configuration file. Removing all models and instances must still be done by hand. Add a menu entry plus code to remove all models and instances at once, giving the user a simple way to start from nothing.
- Add a flag and confirmation dialogs if a setting is changed.
If the settings of one model are altered, set a dirty
flag to remember that the user of the application changed the loaded model instance or a saved state. Then, if the user wants to load another configuration file, start over with an empty configuration or exit the application and show a confirmation dialog to make sure a chance is given to save the current settings.
- Add a
dirty
marker to the title.
Several other applications are presenting some kind of notice to the user, stating that changes have been made...