Maciej Sumiński
d895a90bdc
Fixed selection disambiguation menu for wx2.8
12 years ago
Maciej Suminski
35721397bd
Moved common actions to a separate file.
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
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
12b8714aff
Different way of handling CONTEXT_MENU in the selection tool. Removed some unnecessary lines.
12 years ago
Maciej Suminski
b39d562aea
Restored previous function names.
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
300c066b68
The last fix to selection rules.
12 years ago
Maciej Suminski
867067aa9c
Selection in high contrast mode selects only items that are shown as active.
12 years ago
Maciej Suminski
573f9841df
Better way of marking 'brightened' mode for items.
12 years ago
Maciej Suminski
86f520f76e
Sorted out headers.
12 years ago
Maciej Suminski
4c2e3b9a59
Removed unnecessary debug message
12 years ago
Maciej Suminski
8f5e6badc4
Removed selection disambiguation in case when there is a choice between a footprint and a smaller component (smaller components have priority).
12 years ago
Maciej Suminski
382c6bd201
Move tool is activated when drag event starts nearby selected items.
12 years ago
Maciej Suminski
d2c47a74f2
Parts of MODULEs are not selectable in multiple selection mode.
12 years ago
Maciej Suminski
d213a26057
Smarter selection algorithm (does not allow to select both whole MODULE and its parts at the same time).
Cancel event works better (selection box does not appear after cancelling the selection tool).
Removed blinking selection box effect.
Model is accessed in more appropriate way (getModel() method).
12 years ago
Maciej Suminski
44bafd1c8f
Improved selection rules. Added some comments to the selection tool.
12 years ago
Maciej Suminski
ee3f47ae51
Added autopanning to the selection tool.
12 years ago
Maciej Suminski
1057d5a5be
Changed reaction of SELECTION_TOOL to ToolCancel event (first event clears selection, second one deactivates the tool).
12 years ago
Maciej Suminski
89a138c09e
Added handling keyboard events for the Tool framework.
12 years ago
Maciej Suminski
9bd7ba36ac
Added resetting of tools after loading a new board.
12 years ago
Maciej Suminski
6af09fedda
Added the additive mode for the selection area.
12 years ago
Maciej Suminski
2cb6e59dfd
Multiple items selection tool.
12 years ago
Maciej Suminski
80901c69cf
Reformatting.
12 years ago
Maciej Suminski
282995eaee
Fixed disambiguation menu issue.
12 years ago
Maciej Suminski
402f3c6f2c
Added brightened mode for selecting items using disambiguation menu.
12 years ago
Maciej Suminski
16437e5d45
Added general purpose overlay layer and moved selection box to it.
12 years ago
Maciej Suminski
7d5a456344
Code reformatting.
12 years ago
Maciej Suminski
f193e389ec
Moved highlighted flag from VIEW_ITEM to EDA_ITEM. Added brightened and selected flag to EDA_ITEM.
12 years ago
tomasz.
69a44d5f13
pcbnew: hooked Tool Framework into the edit panel. Added a sample selection tool (not fully functional).
12 years ago