Maciej Suminski
b67c568545
Speed optimization during selection of multiple items.
...
Removed debug output.
2013-12-18 15:09:09 +01:00
Maciej Suminski
2fb36a9144
SELECTION_TOOL uses ITEMS_PICKED_LIST to store selected items.
...
Modifications done using the EDIT_TOOL are saved using the default KiCad's undo buffer.
If there is only one item selected, info about the item is displayed in the bottom status bar.
2013-12-18 14:33:34 +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
df5b9a1df0
Changed selection rules (pads&modules can be selected depending on the 'modules front/back' visibility instead of corresponding copper layers).
...
Fixed comments.
2013-12-05 14:52:08 +01:00
Maciej Suminski
45291ef571
The Selection Tool displays information about selected items. ClearSelection() made public.
2013-12-04 10:58:51 +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
dc8997b1ac
Merged upstream
2013-12-03 16:43:53 +01:00
Maciej Suminski
e1bfcb1816
Renamed MOVE_TOOL to EDIT_TOOL.
2013-12-03 16:09:03 +01:00
Maciej Suminski
af981b37fe
Split rotate and flip operations into separate functions.
...
Added Properties action (display properties windows)
2013-12-03 15:57:09 +01:00
Maciej Suminski
9a860c355a
Fixed disappearance of selected items after GAL switching.
2013-12-02 11:34:07 +01:00
Maciej Suminski
947a846d2e
Moved the SELECTION_TOOL out of the KIGFX namespace.
2013-11-29 09:37:23 +01:00
Dick Hollenbeck
eed87fc699
more EDA_LIST_DIALOG usability enhancements, compiler warning, coding standards
2013-11-18 13:27:27 -06: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
dfdacba649
Worksheet is not selectable anymore.
2013-10-02 12:02:25 +02:00
Maciej Suminski
094d6de8e0
Fixed reset for the selection tool.
2013-10-02 11:21:17 +02:00
Maciej Suminski
3d9fc4c40f
Moved VIEW_GROUP creation to the selection tool. In this way selected items are always drawn on overlay, not only when dragged.
2013-10-02 10:21:05 +02:00
Maciej Sumiński
248e37c292
Fixed selection disambiguation menu for wx2.8
2013-09-29 21:23:45 +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
e47790c3f8
Different way of handling CONTEXT_MENU in the selection tool. Removed some unnecessary lines.
2013-09-26 14:09:56 +02:00
Maciej Suminski
c931800642
Restored previous function names.
2013-09-20 16:32:11 +02:00
Maciej Suminski
e839d1a129
Merged kicad-gal
2013-09-20 15:48:27 +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
b03359a3db
The last fix to selection rules.
2013-09-17 13:47:33 +02:00
Maciej Suminski
d4e07e981a
Selection in high contrast mode selects only items that are shown as active.
2013-09-17 11:32:47 +02:00
Maciej Suminski
b579262869
Better way of marking 'brightened' mode for items.
2013-09-16 11:00:59 +02:00
Maciej Suminski
11f1dd1623
Sorted out headers.
2013-09-16 09:52:47 +02:00
Maciej Suminski
5e41599d13
Removed unnecessary debug message
2013-09-13 15:05:57 +02:00
Maciej Suminski
fcfbe920d5
Removed selection disambiguation in case when there is a choice between a footprint and a smaller component (smaller components have priority).
2013-09-12 10:46:22 +02:00
Maciej Suminski
b57331f450
Move tool is activated when drag event starts nearby selected items.
2013-09-12 10:24:23 +02:00
Maciej Suminski
c6d9a04dba
Parts of MODULEs are not selectable in multiple selection mode.
2013-09-09 10:10:02 +02:00
Maciej Suminski
bc67fc338e
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).
2013-09-06 16:04:12 +02:00
Maciej Suminski
55dddb69f7
Improved selection rules. Added some comments to the selection tool.
2013-09-04 10:56:06 +02:00
Maciej Suminski
202f7f9107
Added autopanning to the selection tool.
2013-09-02 16:29:10 +02:00
Maciej Suminski
68125a7f50
Changed reaction of SELECTION_TOOL to ToolCancel event (first event clears selection, second one deactivates the tool).
2013-08-22 15:05:37 +02:00
Maciej Suminski
b518569674
Added handling keyboard events for the Tool framework.
2013-08-21 17:37:27 +02:00
Maciej Suminski
543d4af682
Added resetting of tools after loading a new board.
2013-08-15 10:20:49 +02:00
Maciej Suminski
67b64f5ec6
Added the additive mode for the selection area.
2013-08-09 10:18:48 +02:00
Maciej Suminski
46670c7eeb
Multiple items selection tool.
2013-08-08 19:42:19 +02:00
Maciej Suminski
eefc79b5b2
Reformatting.
2013-08-08 19:41:20 +02:00
Maciej Suminski
c2342776e1
Fixed disambiguation menu issue.
2013-08-08 14:50:32 +02:00
Maciej Suminski
09aa89f3f9
Added brightened mode for selecting items using disambiguation menu.
2013-08-08 12:30:00 +02:00
Maciej Suminski
768b039cde
Added general purpose overlay layer and moved selection box to it.
2013-08-08 11:43:56 +02:00
Maciej Suminski
ff2a719bf7
Code reformatting.
2013-08-06 10:30:09 +02:00
Maciej Suminski
b6c4aaac8e
Moved highlighted flag from VIEW_ITEM to EDA_ITEM. Added brightened and selected flag to EDA_ITEM.
2013-08-06 09:31:08 +02:00
unknown
1a19c761ae
pcbnew: hooked Tool Framework into the edit panel. Added a sample selection tool (not fully functional).
2013-08-02 16:53:50 +02:00