Mike Williams
27765cd584
TOOL_DISPATCHER: drag activation should always use screen coordinates
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9325
4 years ago
Mike Williams
9ca836d1ea
Tools: Respect system drag
Also remove the time-based aspect. We aren't all super speed clickers.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/8765
4 years ago
Ian McInerney
dc27079b71
cleanup tool event and tool action includes
4 years ago
Ian McInerney
ff371af810
Remove unused field in TOOL_DISPATCHER
All use of this was removed in 0a0935e0f3
but the field wasn't removed.
5 years ago
Ian McInerney
0a0935e0f3
Remove ACTIONS::TranslateLegacyId and TOOL_DISPATCHER::DispatchWxCommand
After commit 9535153f9e there were no more IDs inside the legacy ID
system. Therefore the entire system for dispatching and looking up
the legacy ideas and handling those events can now be removed and
the tool dispatcher simplified (it no longer needs to know about
the ACTIONS class).
5 years ago
Wayne Stambaugh
2a3e921d58
Header clean up round 6.
5 years ago
Ian McInerney
72a1c71e07
Implement a framework to handle wxUpdateUIEvents for tool actions
This allows for the tool framework to keep track of a universal
set of conditions for the UI state (enabled/checked/shown) for
controls of actions. It removes the need for the main menubar
menus to be CONDITIONAL_MENUs and be rebuilt on each open,
and instead makes the updates of the check and enabling of
items handled in the native wxWidgets way.
This commit switchs the 3d viewer and kicad project manager window
over to this system.
5 years ago
Jeff Young
bdf9491682
Re-factor the event whitelist stuff so that it doesn't promise what it can't deliver.
6 years ago
Jeff Young
73eda91ec7
Allow some events to run behind a modal dialog.
Right now this is just unit switching.
Fixes https://gitlab.com/kicad/code/kicad/issues/2344
6 years ago
Seth Hillbrand
7c28c3838a
Comment-only changes
Makes class comments conform to coding standards
6 years ago
Jeff Young
ef5c69167a
Start moving some LibEdit and SchEdit menubar menus to actions.
Also includes a bunch of bug fixes that got intermingled.
Fixes: lp:1828826
* https://bugs.launchpad.net/kicad/+bug/1828826
Fixes: lp:1828826
* https://bugs.launchpad.net/kicad/+bug/1828826
Fixes: lp:1828793
* https://bugs.launchpad.net/kicad/+bug/1828793
7 years ago
Tomasz Włostowski
af7064ef89
pcbnew: synchronize zone visibility view menu entries with the toolbar buttons
8 years ago
Marvin Schmidt
69974b73db
Remove some extra semicolons
8 years ago
jean-pierre charras
6a3c1720b2
Fix a few doxygen warnings
8 years ago
Jon Evans
167f45ca2b
Refactor COMMON_ACTIONS into a base and derived class
New virtual class ACTIONS is added as a member to EDA_DRAW_FRAME so
that the TOOL_DISPATCHER can have access to the appropriate derived
version of TranslateLegacyId()
9 years ago
Maciej Suminski
59af7a96f8
Minor code cleaning.
10 years ago
Maciej Suminski
3cb095b7c2
GAL canvases update status bar, message panel & zoom widget.
10 years ago
jean-pierre charras
24f516f6ae
Fix many doxygen warnings (due to missing info, old comments, typo ...) when building the doxygen doc.
11 years ago
Maciej Suminski
60b0a4e0be
Alternative approach to handling events and commands by TOOL_DISPATCHER.
Event handlers are (dis)connected depending on the active view.
TOOL_DISPATCHER inherits from wxEvtHandler, so now it receives events directly instead of being fed by external handlers.
11 years ago
Maciej Suminski
f5325f8d79
Removed a redundant pointer to EDA_EDIT_FRAME.
11 years ago
Maciej Suminski
60e9546b62
PCB_EDIT_FRAME::SetHighContrastLayer() went public.
Refactored code that handled zooming events.
Added PCB_RENDER_SETTINGS::Get/SetSketchMode().
PCBNEW_CONTROL reacts to hot keys changing display modes (sketch via/tracks, high contrast).
12 years ago
Maciej Suminski
bc305859b2
Mainly case changes.
12 years ago
Maciej Suminski
0ac3e1fbf2
Namespace KiGfx->KIGFX.
template<> -> template <>
Some more reformatting according to uncrustify results.
12 years ago
Maciej Suminski
22045b61ea
Converted tabs to spaces. Removed trailing whitespaces.
12 years ago
Maciej Sumiński
6409f7f96b
wxWidgets 2.8 compatibility fix (removed wx/kbdstate.h)
12 years ago
Maciej Suminski
6b74b5771a
Even more code comments and reformatting.
12 years ago
Maciej Suminski
3f320e4d68
Some more comments and code formatting.
12 years ago
Maciej Suminski
d1578e4e1a
Fixed cvpcb build.
12 years ago
Maciej Suminski
ab21124b71
Reenabled snapping for tools.
12 years ago
Maciej Suminski
f9cc914960
Mouse movement events are sent during autopanning, as the cursor position changes in the world coordinates (even if it stays still in the screen coordinates). It allows tools to update their state, as if the mouse was moved.
12 years ago
tomasz.wlostowski@cern.ch
9daa1ab52a
TOOL_DISPATCHER: improve mouse handling
12 years ago
Maciej Suminski
d0749a3a52
Small refactoring.
12 years ago
Maciej Suminski
89a138c09e
Added handling keyboard events for the Tool framework.
12 years ago
Maciej Suminski
7d5a456344
Code reformatting.
12 years ago
tomasz.
241061025b
Added core tool framework files + boost::context assembly stuff (initial, very buggy and unfinished work).
12 years ago