kicad/include
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
..
core pcbnew: more thread (and nested wx event loop) safety for the zone filling/connectivity algo 2017-12-14 23:49:46 +01:00
gal 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
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 Numeric expression evaluator 2017-11-24 21:15:40 +01:00
math box2: Remove wrong use of typename keyword 2017-11-05 23:03:52 +01:00
plugins Remove some extra semicolons 2017-11-09 19:52:18 +01:00
preview_items Some coverity fixes 2018-01-05 22:51:03 -07:00
system Remove some extra semicolons 2017-11-09 19:52:18 +01:00
tool Forward context menu events to the tool that created the menu 2018-01-26 15:53:52 +01:00
ttl Remove some extra semicolons 2017-11-09 19:52:18 +01:00
view Fix incorrect name (typo) of a method. 2018-01-18 10:11:45 +01:00
widgets TEXT_CTRL_EVAL: Close the parent dialog after pressing Enter 2018-01-23 11:49:39 +01:00
base_struct.h Implement undo/redo for origins in legacy 2018-01-27 19:51:44 -05:00
base_units.h very minor I18n fix 2017-11-15 20:28:44 +01:00
basic_gal.h Prevent unnecessary compilation due to changes in plot_common.h. 2017-04-18 11:14:59 -04:00
bezier_curves.h Fix Coverity warnings 2017-05-30 09:07:18 +02:00
bin_mod.h Minor coding style fixes in headers 2016-01-12 11:33:33 -05:00
bitmap_types.h Implement primitive icon scaling for high DPI 2018-01-10 21:26:06 -07:00
bitmaps.h Cleanup of KiCad Icons 2018-01-12 14:06:45 -05:00
block_commande.h Sets additional conditions for when a wire is trimmed 2018-01-24 19:47:14 -05:00
build_version.h More missing source license fixes. 2014-10-22 11:51:34 -04:00
class_base_screen.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00
class_bitmap_base.h Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
class_board_design_settings.h refactoring: renamed pcbstruct.h to pcb_display_options.h, DISPLAY_OPTIONS->PCB_DISPLAY_OPTIONS 2017-11-03 20:02:06 +01:00
class_board_item.h DRAWSEGMENT, S_POLYGON shape: remove useless copies or conversion to std::vector<wxPoint> of SHPE_POLY_SET polygon shape. 2018-01-24 14:22:43 +01:00
class_collector.h Pcbnew: delete objects from removed layers. 2017-09-28 13:01:09 -04:00
class_colors_design_settings.h Preserve color scheme when switching to legacy (Fixes lp:1670669) 2017-11-28 10:47:04 +01:00
class_draw_panel_gal.h Use worksheet bounding box when the board is empty 2018-01-11 11:28:19 +01:00
class_drawpanel.h wx: Add double-click handling in disambiguation cases 2017-12-15 16:32:19 -05:00
class_drc_item.h Fix uninitialized member in DRC_ITEM constructor. 2014-08-16 14:12:11 -04:00
class_eda_rect.h Some coverity fixes 2018-01-05 22:51:03 -07:00
class_layer_box_selector.h Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
class_marker_base.h Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
class_page_info.h Fix minor compil warnings (some are for old compilers). 2017-12-18 19:52:44 +01:00
class_pcb_screen.h Refactor layer enumerations to all live in the same place 2017-03-30 16:01:48 -04:00
class_plotter.h Avoid C-style array member init (illegal in C++) 2017-12-06 19:28:17 -05:00
class_title_block.h Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
class_undoredo_container.h Implement undo/redo for drill and grid origins. 2018-01-27 19:40:51 -05:00
class_worksheet_dataitem.h Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
colors.h Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
commit.h Added COMMIT::GetStatus() and minor refactor 2017-07-19 10:46:10 +02:00
common.h 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
config_map.h Fix a few doxygen warnings 2017-06-20 10:47:30 +02:00
config_params.h Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
confirm.h 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.h Better calculation of polygon clearance area of oval pads. Wip. 2018-01-20 19:34:50 +01:00
convert_to_biu.h convert_to_biu: Changed defines & functions to constexpr 2016-12-12 16:45:52 +01:00
dialog_env_var_config.h ENV_VAR config dialog enhancements. 2017-10-26 11:47:57 +02:00
dialog_get_component.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00
dialog_helpers.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00
dialog_hotkeys_editor.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00
dialog_shim.h Fix several dialogs with bad default sizing 2018-01-06 14:39:17 -07:00
dlist.h Refinement to commit #4993. 2014-07-14 16:43:21 +02:00
draw_frame.h Move SwitchCanvas() implementation to EDA_DRAW_FRAME 2018-01-22 09:06:55 +01:00
drawtxt.h Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
dsnlexer.h Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
eagle_parser.h Some coverity fixes 2018-01-05 22:51:03 -07:00
eda_dde.h More missing source license fixes. 2014-10-22 11:51:34 -04:00
eda_doc.h More missing source license fixes. 2014-10-22 11:51:34 -04:00
eda_pattern_match.h Add relational operators to component search 2017-03-27 21:26:49 -04:00
eda_text.h Changed default text size to 50mils 2017-12-21 12:16:57 -05:00
enum_vector.h eeschema: Iterate through plugins when determining file format. 2017-10-20 08:38:38 +02:00
env_paths.h Revert commit bc0306ba as it did not fix the issue. 2017-11-22 15:54:18 -05:00
executable_names.h Move executable name constants to own file 2017-03-23 09:23:45 -04:00
fctsys.h removed wx carbon include in fctsys as it is unnecessary 2015-12-12 23:03:35 +13:00
filter_reader.h Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
footprint_filter.h Add footprint select dropdown to component chooser, serious refactoring 2017-03-24 09:20:27 -04:00
footprint_info.h Fix SYNC_QUEUE build issue on Boost < 1.56 2017-03-24 10:09:08 -04:00
fp_lib_table.h Eagle Project Import: Code cleanup and documentation. 2017-10-20 08:58:40 +02:00
frame_type.h Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
gbr_netlist_metadata.h Pcbnew: fix minor issue in %TO.C advanced attribute, and avoid creating an unused D10 tool in Gerber files. 2017-07-02 16:41:31 +02:00
gestfich.h Doxygen comment improvements. 2017-06-13 19:47:46 -04:00
gl_context_mgr.h Reverted 6912 with minor changes (LockCtx requires to specify canvas that locks a context). 2016-06-13 16:43:33 +02:00
gr_basic.h eeschema: neatly wrap placeholder text in symbol chooser 2018-01-07 19:30:56 -07:00
grid_tricks.h *) Factor out Cut, Copy, and Paste for wxGrid into class common/GRID_TRICKS. 2013-10-23 13:56:03 -05:00
hash_eda.h Hash functions for BOARD_ITEMs 2017-10-24 23:10:40 +02:00
hashtables.h Pcbnew: major swig fix. 2016-07-18 13:23:09 -04:00
hotkeys_basic.h PL Editor UI Improvements: Menubar, toolbar and hotkeys 2017-08-29 11:52:34 -04:00
html_messagebox.h Add size control to HTML_MESSAGE_BOX. Fix incorrect default size of a few dialogs. 2018-01-11 10:48:52 +01:00
i18n_utility.h 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
id.h eeschema: keystroke zoom should obey disabled centering 2018-01-27 20:20:32 -05:00
import_export.h Use _WIN32 instead of __MINGW32__ in 2 conditional compilations which are Windows specific, not especially mingw32 specific. 2016-03-01 16:55:44 +01:00
incremental_text_ctrl.h Fix a few doxygen warnings 2017-06-16 09:18:31 +02:00
intrusive_list.h Moved INTRUSIVE_LIST to a separate header 2017-06-23 18:51:00 +02:00
ki_exception.h Fix a few doxygen warnings 2017-06-20 10:47:30 +02:00
ki_mutex.h More missing source license fixes. 2014-10-22 11:51:34 -04:00
kicad_device_context.h Minor coding style fixes in headers 2016-01-12 11:33:33 -05:00
kicad_string.h Display more information in component selector 2017-02-07 15:01:20 -05:00
kiface_i.h Fix a few doxygen warnings 2017-06-20 10:47:30 +02:00
kiface_ids.h Add footprint select dropdown to component chooser, serious refactoring 2017-03-24 09:20:27 -04:00
kiway.h 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.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00
kiway_mgr.h Minor coding style fixes in headers 2016-01-12 11:33:33 -05:00
kiway_player.h Eeschema Eagle Import: Code clean-up and formatting 2017-10-20 09:34:32 +02:00
layers_id_colors_and_visibility.h LSET::UIOrder and LSET::Technicals now match layer widget order 2018-01-15 10:08:30 +01:00
length.h.usuned Namespace KiGfx->KIGFX. 2013-10-14 16:13:35 +02:00
lib_id.h Fix symbol names with illegal library ID characters. 2017-11-23 10:52:55 -05:00
lib_table_base.h Added "enabled" parameter for LIB_TABLE_ROW 2017-11-21 08:18:06 -05:00
lib_table_grid.h Remove custom font from lib_table_grid 2017-12-21 09:35:52 +01:00
lockfile.h Doxygen comment improvements. 2017-06-13 19:47:46 -04:00
lru_cache.h 3D Viewer: complete refactor of the 3D viewer. 2016-07-19 13:35:25 -04:00
macros.h EDA_TEXT object refactor. 2017-01-25 08:03:32 -05:00
mail_type.h Remove excessive schematic symbol library re-linking. 2017-03-04 16:02:33 -05:00
make_unique.h Add C++14-style std::make_unique 'polyfill' for C++11 2017-01-23 11:41:00 +01:00
md5_hash.h pcbnew: Optimized zone filling algorithm. 2017-12-05 14:54:57 +01:00
menus_helpers.h Make show/hide icons in menus a run time option, instead of compil option. 2017-03-02 15:45:54 +01:00
msgpanel.h Changed COLOR4D defines to static consts 2017-02-22 17:35:00 +01:00
multivector.h fix a segfault in library editor when importing symbols. 2017-10-12 10:38:48 +02:00
newstroke_font.h Fix incorrect (too small) bounding box EDA_TEXT, noticeable when chars like j or { are used in zone fill functions. 2016-03-11 13:08:34 +01:00
observable.h Fix a few doxygen warnings 2017-06-16 09:18:31 +02:00
origin_viewitem.h Implement undo/redo for origins in legacy 2018-01-27 19:51:44 -05:00
pad_shapes.h Add support for custom pad shape. Full support in DRC and PnS. 2017-09-19 09:02:53 +02:00
painter.h Fix a minor issue in pad editor dialog: in GAL mode, the pad was sometimes shown in outline mode, sometimes in filled mode 2018-01-12 19:58:32 +01:00
pcb_display_options.h refactoring: renamed pcbstruct.h to pcb_display_options.h, DISPLAY_OPTIONS->PCB_DISPLAY_OPTIONS 2017-11-03 20:02:06 +01:00
pcbstruct.h pcbnew legacy: remove option to hide via drill 2016-05-10 16:47:37 -04:00
pgm_base.h Icons options menu: code rework 2017-03-03 14:18:25 +01:00
plot_auxiliary_data.h Add Gerber job file writer in Pcbnew, and a basic reader in Gerbview. Currently disabled 2017-08-30 11:04:33 +02:00
profile.h New connectivity algorithm. 2017-06-23 11:12:36 +02:00
project.h Minor symbol library table edit dialog fix. 2017-11-11 10:33:06 -05:00
properties.h Store information about buffering & caching in properties 2017-02-28 15:18:58 +01:00
ptree.h Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
reporter.h Fix a few doxygen warnings 2017-06-16 09:18:31 +02:00
richio.h 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
scoped_set_reset.h Add context menu to GAL DRAWING_TOOL, including the zone menu 2017-01-11 10:41:08 +01:00
search_stack.h 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
streamwrapper.h Fix a few doxygen warnings and add a few comments. 2017-07-04 11:08:27 +02:00
sync_queue.h Fix SYNC_QUEUE build issue on Boost < 1.56 2017-03-24 10:09:08 -04:00
systemdirsappend.h Move SystemDirsAppend to own header 2017-03-23 09:23:45 -04:00
text_utils.h Added files missing in 602ecf75 2017-12-07 18:14:19 +01:00
trigo.h Pcbnew: fix issues with 360 deg angle arcs. 2017-10-23 15:35:03 +02:00
unit_format.h Moved FMT_UI & FMT_ANGLE macros to a separate header 2017-10-20 09:34:32 +02:00
utf8.h 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.h Envrionment variable dialog improvments. 2015-08-16 20:30:29 -04:00
wildcards_and_files_ext.h GTK+ file dialog wildcard improvements. 2017-11-11 19:32:26 -05:00
worksheet.h Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support 2017-02-22 17:35:00 +01:00
worksheet_shape_builder.h pcbnew: fix graphical polygon movement, rotation, flipping and edit points synchronization. 2017-12-18 18:25:45 +01:00
worksheet_viewitem.h Code formatting 2016-12-12 16:45:52 +01:00
wxBasePcbFrame.h Move SwitchCanvas() implementation to EDA_DRAW_FRAME 2018-01-22 09:06:55 +01:00
wx_status_popup.h Code formatting. 2015-02-18 17:53:46 +01:00
wxdataviewctrl_helpers.h Move wxDataViewCtrl manipulators out of dialog_choose_component.cpp 2017-03-30 21:47:14 -04:00
wxstruct.h Implement primitive icon scaling for high DPI 2018-01-10 21:26:06 -07:00
xnode.h Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00