Tomasz Włostowski
c9817df9db
refactoring: implemented BOARD-specific view Add()/Remove()/Update() methods in PCB_VIEW, moved to libpcbcommon
2017-11-03 20:02:06 +01:00
Tomasz Włostowski
d0ef881a53
refactoring: make BOARD_COMMIT independent from pcbnew
2017-11-03 20:02:06 +01:00
Maciej Suminski
05ab44f463
Fixed a memleak when no undo entry is requested in BOARD_COMMIT
2017-10-31 09:14:03 +01:00
jean-pierre charras
56d42c776a
Replace assert() by wxASSERT to make debug more easy.
2017-10-19 09:49:09 +02:00
Tomasz Włostowski
c6a0ad895b
pcbnew: code formatting, removed previous module editor copy/paste functions
2017-09-30 14:28:54 +02:00
Tomasz Włostowski
5731000135
pcbnew/copy&paste: multiple improvements:
...
- fixed netcode propagation bug
- factored out EDIT_TOOL::m_offset, now selection offset is stored in SELECTION class
- added VECTOR2I-based Move/Flip/Rotate methods in BOARD_ITEM
2017-09-30 14:28:54 +02:00
Tomasz Włostowski
931a1ccaff
Improved copy/paste functionality by Kristoffer:
...
- added selection of reference point
- added snapping when pasting
- some minor code refactoring
- disabled pasting between footprint and pcb editors due to model incompatibility
2017-09-30 14:28:54 +02:00
Tomasz Włostowski
c229063d9e
Fixed crash when redrawing ratsnest after swapping pad net assignments
2017-07-02 02:05:42 +02:00
Seth Hillbrand
8201e2cbff
Footprint editor crashes when deleting pads and undoing this command.
...
Fixes: lp:1701092
https://bugs.launchpad.net/kicad/+bug/1701092
2017-06-29 20:43:38 +02:00
Tomasz Włostowski
9ad886344b
New connectivity algorithm.
2017-06-23 11:12:36 +02:00
Tomasz Włostowski
966052272f
Coding style fixes
2017-03-03 20:27:05 +01:00
Tomasz Włostowski
9e73c3117e
Added possibility to disable undo entries creation in COMMIT/BOARD_COMMIT
2017-03-03 20:26:34 +01:00
Jon Evans
0afb249447
Add drawing priority support to VIEW
...
Call UseDrawPriority( true ) after creating GAL to enable.
VIEW::Add() gets a new optional argument to specify the draw order
when adding an item. If the new argument is left default, the draw
order will increment with each call of VIEW::Add().
Fix std::bind calls after change to VIEW::Add
2017-02-28 14:47:20 +01:00
Maciej Suminski
3c61b16e7b
Code formatting
2017-01-18 13:22:40 +01:00
Maciej Suminski
c96db4f5c4
Removed aCreateUndoEntry flag from COMMIT::Push()
...
It was not used anywhere and COMMIT should handle creating
undo buffer entries.
2016-12-12 16:45:52 +01:00
Maciej Suminski
89055c4425
Code formatting
2016-12-12 16:45:52 +01:00
Tomasz Włostowski
3f7c5a0845
fixed post-rebase issues
2016-12-12 16:45:52 +01:00
Tomasz Włostowski
1c1f4e9a50
Refactoring of VIEW/VIEW_ITEM classes:
...
- Remove dependency of EDA_ITEM on VIEW
- VIEW_ITEM is now a pure virtual interface
2016-12-12 16:45:52 +01:00
Tomasz Włostowski
27a10e8597
Multiple simplifications to GAL tools in PCBNew:
...
- Finalize transition to BOARD_COMMIT (removed all remaining uses of PICKED_ITEMS_LIST) and implicit view/ratsnest updates
- Simplified SELECTION class, it now can be directly added to a VIEW
- Removed unnecesary casts and templates
- Introduced C++11 features (range based for, lambdas) where they improve code readability
- Added non-undoable COMMITs, which can be used to propagate change notifications to interested listeners (e.g. ratsnest/view)
2016-12-12 16:45:52 +01:00
Maciej Suminski
e37488f145
Minor code simplification in BOARD_COMMIT
2016-12-07 16:50:23 +01:00
Maciej Suminski
89a5f8ce69
Remove boost::bind from BOARD_COMMIT
2016-11-28 15:51:18 +01:00
Maciej Suminski
7f9380af26
Update the status panel after every commit.
2016-09-19 12:08:29 +02:00
Maciej Suminski
65b1225231
Added CHT_DONE flag to COMMIT::Stage to skip add/remove step
2016-09-12 13:45:57 +02:00
Maciej Suminski
86895822b7
BOARD_COMMIT retracts changes in reversed order
2016-09-12 13:45:57 +02:00
Maciej Suminski
32c4bec31c
Implemented BOARD_COMMIT::Revert()
2016-09-12 11:50:06 +02:00
Maciej Suminski
08d15a9961
BOARD_COMMIT::Revert() marked as not tested
2016-09-12 11:50:06 +02:00
Maciej Suminski
f1b37109e3
BOARD_COMMIT code cleaning
...
Moved a few conditionals to scopes where they can be executed.
Simpler way to create ITEM_PICKERs.
2016-09-12 11:50:06 +02:00
Maciej Suminski
c7ce82a4bf
BOARD_COMMIT creates only one copy of a modified module
2016-09-12 11:50:06 +02:00
Maciej Suminski
992ca6e7c7
Fixed removal function in BOARD_COMMIT.
2016-09-12 11:50:06 +02:00
Maciej Suminski
2ab7196035
Reenabled and corrected BOARD_COMMIT::Revert().
2016-09-12 11:50:06 +02:00
Maciej Suminski
497fb31ae0
BOARD_COMMIT can be constructed using a PCB_BASE_FRAME*.
2016-09-12 11:50:06 +02:00
Tomasz Wlostowski
9588a7974c
Added classes COMMIT & BOARD_COMMIT.
2016-09-12 11:50:06 +02:00