Maciej Suminski
a7c13a61c3
Removed an unused parameter from TOOL_BASE::getModel<T>() method.
2014-06-06 14:59:25 +02:00
Maciej Suminski
bc766093a3
Setting proper tool for submenus of CONTEXT_MENU class.
2014-05-31 16:04:10 +02:00
Maciej Suminski
68ada9e169
Fix for context menu hanging up in GAL.
2014-05-22 17:59:36 +02:00
Maciej Suminski
b59770e8ca
TOOL_MANAGER is no longer static. Reworked autoregistration of TOOL_ACTIONs.
2014-05-14 16:29:53 +02:00
Maciej Suminski
bc372564cf
Fixed custom event handlers for CONTEXT_MENU.
...
Moved menuCopy to CONTEXT_MENU copy constructor.
2014-05-13 11:22:51 +02:00
Maciej Suminski
7155e3a9db
Recursive copy constructor for CONTEXT_MENU.
2014-05-13 11:22:51 +02:00
Maciej Suminski
a86387eec6
Better way of adding CONTEXT_MENU entries.
2014-05-13 11:22:50 +02:00
Maciej Suminski
e4a4578b40
Key events are handled by wxEVT_CHAR instead of wxEVT_KEY_[UP|DOWN]. Fixed issue of chars that require modifiers (e.g. ? is Shift+/ on US keyboard layout).
2014-04-09 17:33:22 +02:00
Maciej Suminski
1c35e7d6f6
Hot keys specific to a tool have priority over global hot keys (TOOL_ACTION scope: AS_GLOBAL/AS_CONTEXT is finally handled properly).
2014-04-09 17:05:05 +02:00
Maciej Suminski
d5b2a3b007
Added possibility of switching tools by the right toolbar buttons, without deactivating the current tool first (previously tools did not switch if there was one active).
2014-04-04 11:50:15 +02:00
Maciej Suminski
3b05177a3a
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).
2014-03-24 17:20:23 +01:00
Maciej Suminski
1f38879fef
FIxed too late deletion of TOOLs.
2014-03-21 17:55:46 +01:00
Maciej Suminski
5eb4ecbf1c
TOOL_EVENTs autoregister themselves in ACTION_MANAGER.
...
ROUTER_TOOL events have temporarily changed their hotkeys assignment.
2014-03-21 10:40:50 +01:00
Maciej Suminski
8d8c72856d
Added TOOL_MANAGER & ACTION_MANAGER::RunAction( const TOOL_ACTION aAction ).
...
Selection clearing is invoked using TOOL_ACTION object rather than its name.
2014-02-28 15:46:05 +01:00
Maciej Suminski
dbe19fc5f9
Added VIEW::ToWorld( double ).
...
TOOL_EVENT message is supposed to contain string as parameter.
Added missing header for class_drawsegment.h (KiROUND).
Renamed SELECTION_TOOL::containsSelected() to SELECTION_TOOL::selectionContains().
2014-02-27 16:13:27 +01:00
Maciej Suminski
3dbb864e5e
Continous mode for drawing tools (i.e. they do not finish after adding a single object).
2014-02-19 13:51:32 +01:00
Maciej Suminski
5299e41ac4
Added TOOL_INTERACTIVE::Activate().
...
Removed an unnecessary header from class_board_item.h.
2014-02-06 14:45:33 +01:00
Maciej Suminski
27ecb2c930
Undo/redo buffer fixed once again..
2014-01-31 16:08:20 +01:00
Maciej Suminski
d2e865146b
Added a new tool event: TA_UNDO_REDO, sent after undo/redo operation is issued.
2014-01-30 11:18:58 +01:00
Maciej Suminski
2027222074
Upstream merge
2013-12-19 11:15:27 +01:00
Povilas Kanapickas
f954ace66b
Remove some uses of using namespace std.
2013-12-13 10:27:30 -06:00
Maciej Suminski
9b4b5c931e
Moved Init() & Reset() from TOOL_INTERACTIVE to TOOL_BASE.
...
Added REASON enum for Reset() function, so tools will know why a reset occured.
Fixed SELECTION_TOOL (it was bailing out, when a new board was loaded and some items were still selected).
Added removal of VIEW_ITEM groups after changing layers and removing items.
2013-12-09 10:42:38 +01:00
Maciej Suminski
0ac6e0614f
ClearHotKey() function.
2013-12-05 14:48:44 +01:00
Maciej Suminski
4a4c0914bc
Added TOOL_MANAGER::RunAction() function.
2013-12-03 15:41:41 +01:00
Maciej Suminski
bc41f8298b
Added some comments & asserts.
2013-12-03 15:17:43 +01:00
Maciej Suminski
a078fa6779
Storing the selected item position from a context menu.
2013-11-29 16:45:39 +01:00
Maciej Suminski
4343c6a24f
Automatic unregistration of tool actions during ACTION_MANAGER destruction.
2013-11-28 15:24:19 +01:00
Maciej Suminski
fc7798b7d7
Double click support for the Tool Framework.
2013-11-28 15:19:50 +01:00
Maciej Suminski
4bf49bf6a6
Renamed TOOL_MOUSE_BUTTONS constants to avoid name conflict with Windows MB_RIGHT constant.
2013-10-15 10:41:00 +02:00
Maciej Suminski
f9f23806ed
Mainly case changes.
2013-10-14 20:40:36 +02:00
Maciej Suminski
e66a4ce337
Namespace KiGfx->KIGFX.
...
template<> -> template <>
Some more reformatting according to uncrustify results.
2013-10-14 16:13:35 +02:00
Maciej Suminski
8253899a70
Converted tabs to spaces. Removed trailing whitespaces.
2013-10-14 13:43:57 +02:00
Maciej Sumiński
5c0bc4913e
wxWidgets 2.8 compatibility fix (removed wx/kbdstate.h)
2013-09-29 14:25:04 +02:00
Maciej Suminski
a3a73426bf
Even more code comments and reformatting.
2013-09-27 18:51:21 +02:00
Maciej Suminski
276d867ab2
Some more comments and code formatting.
2013-09-27 16:23:43 +02:00
Maciej Suminski
4c67f4cc26
Added missing header
2013-09-27 14:29:07 +02:00
Maciej Suminski
b369cc4afc
Merge kicad-pns-mac
2013-09-27 12:06:59 +02:00
Maciej Suminski
9bef4cb797
Added Init() to TOOL_INTERACTIVE, allowing to set up things that are needed to be initialized only once.
...
TOOL_ACTIONs can be run from CONTEXT_MENU after adding them.
Move tool actions are available to be run from CONTEXT_MENU displayed after right mouse button click on selected items.
Added some asserts to check the code.
2013-09-26 18:38:58 +02:00
Maciej Suminski
5098088237
Added functions for handling hotkeys, interface for adding TOOL_ACTIONs to CONTEXT_MENU.
...
Less objects are allocated dynamically.
CONTEXT_MENU is being run using its copy (it saves a hassle of following the lifetime of object).
2013-09-26 14:09:18 +02:00
Maciej Suminski
b1c0d614a3
Added some const modifiers.
2013-09-26 11:22:59 +02:00
Maciej Suminski
8ea74c38c3
Fixed cvpcb build.
2013-09-24 16:12:02 +02:00
Maciej Suminski
5e3f579431
Fixed build for Mac OS
2013-09-23 17:02:25 +02:00
Maciej Suminski
e9e4df8d01
FIxed TOOL_EVENT::Modifier() (now it returns value for current modifier, not only if there is one active or not).
2013-09-23 10:02:01 +02:00
Maciej Suminski
607fe8ed4b
Added missing files
2013-09-20 18:21:01 +02:00
Maciej Suminski
e07a8fbe31
Removed TA_ActivateTool (now tools are invoked by sending TA_Action event, with the tool name as string parameter).
...
Developed TOOL_Action class & added ActionManager. Hot keys registered by tools are processed.
Selection & move tool can be invoked by a hot key.
2013-09-19 17:02:57 +02:00
tomasz.wlostowski@cern.ch
f6a3bc9168
Merged Orson's latest changes.
2013-09-18 20:10:55 +02:00
tomasz.wlostowski@cern.ch
dca79490da
P&S router: some missing files
2013-09-18 19:56:37 +02:00
Maciej Suminski
033b25de32
Reenabled snapping for tools.
2013-09-16 16:46:02 +02:00
Maciej Suminski
5700075b7a
Added missing functions for checking type of keyboard event
2013-09-13 15:31:19 +02:00
Maciej Suminski
87d81a6d92
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.
2013-09-13 10:26:08 +02:00