Maciej Suminski
d5d4ae3305
Renamed [class_]drawpanel_gal.[cpp|h] to [class_]draw_panel_gal.[cpp|h] to follow current naming scheme.
2014-04-04 11:56:04 +02:00
Maciej Suminski
0e35ad6329
Fixed cancelling dialogs in DRAWING_TOOL.
2014-04-03 09:48:06 +02:00
Maciej Suminski
9b67ee04e6
If tool was previously active and it is called again, it is brought to the top of the active tool stack.
...
It fixes issue of dragging of items that have EDIT_POINTs, when dragging was activated by hovering over an item and using hot key.
2014-04-01 14:35:09 +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
b34f6bcd0b
Cursor coordinates are updated in GAL canvases.
2014-03-19 14:26:02 +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
f01b2502c8
Added TOOL_ACTION for PNS router activation.
...
Most of the GAL tools are activated by corresponding buttons on the right toolbar.
Removed menu entry for PNS router (as it is activated as the usual "Add track" tool).
2014-02-17 18:21:00 +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
37dc675b7a
Merged the lp:~cern-kicad/kicad/selection_tool branch.
2014-02-06 12:48:18 +01:00
Maciej Suminski
9e4e5ddd03
Modifiers (Shift/Ctrl/Alt) are set also while moving the mouse cursor.
2014-02-06 10:43:19 +01:00
Maciej Suminski
221b68d0b8
Snapping settings are valid while autopanning.
2014-02-04 09:44:16 +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
8626e906cb
Removed TOOL_STATE.idle field, as it was redundant.
2014-01-07 14:11:53 +01:00
Maciej Suminski
292a50f8c0
Fixed cursor force position option.
2013-12-20 16:07: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
d72ec51ccf
Fixed an infinite loop in the destructor of ACTION_MANAGER;
2013-12-06 13:57:56 +01:00
Maciej Suminski
0ac6e0614f
ClearHotKey() function.
2013-12-05 14:48:44 +01:00
Maciej Suminski
304d17dd32
The Selection Tool is always active. Removed entries for toolbar menu and hotkeys for the tool.
2013-12-03 17:11:22 +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
Dick Hollenbeck
0ba54b4b7c
format string concatenation bug
2013-11-13 13:59:47 -06:00
Maciej Suminski
24ab8e0b52
Fixed wx2.8 strings compatibility.
2013-11-13 15:52:06 +01:00
Maciej Suminski
ee289e4a30
Modified error handling for OpenGL backend, now error messages should be visible.
2013-11-11 10:48:49 +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 Sumiński
a64fb40d7e
Fixed strings for wxWidgets 2.8
2013-09-29 12:57:20 +02:00
Maciej Suminski
745b5328eb
Moved common actions to a separate file.
2013-09-27 20:52:34 +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
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
b4585ce13a
Fixed premature highlighting of options in CONTEXT_MENU.
2013-09-26 14:29:47 +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
634039d81a
Added possibility to cancel a tool that is not on the top of the tool stack.
2013-09-24 15:47:07 +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
Maciej Suminski
033b25de32
Reenabled snapping for tools.
2013-09-16 16:46:02 +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
Maciej Suminski
7d41dc1616
Currently selected layer is displayed on the top.
2013-09-12 18:24:53 +02:00