kicad/3d-viewer/dialogs
Wayne Stambaugh 66f6168163 Fix mode-less dialog issues.
Don't assume the dialog is mode-less and call Destroy() from within a
dialog method.  This will most assuredly crash if the dialog is shown
modally or quasi-modally.

Don't leak memory for mode-less dialogs created on the stack.  Make sure
when the parent frame window is closed that all mode-less dialog memory
is cleaned up.  Dialogs are not child windows like controls and toolbars
so their memory does not automatically get cleaned up when the parent
window is destroyed.

Do not directly access frame parent window's pointer in dialog destructors.
Apparently the tear down order when destroying mode-less dialogs is not
guaranteed so the parent window may get deleted before the dialog causing
a crash when accessing the parent window pointer from the dialog dtor.

Do not close mode-less dialogs in the parent frame's destructor.  This
doesn't guarantee that the dialog(s) will be destroyed before the parent
but it may reduce some careless mode-less dialog event handling in the
future.
2023-03-13 12:04:01 -04:00
..
3d_cache_dialogs.cpp Strip out and migrate 3d search paths in favor of env vars 2022-09-25 21:29:52 -04:00
3d_cache_dialogs.h Make 3D dialogs easier to find. 2021-10-21 14:30:03 +01:00
dialog_select_3d_model.cpp Fix wxWidgets 3.1 and later deprecated build warnings. 2022-08-15 08:00:40 -04:00
dialog_select_3d_model.h Make 3D dialogs easier to find. 2021-10-21 14:30:03 +01:00
dialog_select_3d_model_base.cpp 3D model selection dialog layout improvements. 2023-01-08 11:27:01 -05:00
dialog_select_3d_model_base.fbp 3D model selection dialog layout improvements. 2023-01-08 11:27:01 -05:00
dialog_select_3d_model_base.h 3D model selection dialog layout improvements. 2023-01-08 11:27:01 -05:00
panel_3D_colors.cpp Implement Reset to Defaults for all preferences panels. 2021-12-24 17:38:39 +00:00
panel_3D_colors.h Implement Reset to Defaults for all preferences panels. 2021-12-24 17:38:39 +00:00
panel_3D_colors_base.cpp Flat(er) look for paged dialogs. 2023-01-11 01:11:25 +00:00
panel_3D_colors_base.fbp Flat(er) look for paged dialogs. 2023-01-11 01:11:25 +00:00
panel_3D_colors_base.h Flat(er) look for paged dialogs. 2023-01-11 01:11:25 +00:00
panel_3D_display_options.cpp Use enums for 3d Viewer settings instead of ints 2021-12-30 23:03:13 +00:00
panel_3D_display_options.h Implement Reset to Defaults for all preferences panels. 2021-12-24 17:38:39 +00:00
panel_3D_display_options_base.cpp Dialogs: minor cosmetic fixes (reduce a few spaces between widgets) 2023-02-03 16:58:30 +01:00
panel_3D_display_options_base.fbp Dialogs: minor cosmetic fixes (reduce a few spaces between widgets) 2023-02-03 16:58:30 +01:00
panel_3D_display_options_base.h Dialogs: minor cosmetic fixes (reduce a few spaces between widgets) 2023-02-03 16:58:30 +01:00
panel_3D_opengl_options.cpp Use enums for 3d Viewer settings instead of ints 2021-12-30 23:03:13 +00:00
panel_3D_opengl_options.h Implement Reset to Defaults for all preferences panels. 2021-12-24 17:38:39 +00:00
panel_3D_opengl_options_base.cpp Flat(er) look for paged dialogs. 2023-01-11 01:11:25 +00:00
panel_3D_opengl_options_base.fbp Flat(er) look for paged dialogs. 2023-01-11 01:11:25 +00:00
panel_3D_opengl_options_base.h Flat(er) look for paged dialogs. 2023-01-11 01:11:25 +00:00
panel_3D_raytracing_options.cpp Nuke base_units from orbit 2022-09-16 04:38:10 +00:00
panel_3D_raytracing_options.h Implement Reset to Defaults for all preferences panels. 2021-12-24 17:38:39 +00:00
panel_3D_raytracing_options_base.cpp Dialogs: minor cosmetic fixes (reduce a few spaces between widgets) 2023-02-03 16:58:30 +01:00
panel_3D_raytracing_options_base.fbp Dialogs: minor cosmetic fixes (reduce a few spaces between widgets) 2023-02-03 16:58:30 +01:00
panel_3D_raytracing_options_base.h Dialogs: minor cosmetic fixes (reduce a few spaces between widgets) 2023-02-03 16:58:30 +01:00
panel_preview_3d_model.cpp Fix mode-less dialog issues. 2023-03-13 12:04:01 -04:00
panel_preview_3d_model.h Add UNITS_CHANGED handling to 3D preview controls. 2023-03-04 12:11:57 +00:00
panel_preview_3d_model_base.cpp Spacing & font-size issues in 3D model preview dialog. 2023-02-21 13:32:01 +00:00
panel_preview_3d_model_base.fbp Spacing & font-size issues in 3D model preview dialog. 2023-02-21 13:32:01 +00:00
panel_preview_3d_model_base.h Spacing & font-size issues in 3D model preview dialog. 2023-02-21 13:32:01 +00:00