kicad/include/tool
John Beard b64c6dbf35 Use wxCHECKs to protect non-position TOOL_EVENTS
Getting the position of a non-position TOOL_EVENT will
now result in a wxCHECK, and a null-position (0,0) will
be returned. The new interface HasPosition() can be used
to determine if a call to a position function is safe to
make from the caller.

Fixes the underlying danger behind lp:1796045, which has
already been neutralised by a4966adb6, which avoids calling
the Position() functions when the TOOL_EVENT is not known
to be a position.

Fixes: lp:1796045
* https://bugs.launchpad.net/kicad/+bug/1796045
2018-10-12 09:08:07 -07:00
..
examples Remove some uses of using namespace std. 2013-12-13 10:27:30 -06:00
action_manager.h fix misspelled 'allows to' -> 'allows one to' 2018-07-11 10:35:03 -04:00
actions.h Put cursor and pan control in libcommon/tool, enable in Gerbview 2018-10-04 11:41:06 +02:00
common_tools.h Put cursor and pan control in libcommon/tool, enable in Gerbview 2018-10-04 11:41:06 +02:00
conditional_menu.h 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
context_menu.h More g_UserUnit erradication. 2018-07-17 15:12:31 +01:00
coroutine.h Fix an initialization order warning in coroutine.h 2018-01-10 08:52:17 +01:00
grid_menu.h Architecturally-simpler fix for grid context menu unit changes. 2018-06-20 16:54:24 +01:00
selection.h Move SanitizePads to CLIENT_SELECTION_FILTER architecture. 2018-07-17 15:10:18 +01:00
selection_conditions.h Fix a few doxygen warnings 2017-06-22 09:09:52 +02:00
tool_action.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
tool_base.h Remove some extra semicolons 2017-11-09 19:52:18 +01:00
tool_dispatcher.h pcbnew: synchronize zone visibility view menu entries with the toolbar buttons 2018-03-03 17:38:28 +01:00
tool_event.h Use wxCHECKs to protect non-position TOOL_EVENTS 2018-10-12 09:08:07 -07:00
tool_interactive.h Prevent creating too many transitions by TOOL_MANAGER 2017-07-31 15:09:19 +02:00
tool_manager.h fix a compil issue. 2018-04-24 15:20:35 +02:00
tool_menu.h Refactor SELECTION, SELECTION_CONDITIONS, and context menus to common 2017-02-28 14:47:20 +01:00
tool_settings.h Fix compil warnings 2017-08-04 17:46:18 +02:00
zoom_menu.h Refactor SELECTION, SELECTION_CONDITIONS, and context menus to common 2017-02-28 14:47:20 +01:00
zoom_tool.h Move zoom_tool.h to include 2017-09-25 13:35:01 +02:00