kicad/common/dialogs
John Beard 567bdd9b9d Add configuration of Hi-DPI canvas scaling in OpenGL
First, add automatic detection of toolkit DPI scaling options. For now, this
is, in order,

* Check the GDK_SCALE option under GTK+ (users can set this to force the scaling)
* Check the value from WX's GetContentScalingFactor(). This will start to work
  correctly from WX 3.1 and GTK+ 3.10.

Then, add a user-settable override in the main prefs panel, next to the icon
scaling. This is independent of the icon scaling options.

DPI handling is performed in a standalone class, so they can be shared between
the prefs UI and the OpenGL backend easily. Also means Cairo could use the same
interface in future.

Also adjust the OpenGL grid drawing code to use the computed scale factor,
which avoids over-thick grids in scaled environments (the user can manually
thicken the grid if wanted).

Fixes: lp:1797308
* https://bugs.launchpad.net/kicad/+bug/1797308
2019-03-25 15:00:55 +00:00
..
dialog_color_picker.cpp Use our DIALOG_COLOR_PICKER in 3D viewer to set a color. 2018-10-13 08:23:14 +02:00
dialog_color_picker.h Use our DIALOG_COLOR_PICKER in 3D viewer to set a color. 2018-10-13 08:23:14 +02:00
dialog_color_picker_base.cpp DIALOG_COLOR_PICKER_BASE: fix a minor wxWidgets alert. 2018-11-01 16:51:14 +01:00
dialog_color_picker_base.fbp DIALOG_COLOR_PICKER_BASE: fix a minor wxWidgets alert. 2018-11-01 16:51:14 +01:00
dialog_color_picker_base.h DIALOG_COLOR_PICKER_BASE: fix a minor wxWidgets alert. 2018-11-01 16:51:14 +01:00
dialog_configure_paths.cpp Remove previous cell selection fixes in favour of slow-click hack. 2019-03-04 11:09:33 +00:00
dialog_configure_paths_base.cpp Move OnUpdateUI event to dialog. 2018-09-12 14:01:36 +01:00
dialog_configure_paths_base.fbp Move OnUpdateUI event to dialog. 2018-09-12 14:01:36 +01:00
dialog_configure_paths_base.h Move OnUpdateUI event to dialog. 2018-09-12 14:01:36 +01:00
dialog_display_info_HTML_base.cpp Don't bail out of loading when one library couldn't be found. 2018-02-15 10:53:03 +01:00
dialog_display_info_HTML_base.fbp Don't bail out of loading when one library couldn't be found. 2018-02-15 10:53:03 +01:00
dialog_display_info_HTML_base.h Don't bail out of loading when one library couldn't be found. 2018-02-15 10:53:03 +01:00
dialog_edit_library_tables.cpp Fix a few Coverity warnings. 2019-01-04 09:49:21 +01:00
dialog_exit_base.cpp Fix exit dialog issue on GTK3 builds. 2019-02-10 19:07:38 -05:00
dialog_exit_base.fbp Fix exit dialog issue on GTK3 builds. 2019-02-10 19:07:38 -05:00
dialog_exit_base.h Fix exit dialog issue on GTK3 builds. 2019-02-10 19:07:38 -05:00
dialog_file_dir_picker.cpp Fix button padding in file/directory picker dialog. 2019-02-09 16:23:47 -05:00
dialog_file_dir_picker.h DIALOG_FILE_DIR_PICKER: dialog to select both files and directories 2018-05-25 08:51:45 +02:00
dialog_global_lib_table_config.cpp Fix a few coverity errors 2019-02-15 20:15:04 -08:00
dialog_global_lib_table_config.h Lay groundwork for loading the initial global footprint library table. 2019-01-20 13:09:49 -05:00
dialog_global_lib_table_config_base.cpp Lay groundwork for loading the initial global footprint library table. 2019-01-20 13:09:49 -05:00
dialog_global_lib_table_config_base.fbp Lay groundwork for loading the initial global footprint library table. 2019-01-20 13:09:49 -05:00
dialog_global_lib_table_config_base.h Lay groundwork for loading the initial global footprint library table. 2019-01-20 13:09:49 -05:00
dialog_hotkey_list.cpp Centralise some UI constants, use in hotkey lists 2018-10-04 07:47:21 -04:00
dialog_hotkey_list.h Add read-only option for hotkey list, use for list dialog 2018-10-04 07:47:21 -04:00
dialog_image_editor.cpp eeschema-gal: factor out EDA_DRAW_PANEL from BITMAP_BASE, remove some unnecessary includes of class_drawpanel.h 2018-10-09 11:08:52 +01:00
dialog_image_editor.h Fixes in DIALOG_IMAGE_EDITOR (minor bug fix, and code update). 2018-07-27 16:30:13 +02:00
dialog_image_editor_base.cpp Fixes in DIALOG_IMAGE_EDITOR (minor bug fix, and code update). 2018-07-27 16:30:13 +02:00
dialog_image_editor_base.h Fixes in DIALOG_IMAGE_EDITOR (minor bug fix, and code update). 2018-07-27 16:30:13 +02:00
dialog_image_editor_fbp.fbp Fixes in DIALOG_IMAGE_EDITOR (minor bug fix, and code update). 2018-07-27 16:30:13 +02:00
dialog_list_selector_base.cpp Minor dialog and frame window improvements. 2018-08-02 13:00:41 -04:00
dialog_list_selector_base.fbp Minor dialog and frame window improvements. 2018-08-02 13:00:41 -04:00
dialog_list_selector_base.h Minor dialog and frame window improvements. 2018-08-02 13:00:41 -04:00
dialog_page_settings.cpp Set Page Layout preview scale and clear bg 2019-02-23 06:22:27 -08:00
dialog_page_settings.h Allows bigger max page size (120x120") in Eeschema, Gerbview and Page Layout Editor 2018-08-04 17:19:48 +02:00
dialog_page_settings_base.cpp More g_UserUnit erradication. 2018-07-17 15:12:31 +01:00
dialog_page_settings_base.fbp dialog_page_settings: avoid useless confirmation dialog after changing the page layout file. 2018-10-09 11:29:48 +02:00
dialog_page_settings_base.h More g_UserUnit erradication. 2018-07-17 15:12:31 +01:00
dialog_print_generic.cpp Fix warning in dialog_print_generic.cpp 2018-11-07 09:26:47 +01:00
dialog_print_generic.h Added a comment for close event handlers in DIALOG_PRINT_GENERIC 2018-11-07 09:31:40 +01:00
dialog_print_generic_base.cpp Small layout adjustments in DIALOG_PRINT_GENERIC 2018-10-31 19:17:30 +01:00
dialog_print_generic_base.fbp Small layout adjustments in DIALOG_PRINT_GENERIC 2018-10-31 19:17:30 +01:00
dialog_print_generic_base.h Small layout adjustments in DIALOG_PRINT_GENERIC 2018-10-31 19:17:30 +01:00
dialog_text_entry.cpp Set OK button as the default one in WX_TEXT_ENTRY_DIALOG 2018-03-30 15:29:48 +02:00
dialog_text_entry.h Add WX_TEXT_ENTRY_DIALOG which inherits from DIALOG_SHIM. 2018-03-12 22:45:51 +00:00
dialog_text_entry_base.cpp WX_TEXT_ENTRY_DIALOG: fix a wxASSERT ( very minor issue in debug mode) 2018-04-04 10:40:27 +02:00
dialog_text_entry_base.fbp WX_TEXT_ENTRY_DIALOG: fix a wxASSERT ( very minor issue in debug mode) 2018-04-04 10:40:27 +02:00
dialog_text_entry_base.h WX_TEXT_ENTRY_DIALOG: fix a wxASSERT ( very minor issue in debug mode) 2018-04-04 10:40:27 +02:00
panel_common_settings.cpp Add configuration of Hi-DPI canvas scaling in OpenGL 2019-03-25 15:00:55 +00:00
panel_common_settings.h Add configuration of Hi-DPI canvas scaling in OpenGL 2019-03-25 15:00:55 +00:00
panel_common_settings_base.cpp Add configuration of Hi-DPI canvas scaling in OpenGL 2019-03-25 15:00:55 +00:00
panel_common_settings_base.fbp Add configuration of Hi-DPI canvas scaling in OpenGL 2019-03-25 15:00:55 +00:00
panel_common_settings_base.h Add configuration of Hi-DPI canvas scaling in OpenGL 2019-03-25 15:00:55 +00:00
panel_hotkeys_editor.cpp Coverity fixes: lambda parameters by reference 2019-02-25 13:37:51 +00:00
wx_html_report_panel.cpp HTML_REPORT: RPT_ALL as sum of individual options 2018-11-23 20:31:27 -08:00
wx_html_report_panel.h HTML_REPORT: RPT_ALL as sum of individual options 2018-11-23 20:31:27 -08:00
wx_html_report_panel_base.cpp fix a few wxWidgets asserts. 2018-07-31 13:16:58 +02:00
wx_html_report_panel_base.fbp fix a few wxWidgets asserts. 2018-07-31 13:16:58 +02:00
wx_html_report_panel_base.h fix a few wxWidgets asserts. 2018-07-31 13:16:58 +02:00