Maciej Suminski
87b3f2e499
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.
12 years ago
Maciej Suminski
61066fa608
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).
12 years ago
Maciej Suminski
96d162c907
Added possibility to cancel a tool that is not on the top of the tool stack.
12 years ago
Maciej Suminski
2c03bf4109
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.
12 years ago
Maciej Suminski
d13355f7fe
Removed some potential memory leaks.
12 years ago
tomasz.wlostowski@cern.ch
f14db7c78c
TOOL_MANAGER: open menu on right mouse button when requested
12 years ago
Maciej Suminski
f93d297cb5
Some comments.
12 years ago
Maciej Suminski
e8083ae808
Added some comments and changed names of classes to match the coding rules.
12 years ago
Maciej Suminski
fb9a4c2bfc
Added stacking for tools.
12 years ago
Maciej Suminski
edea2f9112
Reduced displayed events information.
12 years ago
Maciej Suminski
875c0f7062
Modified InvokeTool(), so besides resetting the tool, it also send an ActivateTool event.
Added generation of CancelTool event upon ESC key press.
Minor bugfix.
12 years ago
Maciej Suminski
61ba40aa7e
Added InvokeTool() and FindTool() functions.
12 years ago
Maciej Suminski
e87eea7abc
Reformatting.
12 years ago
Maciej Suminski
9bd7ba36ac
Added resetting of tools after loading a new board.
12 years ago
Maciej Suminski
12e10fd43a
Reformatting.
12 years ago
Maciej Suminski
282995eaee
Fixed disambiguation menu issue.
12 years ago
Maciej Suminski
62ea71fcae
Fixed layers caching settings. Added some comments.
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