kicad/common
Martin Sivak d5cdd78062 eeschema: keystroke zoom should obey disabled centering
Keystroke zoom (F1/F2) always centered the screen, because it
was handled as ID_POPUP_ZOOM_IN event. Mousewheel scrolling
was ok, because it is handled using different event based
on the configuration.

This patch introduces special event ids for keystroke
zooming that are then properly translated to either
ID_POPUP_ZOOM_IN or ID_OFFCENTER_ZOOM_IN depending
on the configuration.

The same issue is fixed for legacy canvas pcbnew.

Fixes: lp:1742567
* https://bugs.launchpad.net/kicad/+bug/1742567

Signed-off-by: Martin Sivak <mars@montik.net>
2018-01-27 20:20:32 -05:00
..
dialog_about Add size control to HTML_MESSAGE_BOX. Fix incorrect default size of a few dialogs. 2018-01-11 10:48:52 +01:00
dialogs KiCad: fix assertion when adding new path configuration entry. 2018-01-23 14:48:56 -05:00
gal Revert "Ensure DrawRectangle() stroke outline will always be visible" 2018-01-21 10:14:02 +01:00
geometry Fix unnecessary value parameter detected by clang-tidy. - Replace value parameter by const reference parameter or move-assignement in some cases 2018-01-09 18:55:51 -05:00
kicad_curl Remove useless includes and more fixes to avoid including curl.h in files, when not mandatory. 2017-09-05 08:07:31 +02:00
libeval Expression evaluator: increased output precision 2017-11-24 21:16:13 +01:00
math Remove superflous includes. 2015-07-31 09:50:47 -04:00
page_layout Minor string fixes 2017-12-18 18:09:48 +01:00
preview_items Set line width for SELECTION_AREA 2018-01-16 09:27:56 +01:00
swig Fix compil issue in Python support. 2017-05-01 14:19:38 +02:00
system Switched coroutine library from Boost libcotext to custom libcontext. 2017-03-07 11:45:29 -05:00
tool Reapplied: Save view control settings before dispatching new tool events 2018-01-26 19:23:08 +01:00
view Fix incorrect name (typo) of a method. 2018-01-18 10:11:45 +01:00
widgets Remove refereces to OpenGL and Cairo from Display Settings 2018-01-25 12:11:17 +01:00
CMakeLists.txt Implement primitive icon scaling for high DPI 2018-01-10 21:26:06 -07:00
base_screen.cpp general UI fix. Fixed a lot of icons and a lot of menu. 2017-06-02 11:51:11 +02:00
base_struct.cpp Minor trace logging improvements. 2017-09-21 08:58:41 -04:00
base_units.cpp Numeric expression evaluator 2017-11-24 21:15:40 +01:00
basic_gal.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
basicframe.cpp wxWidgets and KiCad fixes for quasi-modal dialogs. 2018-01-12 12:06:00 -05:00
bezier_curves.cpp Fix eeschema crash when saving LIB_BEZIER objects 2017-08-22 13:29:53 +02:00
bin_mod.cpp Remove old, empty header 2016-01-12 10:35:27 -05:00
bitmap.cpp Implement primitive icon scaling for high DPI 2018-01-10 21:26:06 -07:00
block_commande.cpp eeschema: Fixed use-after-free on exit when paste operation is aborted 2017-07-13 13:33:13 +02:00
build_version.cpp Version string improvements. 2016-11-25 09:09:10 -05:00
class_bitmap_base.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
class_colors_design_settings.cpp To avoid mistakes between graphic layers for pads, holes and not plated holes, rename 3 GAL_LAYER_ID names: 2017-11-29 09:48:41 +01:00
class_layer_box_selector.cpp Render transparent layer colors over the correct background. 2018-01-17 11:36:37 -05:00
class_marker_base.cpp Plot solder mask layer: fix incorrect margin of zones drawn on this layer (zone areas were slighly larger than the actual areas) 2015-08-01 12:20:23 +02:00
class_page_info.cpp Fix minor compil warnings (some are for old compilers). 2017-12-18 19:52:44 +01:00
class_plotter.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
class_undoredo_container.cpp Implement undo/redo for origins in legacy 2018-01-27 19:51:44 -05:00
colors.cpp Try to fix a compil issue on OSX (no viable conversion from 'const wxString' to 'const wxChar *', in colors.cpp) 2016-05-17 09:10:15 +02:00
commit.cpp refactoring: wrapped boost::optional in OPT<> class for the purpose of easier transition to C++17 in the future 2017-11-03 23:59:02 +01:00
common.cpp Define "template<> struct hash<wxString>" in Kicad only if wxWidgets version < 3.1.0, because it is already defined in 3.1.0 2017-12-18 09:53:14 +01:00
common_plotDXF_functions.cpp DXF plot: fix incorrect plotting of oval holes 2018-01-27 17:33:39 +01:00
common_plotGERBER_functions.cpp Fix: Gerber plot output creates incorrect custom pads when a rectangular anchor pad with x size > y size is used. 2017-12-15 12:33:28 +01:00
common_plotHPGL_functions.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
common_plotPDF_functions.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
common_plotPS_functions.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
common_plotSVG_functions.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
common_plot_functions.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
config_params.cpp GTK+ file dialog wildcard improvements. 2017-11-11 19:32:26 -05:00
confirm.cpp Add size control to HTML_MESSAGE_BOX. Fix incorrect default size of a few dialogs. 2018-01-11 10:48:52 +01:00
convert_basic_shapes_to_polygon.cpp Track polygon clearance: use the new TransformOvalClearanceToPolygon function, to avoid underestimation of clearance areas. 2018-01-21 11:32:37 +01:00
copy_to_clipboard.cpp Enable plot in clipboard on Linux and OSX in eeschema, and copy in clipboard in 3d viewer ( was existing on Windows, but disabled on other OS ). 2015-05-31 13:51:50 +02:00
dialog_shim.cpp wxWidgets and KiCad fixes for quasi-modal dialogs. 2018-01-12 12:06:00 -05:00
displlst.cpp Replace dangerous cast of pointer->long 2016-01-16 22:56:58 -05:00
dlist.cpp Hide m_galCanvas and m_galCanvasActive behind accessors. Fix DLIST concatonation API corner case. 2013-12-26 16:36:43 -06:00
draw_frame.cpp Move SwitchCanvas() implementation to EDA_DRAW_FRAME 2018-01-22 09:06:55 +01:00
draw_panel.cpp Don't warp mouse when context menu was cancelled. 2018-01-18 13:43:24 -05:00
draw_panel_gal.cpp Fallback to Cairo when OpenGL is not supported 2018-01-18 10:17:06 +01:00
drawtxt.cpp rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions. 2017-11-16 15:53:30 +01:00
dsnlexer.cpp Fix quotes in UI messages 2017-12-15 07:33:07 -05:00
eagle_parser.cpp Eagle Schematics Importer: support for UTF-8 2017-12-17 19:54:21 +01:00
eda_dde.cpp Fix a few shadowed local vars, and coding style issues. 2016-04-22 12:44:08 +02:00
eda_doc.cpp Fix quotes in UI messages 2017-12-15 07:33:07 -05:00
eda_pattern_match.cpp Add relational operators to component search 2017-03-27 21:26:49 -04:00
eda_text.cpp Changed default text size to 50mils 2017-12-21 12:16:57 -05:00
env_paths.cpp Revert commit bc0306ba as it did not fix the issue. 2017-11-22 15:54:18 -05:00
exceptions.cpp Fix quotes in UI messages 2017-12-15 07:33:07 -05:00
executable_names.cpp Move executable name constants to own file 2017-03-23 09:23:45 -04:00
filter_reader.cpp richio.h, class LINE_READER: prefix variable member names by "m_", like in other classes in Kicad. 2017-11-12 18:29:56 +01:00
findkicadhelppath.cpp.notused improve help file finding after kiway breakage. 2014-04-14 13:49:52 -05:00
footprint_filter.cpp Minor FOOTPRINT_FILTER fix 2017-07-17 15:00:13 -06:00
footprint_info.cpp Fix unnecessary value parameter detected by clang-tidy. - Replace value parameter by const reference parameter or move-assignement in some cases 2018-01-09 18:55:51 -05:00
fp_lib_table.cpp Fix quotes in UI messages 2017-12-15 07:33:07 -05:00
gbr_metadata.cpp Add Gerber job file writer in Pcbnew, and a basic reader in Gerbview. Currently disabled 2017-08-30 11:04:33 +02:00
gestfich.cpp Fix unnecessary copy initialization detected by clang-tidy 2018-01-09 18:22:10 -05:00
getrunningmicrosecs.cpp Performance counter rework: More comments, code cleaning, and move GetRunningMicroSecs() prototype from common.h to profile.h. 2017-01-02 13:49:36 +01:00
gl_context_mgr.cpp Avoid drawing into a non valid gl context when closing the DIALOG_PAD_PROPERTIES dialog 2017-11-07 18:33:53 +01:00
gr_basic.cpp eeschema: neatly wrap placeholder text in symbol chooser 2018-01-07 19:30:56 -07:00
grid_tricks.cpp Add missing C++ stdlib headers 2016-05-28 12:46:29 -04:00
hash_eda.cpp Hash functions for BOARD_ITEMs 2017-10-24 23:10:40 +02:00
hotkeys_basic.cpp Add size control to HTML_MESSAGE_BOX. Fix incorrect default size of a few dialogs. 2018-01-11 10:48:52 +01:00
html_messagebox.cpp Add size control to HTML_MESSAGE_BOX. Fix incorrect default size of a few dialogs. 2018-01-11 10:48:52 +01:00
incremental_text_ctrl.cpp Fix unnecessary value parameter detected by clang-tidy. - Replace value parameter by const reference parameter or move-assignement in some cases 2018-01-09 18:55:51 -05:00
kiface_i.cpp Removed old debug output 2017-12-17 18:43:43 +01:00
kiway.cpp Better management of KIWAY_PLAYER frame when called in modal mode, and having the wxFLOAT_ON_PARENT style option. 2018-01-01 10:41:43 +01:00
kiway_express.cpp Teach cvpcb about new KIWAY based cross-probing, factor out MAIL_T into mail_type.h 2014-04-22 10:16:19 -05:00
kiway_holder.cpp License for KIWAY_HOLDER 2016-08-11 14:41:15 +02:00
kiway_player.cpp Removed old debug output 2017-12-17 18:43:43 +01:00
lib_id.cpp Eagle Schematics Importer: support for UTF-8 2017-12-17 19:54:21 +01:00
lib_table.keywords Added "enabled" parameter for LIB_TABLE_ROW 2017-11-21 08:18:06 -05:00
lib_table_base.cpp Eeschema: fix remapping bug on windows builds. 2018-01-03 08:37:54 -05:00
lockfile.cpp Move file locking utilities to a separate file 2017-03-23 09:23:45 -04:00
lset.cpp Render transparent layer colors over the correct background. 2018-01-17 11:36:37 -05:00
md5_hash.cpp fix minor compil warnings 2017-12-05 18:02:53 +01:00
msgpanel.cpp Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
netlist.keywords Fix Bug #1381287 (CvPCB ignores the footprint filter field on aliased components) 2015-01-02 08:52:29 +01:00
newstroke_font.cpp all: new Russian GOST patch - author Konstantin Baranovskiy 2013-03-28 00:38:20 +04:00
observable.cpp Coverity fixes (mostly initializing variables) 2017-02-01 17:31:55 +01:00
origin_viewitem.cpp Implement undo/redo for origins in legacy 2018-01-27 19:51:44 -05:00
painter.cpp Refactor layer enumerations to all live in the same place 2017-03-30 16:01:48 -04:00
pcb.keywords Add "unlock" property to footprint texts 2017-11-27 18:21:00 -07:00
pcb_plot_params.keywords Add Gerber job file writer in Pcbnew, and a basic reader in Gerbview. Currently disabled 2017-08-30 11:04:33 +02:00
pgm_base.cpp Symbol library table remapping fixes. 2017-11-09 18:50:18 -05:00
prependpath.cpp Fix some issues related to the footprint wizard frame: 2015-09-07 12:52:16 +02:00
project.cpp Removed old debug output 2017-12-17 18:43:43 +01:00
properties.cpp Eeschema: initial schematic I/O plugin. 2016-07-06 05:22:56 -04:00
ptree.cpp Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
reporter.cpp Added lazy rendering mode for HTML reporter widget (allows a faster report creation, when the report has many lines) 2015-07-24 17:47:48 +02:00
richio.cpp Fix quotes in UI messages 2017-12-15 07:33:07 -05:00
search_stack.cpp Fix unnecessary value parameter detected by clang-tidy. - Replace value parameter by const reference parameter or move-assignement in some cases 2018-01-09 18:55:51 -05:00
searchhelpfilefullpath.cpp Fix windows help path bug. (fixes lp:1313412) 2015-09-20 14:23:17 -04:00
selcolor.cpp Changed COLOR4D defines to static consts 2017-02-22 17:35:00 +01:00
settings.cpp Multiple improvements concerning colors, configuration handling and legacy features in pcbnew: 2017-08-04 16:06:57 +02:00
single_top.cpp Convert symbol library editor over to use symbol library table. 2017-11-09 18:50:20 -05:00
streamwrapper.cpp Fix a few doxygen warnings and add a few comments. 2017-07-04 11:08:27 +02:00
string.cpp Display more information in component selector 2017-02-07 15:01:20 -05:00
strtok_r.c Add strtok_r.c 2013-12-10 17:52:51 -06:00
systemdirsappend.cpp Minor fixes: remove a few useless includes and move a few others to the right file. Remove a few coverity warnings about not initialized members. 2015-05-15 14:49:11 +02:00
text_utils.cpp change UTF8& operator+=( wchar_t ch ) to UTF8& operator+=( unsigned ch ), because swig does not like wchar_t. 2017-12-08 17:57:53 +01:00
trigo.cpp common: VECTOR2I-based RotatePoint() 2017-10-19 23:15:13 +02:00
utf8.cpp change UTF8& operator+=( wchar_t ch ) to UTF8& operator+=( unsigned ch ), because swig does not like wchar_t. 2017-12-08 17:57:53 +01:00
validators.cpp Envrionment variable dialog improvments. 2015-08-16 20:30:29 -04:00
wildcards_and_files_ext.cpp UI string normalization. 2017-12-24 10:04:32 -05:00
worksheet.cpp Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
worksheet_viewitem.cpp Refactor layer enumerations to all live in the same place 2017-03-30 16:01:48 -04:00
wx_status_popup.cpp Code formatting. 2015-02-18 17:53:46 +01:00
wxdataviewctrl_helpers.cpp Move wxDataViewCtrl manipulators out of dialog_choose_component.cpp 2017-03-30 21:47:14 -04:00
wxwineda.cpp * KIWAY Milestone A): Make major modules into DLL/DSOs. 2014-03-19 19:42:08 -05:00
xnode.cpp Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
zoom.cpp eeschema: keystroke zoom should obey disabled centering 2018-01-27 20:20:32 -05:00