Maciej Suminski
b59770e8ca
TOOL_MANAGER is no longer static. Reworked autoregistration of TOOL_ACTIONs.
2014-05-14 16:29:53 +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
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
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
4a4c0914bc
Added TOOL_MANAGER::RunAction() function.
2013-12-03 15:41:41 +01: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
a3a73426bf
Even more code comments and reformatting.
2013-09-27 18:51:21 +02:00
Maciej Suminski
b1c0d614a3
Added some const modifiers.
2013-09-26 11:22:59 +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
6054e7be0a
Added a few comments.
2013-09-06 16:01:46 +02:00
Maciej Suminski
7e4eba9eed
Some comments.
2013-09-04 16:25:57 +02:00
Maciej Suminski
0b17e5d288
Added some comments and changed names of classes to match the coding rules.
2013-09-02 14:21:12 +02:00
Maciej Suminski
367924e669
Added stacking for tools.
2013-08-30 10:37:26 +02:00
Maciej Suminski
e70a0e4e0e
Reformatting.
2013-08-19 09:47:36 +02:00
Maciej Suminski
543d4af682
Added resetting of tools after loading a new board.
2013-08-15 10:20:49 +02:00
Maciej Suminski
9d9d74faad
Reformatting.
2013-08-08 14:59:59 +02:00
Maciej Suminski
c2342776e1
Fixed disambiguation menu issue.
2013-08-08 14:50:32 +02:00
Maciej Suminski
ff2a719bf7
Code reformatting.
2013-08-06 10:30:09 +02:00
unknown
2d09237bd7
Added core tool framework files + boost::context assembly stuff (initial, very buggy and unfinished work).
2013-08-02 16:46:53 +02:00