KiCad PCB EDA Suite
BOARD_COMMIT Class Reference

#include <board_commit.h>

Inheritance diagram for BOARD_COMMIT:
COMMIT

Public Member Functions

 BOARD_COMMIT (EDA_DRAW_FRAME *aFrame)
 
 BOARD_COMMIT (PCB_TOOL_BASE *aTool)
 
virtual ~BOARD_COMMIT ()
 
virtual void Push (const wxString &aMessage=wxT("A commit"), bool aCreateUndoEntry=true, bool aSetDirtyBit=true) override
 

Executes the changes.

More...
 
virtual void Revert () override
 

Revertes the commit by restoring the modifed items state.

More...
 
COMMITStage (EDA_ITEM *aItem, CHANGE_TYPE aChangeType) override
 

Adds a change of the item aItem of type aChangeType to the change list.

More...
 
COMMITStage (std::vector< EDA_ITEM * > &container, CHANGE_TYPE aChangeType) override
 
COMMITStage (const PICKED_ITEMS_LIST &aItems, UNDO_REDO aModFlag=UNDO_REDO::UNSPECIFIED) override
 
bool HasRemoveEntry (EDA_ITEM *aItem)
 
COMMITAdd (EDA_ITEM *aItem)
 

Adds a new item to the model

More...
 
COMMITAdded (EDA_ITEM *aItem)
 

Notifies observers that aItem has been added

More...
 
COMMITRemove (EDA_ITEM *aItem)
 

Removes a new item from the model

More...
 
COMMITRemoved (EDA_ITEM *aItem)
 

Notifies observers that aItem has been removed

More...
 
COMMITModify (EDA_ITEM *aItem)
 

Modifies a given item in the model.

More...
 
COMMITModified (EDA_ITEM *aItem, EDA_ITEM *aCopy)
 

Creates an undo entry for an item that has been already modified.

More...
 
template<class Range >
COMMITStageItems (const Range &aRange, CHANGE_TYPE aChangeType)
 
bool Empty () const
 
int GetStatus (EDA_ITEM *aItem)
 

Returns status of an item.

More...
 

Protected Member Functions

void clear ()
 
COMMITcreateModified (EDA_ITEM *aItem, EDA_ITEM *aCopy, int aExtraFlags=0)
 
virtual void makeEntry (EDA_ITEM *aItem, CHANGE_TYPE aType, EDA_ITEM *aCopy=NULL)
 
COMMIT_LINEfindEntry (EDA_ITEM *aItem)
 Searches for an entry describing change for a particular item. More...
 
CHANGE_TYPE convert (UNDO_REDO aType) const
 

Protected Attributes

std::set< EDA_ITEM * > m_changedItems
 
std::vector< COMMIT_LINEm_changes
 

Private Member Functions

virtual EDA_ITEMparentObject (EDA_ITEM *aItem) const override
 

Private Attributes

TOOL_MANAGERm_toolMgr
 
bool m_isFootprintEditor
 

Detailed Description

Definition at line 37 of file board_commit.h.

Constructor & Destructor Documentation

◆ BOARD_COMMIT() [1/2]

BOARD_COMMIT::BOARD_COMMIT ( EDA_DRAW_FRAME aFrame)

Definition at line 48 of file board_commit.cpp.

49 {
50  m_toolMgr = aFrame->GetToolManager();
52 }
bool m_isFootprintEditor
Definition: board_commit.h:64
TOOL_MANAGER * m_toolMgr
Definition: board_commit.h:63
bool IsType(FRAME_T aType) const
TOOL_MANAGER * GetToolManager() const
Return the MVC controller.
Definition: tools_holder.h:76

References FRAME_FOOTPRINT_EDITOR, TOOLS_HOLDER::GetToolManager(), and EDA_BASE_FRAME::IsType().

◆ BOARD_COMMIT() [2/2]

BOARD_COMMIT::BOARD_COMMIT ( PCB_TOOL_BASE aTool)

Definition at line 41 of file board_commit.cpp.

42 {
43  m_toolMgr = aTool->GetManager();
45 }
bool m_isFootprintEditor
Definition: board_commit.h:64
TOOL_MANAGER * m_toolMgr
Definition: board_commit.h:63
TOOL_MANAGER * GetManager() const
Function GetManager() Returns the instance of TOOL_MANAGER that takes care of the tool.
Definition: tool_base.h:143
bool IsFootprintEditor() const

References TOOL_BASE::GetManager(), and PCB_TOOL_BASE::IsFootprintEditor().

◆ ~BOARD_COMMIT()

BOARD_COMMIT::~BOARD_COMMIT ( )
virtual

Definition at line 55 of file board_commit.cpp.

56 {
57 }

Member Function Documentation

◆ Add()

◆ Added()

COMMIT& COMMIT::Added ( EDA_ITEM aItem)
inlineinherited

Notifies observers that aItem has been added

Definition at line 84 of file commit.h.

85  {
86  return Stage( aItem, CHT_ADD | CHT_DONE );
87  }
virtual COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType)
Adds a change of the item aItem of type aChangeType to the change list.
Definition: commit.cpp:46
Definition: commit.h:38
Flag to indicate the change is already applied, just notify observers (not compatible with CHT_MODIFY...
Definition: commit.h:45

References CHT_ADD, CHT_DONE, and COMMIT::Stage().

◆ clear()

void COMMIT::clear ( )
inlineprotectedinherited

Definition at line 156 of file commit.h.

157  {
158  m_changedItems.clear();
159  m_changes.clear();
160  }
std::set< EDA_ITEM * > m_changedItems
Definition: commit.h:176
std::vector< COMMIT_LINE > m_changes
Definition: commit.h:177

References COMMIT::m_changedItems, and COMMIT::m_changes.

◆ convert()

CHANGE_TYPE COMMIT::convert ( UNDO_REDO  aType) const
protectedinherited

Definition at line 202 of file commit.cpp.

203 {
204  switch( aType )
205  {
206  case UNDO_REDO::NEWITEM:
207  return CHT_ADD;
208 
209  case UNDO_REDO::DELETED:
210  return CHT_REMOVE;
211 
212  default:
213  assert( false );
214  // fall through
215 
216  case UNDO_REDO::CHANGED:
217  case UNDO_REDO::MOVED:
220  case UNDO_REDO::ROTATED:
222  case UNDO_REDO::FLIPPED:
223  return CHT_MODIFY;
224  }
225 }
Definition: commit.h:38

References CHANGED, CHT_ADD, CHT_MODIFY, CHT_REMOVE, DELETED, FLIPPED, MIRRORED_X, MIRRORED_Y, MOVED, NEWITEM, ROTATED, and ROTATED_CLOCKWISE.

Referenced by COMMIT::Stage().

◆ createModified()

COMMIT & COMMIT::createModified ( EDA_ITEM aItem,
EDA_ITEM aCopy,
int  aExtraFlags = 0 
)
protectedinherited

Definition at line 150 of file commit.cpp.

151 {
152  EDA_ITEM* parent = parentObject( aItem );
153  auto entryIt = m_changedItems.find( parent );
154 
155  if( entryIt != m_changedItems.end() )
156  {
157  delete aCopy;
158  return *this; // item has been already modified once
159  }
160 
161  makeEntry( parent, CHT_MODIFY | aExtraFlags, aCopy );
162 
163  return *this;
164 }
std::set< EDA_ITEM * > m_changedItems
Definition: commit.h:176
EDA_ITEM is a base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:148
virtual EDA_ITEM * parentObject(EDA_ITEM *aItem) const =0
virtual void makeEntry(EDA_ITEM *aItem, CHANGE_TYPE aType, EDA_ITEM *aCopy=NULL)
Definition: commit.cpp:167

References CHT_MODIFY, COMMIT::m_changedItems, COMMIT::makeEntry(), and COMMIT::parentObject().

Referenced by COMMIT::Modified(), and COMMIT::Stage().

◆ Empty()

bool COMMIT::Empty ( ) const
inlineinherited

Definition at line 139 of file commit.h.

140  {
141  return m_changes.empty();
142  }
std::vector< COMMIT_LINE > m_changes
Definition: commit.h:177

References COMMIT::m_changes.

Referenced by DIALOG_CLEANUP_GRAPHICS::doCleanup(), and DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup().

◆ findEntry()

COMMIT::COMMIT_LINE * COMMIT::findEntry ( EDA_ITEM aItem)
protectedinherited

Searches for an entry describing change for a particular item.

Returns
null if there is no related entry.

Definition at line 190 of file commit.cpp.

191 {
192  for( COMMIT_LINE& change : m_changes )
193  {
194  if( change.m_item == aItem )
195  return &change;
196  }
197 
198  return nullptr;
199 }
std::vector< COMMIT_LINE > m_changes
Definition: commit.h:177

References COMMIT::m_changes.

Referenced by COMMIT::GetStatus().

◆ GetStatus()

int COMMIT::GetStatus ( EDA_ITEM aItem)
inherited

Returns status of an item.

Definition at line 132 of file commit.cpp.

133 {
134  COMMIT_LINE* entry = findEntry( parentObject( aItem ) );
135 
136  return entry ? entry->m_type : 0;
137 }
COMMIT_LINE * findEntry(EDA_ITEM *aItem)
Searches for an entry describing change for a particular item.
Definition: commit.cpp:190
virtual EDA_ITEM * parentObject(EDA_ITEM *aItem) const =0

References COMMIT::findEntry(), COMMIT::COMMIT_LINE::m_type, and COMMIT::parentObject().

Referenced by BOARD_NETLIST_UPDATER::updateComponentPadConnections(), and BOARD_NETLIST_UPDATER::updateComponentParameters().

◆ HasRemoveEntry()

bool BOARD_COMMIT::HasRemoveEntry ( EDA_ITEM aItem)

Definition at line 452 of file board_commit.cpp.

453 {
454  COMMIT::COMMIT_LINE* line = findEntry( aItem );
455  return line != nullptr && line->m_type == CHT_REMOVE;
456 }
CHANGE_TYPE m_type
Optional copy of the item
Definition: commit.h:152
COMMIT_LINE * findEntry(EDA_ITEM *aItem)
Searches for an entry describing change for a particular item.
Definition: commit.cpp:190

References CHT_REMOVE, and COMMIT::COMMIT_LINE::m_type.

◆ makeEntry()

void COMMIT::makeEntry ( EDA_ITEM aItem,
CHANGE_TYPE  aType,
EDA_ITEM aCopy = NULL 
)
protectedvirtualinherited

Definition at line 167 of file commit.cpp.

168 {
169  // Expect an item copy if it is going to be modified
170  wxASSERT( !!aCopy == ( ( aType & CHT_TYPE ) == CHT_MODIFY ) );
171 
172  if( m_changedItems.find( aItem ) != m_changedItems.end() )
173  {
174  eraseIf( m_changes, [aItem] ( const COMMIT_LINE& aEnt ) {
175  return aEnt.m_item == aItem;
176  } );
177  }
178 
179  COMMIT_LINE ent;
180 
181  ent.m_item = aItem;
182  ent.m_type = aType;
183  ent.m_copy = aCopy;
184 
185  m_changedItems.insert( aItem );
186  m_changes.push_back( ent );
187 }
void eraseIf(Container &c, F &&f)
Definition: commit.cpp:141
std::set< EDA_ITEM * > m_changedItems
Definition: commit.h:176
std::vector< COMMIT_LINE > m_changes
Definition: commit.h:177

References CHT_MODIFY, CHT_TYPE, eraseIf(), COMMIT::m_changedItems, COMMIT::m_changes, COMMIT::COMMIT_LINE::m_copy, COMMIT::COMMIT_LINE::m_item, and COMMIT::COMMIT_LINE::m_type.

Referenced by COMMIT::createModified(), and COMMIT::Stage().

◆ Modified()

COMMIT& COMMIT::Modified ( EDA_ITEM aItem,
EDA_ITEM aCopy 
)
inlineinherited

Creates an undo entry for an item that has been already modified.

Requires a copy done before the modification.

Definition at line 110 of file commit.h.

111  {
112  return createModified( aItem, aCopy );
113  }
COMMIT & createModified(EDA_ITEM *aItem, EDA_ITEM *aCopy, int aExtraFlags=0)
Definition: commit.cpp:150

References COMMIT::createModified().

Referenced by COMMIT::Stage(), BOARD_NETLIST_UPDATER::updateComponentPadConnections(), and BOARD_NETLIST_UPDATER::updateComponentParameters().

◆ Modify()

COMMIT& COMMIT::Modify ( EDA_ITEM aItem)
inlineinherited

Modifies a given item in the model.

Must be called before modification is performed.

Definition at line 103 of file commit.h.

104  {
105  return Stage( aItem, CHT_MODIFY );
106  }
virtual COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType)
Adds a change of the item aItem of type aChangeType to the change list.
Definition: commit.cpp:46

References CHT_MODIFY, and COMMIT::Stage().

Referenced by POINT_EDITOR::addCorner(), AR_AUTOPLACER::AutoplaceFootprints(), doPushPadProperties(), DRAWING_TOOL::DrawVia(), PAD_TOOL::EnumeratePads(), PAD_TOOL::explodePad(), ZONE_FILLER::Fill(), ARRAY_CREATOR::Invoke(), TRACKS_CLEANER::mergeCollinearSegments(), mergeZones(), PCB_EDITOR_CONTROL::modifyLockSelected(), FOOTPRINT_EDIT_FRAME::OnEditItemRequest(), PAD_TOOL::pastePadProperties(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), CN_CONNECTIVITY_ALGO::propagateConnections(), DIALOG_BOARD_REANNOTATE::ReannotateBoard(), PAD_TOOL::recombinePad(), POINT_EDITOR::removeCorner(), GROUP_TOOL::RemoveFromGroup(), DRAWING_TOOL::SetAnchor(), PCB_EDITOR_CONTROL::TrackWidthDec(), PCB_EDITOR_CONTROL::TrackWidthInc(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), DIALOG_UNUSED_PAD_LAYERS::TransferDataFromWindow(), DIALOG_DIMENSION_PROPERTIES::TransferDataFromWindow(), DIALOG_TARGET_PROPERTIES::TransferDataFromWindow(), DIALOG_GROUP_PROPERTIES::TransferDataFromWindow(), DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_PROPERTIES::TransferDataFromWindow(), DIALOG_FOOTPRINT_FP_EDITOR::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::TransferDataFromWindow(), BOARD_NETLIST_UPDATER::updateCopperZoneNets(), PCB_EDITOR_CONTROL::ViaSizeDec(), PCB_EDITOR_CONTROL::ViaSizeInc(), ZONE_FILLER_TOOL::ZoneUnfill(), and ZONE_FILLER_TOOL::ZoneUnfillAll().

◆ parentObject()

EDA_ITEM * BOARD_COMMIT::parentObject ( EDA_ITEM aItem) const
overrideprivatevirtual

Implements COMMIT.

Definition at line 366 of file board_commit.cpp.

367 {
368  switch( aItem->Type() )
369  {
370  case PCB_PAD_T:
371  case PCB_FP_SHAPE_T:
372  case PCB_FP_TEXT_T:
373  case PCB_FP_ZONE_T:
374  return aItem->GetParent();
375 
376  case PCB_ZONE_T:
377  wxASSERT( !dynamic_cast<FOOTPRINT*>( aItem->GetParent() ) );
378  return aItem;
379 
380  default:
381  break;
382  }
383 
384  return aItem;
385 }
class FP_TEXT, text in a footprint
Definition: typeinfo.h:93
class FP_SHAPE, a footprint edge
Definition: typeinfo.h:94
class PAD, a pad in a footprint
Definition: typeinfo.h:90
EDA_ITEM * GetParent() const
Definition: eda_item.h:183
class ZONE, a copper pour area
Definition: typeinfo.h:106
class ZONE, managed by a footprint
Definition: typeinfo.h:95
KICAD_T Type() const
Function Type()
Definition: eda_item.h:181

References EDA_ITEM::GetParent(), PCB_FP_SHAPE_T, PCB_FP_TEXT_T, PCB_FP_ZONE_T, PCB_PAD_T, PCB_ZONE_T, and EDA_ITEM::Type().

◆ Push()

void BOARD_COMMIT::Push ( const wxString &  aMessage = wxT("A commit"),
bool  aCreateUndoEntry = true,
bool  aSetDirtyBit = true 
)
overridevirtual

Executes the changes.

Implements COMMIT.

Definition at line 84 of file board_commit.cpp.

85 {
86  // Objects potentially interested in changes:
87  PICKED_ITEMS_LIST undoList;
88  KIGFX::VIEW* view = m_toolMgr->GetView();
89  BOARD* board = (BOARD*) m_toolMgr->GetModel();
91  auto connectivity = board->GetConnectivity();
92  std::set<EDA_ITEM*> savedModules;
94  bool itemsDeselected = false;
95 
96  if( Empty() )
97  return;
98 
99  for( COMMIT_LINE& ent : m_changes )
100  {
101  int changeType = ent.m_type & CHT_TYPE;
102  int changeFlags = ent.m_type & CHT_FLAGS;
103  BOARD_ITEM* boardItem = static_cast<BOARD_ITEM*>( ent.m_item );
104 
105  // Module items need to be saved in the undo buffer before modification
106  if( m_isFootprintEditor )
107  {
108  // Be sure that we are storing a footprint
109  if( ent.m_item->Type() != PCB_FOOTPRINT_T )
110  ent.m_item = ent.m_item->GetParent();
111 
112  // We have not saved the footprint yet, so let's create an entry
113  if( savedModules.count( ent.m_item ) == 0 )
114  {
115  if( !ent.m_copy )
116  {
117  wxASSERT( changeType != CHT_MODIFY ); // too late to make a copy..
118  ent.m_copy = ent.m_item->Clone();
119  }
120 
121  wxASSERT( ent.m_item->Type() == PCB_FOOTPRINT_T );
122  wxASSERT( ent.m_copy->Type() == PCB_FOOTPRINT_T );
123 
124  if( aCreateUndoEntry )
125  {
126  ITEM_PICKER itemWrapper( nullptr, ent.m_item, UNDO_REDO::CHANGED );
127  itemWrapper.SetLink( ent.m_copy );
128  undoList.PushItem( itemWrapper );
129  frame->SaveCopyInUndoList( undoList, UNDO_REDO::CHANGED );
130  }
131 
132  savedModules.insert( ent.m_item );
133  static_cast<FOOTPRINT*>( ent.m_item )->SetLastEditTime();
134  }
135  }
136 
137  switch( changeType )
138  {
139  case CHT_ADD:
140  {
141  if( m_isFootprintEditor )
142  {
143  // footprints inside footprints are not supported yet
144  wxASSERT( boardItem->Type() != PCB_FOOTPRINT_T );
145 
146  boardItem->SetParent( board->Footprints().front() );
147 
148  if( !( changeFlags & CHT_DONE ) )
149  board->Footprints().front()->Add( boardItem );
150  }
151  else if( boardItem->Type() == PCB_FP_TEXT_T ||
152  boardItem->Type() == PCB_FP_SHAPE_T ||
153  boardItem->Type() == PCB_FP_ZONE_T )
154  {
155  wxASSERT( boardItem->GetParent() &&
156  boardItem->GetParent()->Type() == PCB_FOOTPRINT_T );
157  }
158  else
159  {
160  if( aCreateUndoEntry )
161  undoList.PushItem( ITEM_PICKER( nullptr, boardItem, UNDO_REDO::NEWITEM ) );
162 
163  if( !( changeFlags & CHT_DONE ) )
164  board->Add( boardItem ); // handles connectivity
165  }
166 
167  if( boardItem->Type() != PCB_NETINFO_T && boardItem->Type() != PCB_GROUP_T )
168  view->Add( boardItem );
169 
170  break;
171  }
172 
173  case CHT_REMOVE:
174  {
175  if( !m_isFootprintEditor && aCreateUndoEntry )
176  undoList.PushItem( ITEM_PICKER( nullptr, boardItem, UNDO_REDO::DELETED ) );
177 
178  if( boardItem->IsSelected() )
179  {
180  selTool->RemoveItemFromSel( boardItem, true /* quiet mode */ );
181  itemsDeselected = true;
182  }
183 
184  switch( boardItem->Type() )
185  {
186  // Module items
187  case PCB_PAD_T:
188  case PCB_FP_SHAPE_T:
189  case PCB_FP_TEXT_T:
190  case PCB_FP_ZONE_T:
191  // This level can only handle footprint children when editing footprints
192  wxASSERT( m_isFootprintEditor );
193 
194  if( boardItem->Type() == PCB_FP_TEXT_T )
195  {
196  FP_TEXT* text = static_cast<FP_TEXT*>( boardItem );
197 
198  // don't allow deletion of Reference or Value
199  if( text->GetType() != FP_TEXT::TEXT_is_DIVERS )
200  break;
201  }
202 
203  view->Remove( boardItem );
204 
205  if( !( changeFlags & CHT_DONE ) )
206  {
207  FOOTPRINT* footprint = static_cast<FOOTPRINT*>( boardItem->GetParent() );
208  wxASSERT( footprint && footprint->Type() == PCB_FOOTPRINT_T );
209  footprint->Delete( boardItem );
210  }
211 
212  break;
213 
214  // Board items
215  case PCB_SHAPE_T: // a shape (normally not on copper layers)
216  case PCB_TEXT_T: // a text on a layer
217  case PCB_TRACE_T: // a track segment (segment on a copper layer)
218  case PCB_ARC_T: // an arced track segment (segment on a copper layer)
219  case PCB_VIA_T: // a via (like track segment on a copper layer)
220  case PCB_DIM_ALIGNED_T: // a dimension (graphic item)
221  case PCB_DIM_CENTER_T:
223  case PCB_DIM_LEADER_T: // a leader dimension
224  case PCB_TARGET_T: // a target (graphic item)
225  case PCB_MARKER_T: // a marker used to show something
226  case PCB_ZONE_T:
227  view->Remove( boardItem );
228 
229  if( !( changeFlags & CHT_DONE ) )
230  board->Remove( boardItem );
231 
232  break;
233 
234  case PCB_FOOTPRINT_T:
235  {
236  // No support for nested footprints (yet)
237  wxASSERT( !m_isFootprintEditor );
238 
239  FOOTPRINT* footprint = static_cast<FOOTPRINT*>( boardItem );
240  view->Remove( footprint );
241  footprint->ClearFlags();
242 
243  if( !( changeFlags & CHT_DONE ) )
244  board->Remove( footprint ); // handles connectivity
245  }
246  break;
247 
248  case PCB_GROUP_T:
249  if( !( changeFlags & CHT_DONE ) )
250  {
251  if( m_isFootprintEditor )
252  board->GetFirstFootprint()->Remove( boardItem );
253  else
254  board->Remove( boardItem );
255  }
256  break;
257 
258  // Metadata items
259  case PCB_NETINFO_T:
260  board->Remove( boardItem );
261  break;
262 
263  default: // other types do not need to (or should not) be handled
264  wxASSERT( false );
265  break;
266  }
267 
268  break;
269  }
270 
271  case CHT_MODIFY:
272  {
273  if( !m_isFootprintEditor && aCreateUndoEntry )
274  {
275  ITEM_PICKER itemWrapper( nullptr, boardItem, UNDO_REDO::CHANGED );
276  wxASSERT( ent.m_copy );
277  itemWrapper.SetLink( ent.m_copy );
278  undoList.PushItem( itemWrapper );
279  }
280 
281  if( ent.m_copy )
282  connectivity->MarkItemNetAsDirty( static_cast<BOARD_ITEM*>( ent.m_copy ) );
283 
284  connectivity->Update( boardItem );
285  view->Update( boardItem );
286 
287  if( m_isFootprintEditor )
288  {
289  static_cast<FOOTPRINT*>( boardItem )->RunOnChildren(
290  [&]( BOARD_ITEM* aChild )
291  {
292  view->Update( aChild );
293  });
294  }
295 
296  board->OnItemChanged( boardItem );
297 
298  // if no undo entry is needed, the copy would create a memory leak
299  if( !aCreateUndoEntry )
300  delete ent.m_copy;
301 
302  break;
303  }
304 
305  default:
306  wxASSERT( false );
307  break;
308  }
309  }
310 
311  if ( !m_isFootprintEditor )
312  {
313  size_t num_changes = m_changes.size();
314 
315  connectivity->RecalculateRatsnest( this );
316  connectivity->ClearDynamicRatsnest();
317  frame->GetCanvas()->RedrawRatsnest();
318 
319  if( m_changes.size() > num_changes )
320  {
321  for( size_t i = num_changes; i < m_changes.size(); ++i )
322  {
323  COMMIT_LINE& ent = m_changes[i];
324 
325  // This should only be modifications from the connectivity algo
326  wxASSERT( ( ent.m_type & CHT_TYPE ) == CHT_MODIFY );
327 
328  auto boardItem = static_cast<BOARD_ITEM*>( ent.m_item );
329 
330  if( aCreateUndoEntry )
331  {
332  ITEM_PICKER itemWrapper( nullptr, boardItem, UNDO_REDO::CHANGED );
333  wxASSERT( ent.m_copy );
334  itemWrapper.SetLink( ent.m_copy );
335  undoList.PushItem( itemWrapper );
336  }
337  else
338  {
339  delete ent.m_copy;
340  }
341 
342  view->Update( boardItem );
343  }
344  }
345  }
346 
347  if( !m_isFootprintEditor && aCreateUndoEntry )
348  frame->SaveCopyInUndoList( undoList, UNDO_REDO::UNSPECIFIED );
349 
351 
352  if( itemsDeselected )
354 
355  if( aSetDirtyBit )
356  frame->OnModify();
357  else
358  frame->Update3DView( false );
359 
360  frame->UpdateMsgPanel();
361 
362  clear();
363 }
KIGFX::VIEW * GetView() const
Definition: tool_manager.h:290
class ALIGNED_DIMENSION, a linear dimension (graphic item)
Definition: typeinfo.h:101
class LEADER, a leader dimension (graphic item)
Definition: typeinfo.h:102
void clear()
Definition: commit.h:156
class FP_TEXT, text in a footprint
Definition: typeinfo.h:93
bool IsSelected() const
Definition: eda_item.h:191
static const TOOL_EVENT UnselectedEvent
Definition: actions.h:209
BOARD_ITEM is a base class for any item which can be embedded within the BOARD container class,...
Definition: board_item.h:86
class PCB_GROUP, a set of BOARD_ITEMs
Definition: typeinfo.h:109
SELECTION_TOOL.
class CENTER_DIMENSION, a center point marking (graphic item)
Definition: typeinfo.h:103
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
Definition: commit.h:38
virtual void Remove(VIEW_ITEM *aItem)
Function Remove() Removes a VIEW_ITEM from the view.
Definition: view.cpp:357
bool m_isFootprintEditor
Definition: board_commit.h:64
class PCB_TEXT, text on a layer
Definition: typeinfo.h:92
class ARC, an arc track segment on a copper layer
Definition: typeinfo.h:98
Flag to indicate the change is already applied, just notify observers (not compatible with CHT_MODIFY...
Definition: commit.h:45
void PushItem(const ITEM_PICKER &aItem)
Function PushItem pushes aItem to the top of the list.
class FP_SHAPE, a footprint edge
Definition: typeinfo.h:94
class PAD, a pad in a footprint
Definition: typeinfo.h:90
TOOL_MANAGER * m_toolMgr
Definition: board_commit.h:63
EDA_ITEM * GetModel() const
Definition: tool_manager.h:297
void RedrawRatsnest()
Forces refresh of the ratsnest visual representation
virtual void SetParent(EDA_ITEM *aParent)
Definition: eda_item.h:184
class TRACK, a track segment (segment on a copper layer)
Definition: typeinfo.h:96
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT) override
Adds an item to the container.
Definition: board.cpp:553
FOOTPRINT * GetFirstFootprint() const
Gets the first footprint on the board or nullptr.
Definition: board.h:348
TOOL_TYPE m_type
Stores the type of the tool.
Definition: tool_base.h:211
TEXT_TYPE GetType() const
Definition: fp_text.h:139
FOOTPRINTS & Footprints()
Definition: board.h:283
std::shared_ptr< CONNECTIVITY_DATA > GetConnectivity() const
Return a list of missing connections between components/tracks.
Definition: board.h:382
void RemoveItemFromSel(BOARD_ITEM *aItem, bool aQuietMode=false)
class ZONE, a copper pour area
Definition: typeinfo.h:106
PICKED_ITEMS_LIST is a holder to handle information on schematic or board items.
All active tools
Definition: tool_event.h:147
bool Empty() const
Definition: commit.h:139
class PCB_TARGET, a target (graphic item)
Definition: typeinfo.h:105
class FOOTPRINT, a footprint
Definition: typeinfo.h:89
TOOLS_HOLDER * GetToolHolder() const
Definition: tool_manager.h:301
virtual void OnModify()
Function OnModify Must be called after a change in order to set the "modify" flag of the current scre...
void Remove(BOARD_ITEM *aItem) override
Definition: footprint.cpp:495
class MARKER_PCB, a marker used to show something
Definition: typeinfo.h:99
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:186
class NETINFO_ITEM, a description of a net
Definition: typeinfo.h:108
std::vector< COMMIT_LINE > m_changes
Definition: commit.h:177
class ZONE, managed by a footprint
Definition: typeinfo.h:95
void OnItemChanged(BOARD_ITEM *aItem)
Notify the board and its listeners that an item on the board has been modified in some way.
Definition: board.cpp:1953
void ClearFlags(STATUS_FLAGS aMask=EDA_ITEM_ALL_FLAGS)
Definition: eda_item.h:221
virtual void Delete(BOARD_ITEM *aItem)
Removes an item from the container and deletes it.
class ORTHOGONAL_DIMENSION, a linear dimension constrained to x/y
Definition: typeinfo.h:104
class VIA, a via (like a track segment on a copper layer)
Definition: typeinfo.h:97
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Function Add() Adds a VIEW_ITEM to the view.
Definition: view.cpp:327
virtual void SaveCopyInUndoList(EDA_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, const wxPoint &aTransformPoint=wxPoint(0, 0))=0
Function SaveCopyInUndoList (virtual pure) Creates a new entry in undo list of commands.
VIEW.
Definition: view.h:63
virtual void Update3DView(bool aForceReload, const wxString *aTitle=nullptr)
Update the 3D view, if the viewer is opened by this frame.
BOARD_ITEM_CONTAINER * GetParent() const
Definition: board_item.h:179
void PostEvent(const TOOL_EVENT &aEvent)
Puts an event to the event queue to be processed at the end of event processing cycle.
Definition: tool_manager.h:274
class PCB_SHAPE, a segment not on copper layers
Definition: typeinfo.h:91
PCB_BASE_FRAME basic PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
void Remove(BOARD_ITEM *aBoardItem) override
Removes an item from the container.
Definition: board.cpp:642
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const
For dynamic VIEWs, informs the associated VIEW that the graphical representation of this item has cha...
Definition: view.cpp:1513
KICAD_T Type() const
Function Type()
Definition: eda_item.h:181
virtual void UpdateMsgPanel()
Redraw the message panel.

References KIGFX::VIEW::Add(), BOARD::Add(), AS_GLOBAL, CHANGED, CHT_ADD, CHT_DONE, CHT_FLAGS, CHT_MODIFY, CHT_REMOVE, CHT_TYPE, EDA_ITEM::ClearFlags(), BOARD_ITEM_CONTAINER::Delete(), DELETED, BOARD::Footprints(), PCB_BASE_FRAME::GetCanvas(), BOARD::GetConnectivity(), BOARD::GetFirstFootprint(), BOARD_ITEM::GetParent(), FP_TEXT::GetType(), EDA_ITEM::IsSelected(), COMMIT::COMMIT_LINE::m_copy, COMMIT::COMMIT_LINE::m_item, COMMIT::COMMIT_LINE::m_type, TOOL_BASE::m_type, NEWITEM, BOARD::OnItemChanged(), PCB_BASE_FRAME::OnModify(), PCB_ARC_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_FOOTPRINT_T, PCB_FP_SHAPE_T, PCB_FP_TEXT_T, PCB_FP_ZONE_T, PCB_GROUP_T, PCB_MARKER_T, PCB_NETINFO_T, PCB_PAD_T, PCB_SHAPE_T, PCB_TARGET_T, PCB_TEXT_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_T, PICKED_ITEMS_LIST::PushItem(), PCB_DRAW_PANEL_GAL::RedrawRatsnest(), KIGFX::VIEW::Remove(), FOOTPRINT::Remove(), BOARD::Remove(), SELECTION_TOOL::RemoveItemFromSel(), PCB_BASE_FRAME::SaveCopyInUndoList(), ITEM_PICKER::SetLink(), EDA_ITEM::SetParent(), TA_MODEL_CHANGE, TC_MESSAGE, FP_TEXT::TEXT_is_DIVERS, EDA_ITEM::Type(), EVENTS::UnselectedEvent, UNSPECIFIED, KIGFX::VIEW::Update(), PCB_BASE_FRAME::Update3DView(), and EDA_DRAW_FRAME::UpdateMsgPanel().

Referenced by DIALOG_GLOBAL_DELETION::AcceptPcbDelete(), POINT_EDITOR::addCorner(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), ALIGN_DISTRIBUTE_TOOL::AlignBottom(), ALIGN_DISTRIBUTE_TOOL::AlignCenterX(), ALIGN_DISTRIBUTE_TOOL::AlignCenterY(), ALIGN_DISTRIBUTE_TOOL::AlignTop(), AUTOPLACE_TOOL::autoplace(), ZONE_FILLER_TOOL::CheckAllZones(), ZONE_CREATE_HELPER::commitZone(), MICROWAVE_TOOL::createInductorBetween(), ALIGN_DISTRIBUTE_TOOL::DistributeHorizontally(), ALIGN_DISTRIBUTE_TOOL::DistributeVertically(), ALIGN_DISTRIBUTE_TOOL::doAlignLeft(), ALIGN_DISTRIBUTE_TOOL::doAlignRight(), DIALOG_CLEANUP_GRAPHICS::doCleanup(), DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup(), PCB_TOOL_BASE::doInteractiveItemPlacement(), DRAWING_TOOL::DrawArc(), DRAWING_TOOL::DrawCircle(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::DrawLine(), DRAWING_TOOL::DrawRectangle(), DRAWING_TOOL::drawSegment(), PCB_EDIT_FRAME::Edit_Zone_Params(), PAD_TOOL::EnumeratePads(), PAD_TOOL::explodePad(), ZONE_FILLER_TOOL::FillAllZones(), ARRAY_CREATOR::Invoke(), CONVERT_TOOL::LinesToPoly(), PCB_EDITOR_CONTROL::modifyLockSelected(), FOOTPRINT_EDIT_FRAME::OnEditItemRequest(), DIALOG_EXCHANGE_FOOTPRINTS::OnOKClicked(), POINT_EDITOR::OnSelectionChange(), PAD_TOOL::pastePadProperties(), ZONE_CREATE_HELPER::performZoneCutout(), DRAWING_TOOL::PlaceImportedGraphics(), PCB_EDITOR_CONTROL::PlaceModule(), DRAWING_TOOL::PlaceText(), CONVERT_TOOL::PolyToLines(), PAD_TOOL::pushPadSettings(), DIALOG_BOARD_REANNOTATE::ReannotateBoard(), PAD_TOOL::recombinePad(), POINT_EDITOR::removeCorner(), GROUP_TOOL::RemoveFromGroup(), PCB_EDIT_FRAME::ResolveDRCExclusions(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), CONVERT_TOOL::SegmentToArc(), DRAWING_TOOL::SetAnchor(), PCB_EDITOR_CONTROL::TrackWidthDec(), PCB_EDITOR_CONTROL::TrackWidthInc(), DIALOG_DIMENSION_PROPERTIES::TransferDataFromWindow(), DIALOG_TARGET_PROPERTIES::TransferDataFromWindow(), DIALOG_GROUP_PROPERTIES::TransferDataFromWindow(), DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_PROPERTIES::TransferDataFromWindow(), DIALOG_FOOTPRINT_FP_EDITOR::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::TransferDataFromWindow(), BOARD_NETLIST_UPDATER::UpdateNetlist(), PCB_EDITOR_CONTROL::ViaSizeDec(), PCB_EDITOR_CONTROL::ViaSizeInc(), PCB_EDITOR_CONTROL::ZoneDuplicate(), ZONE_FILLER_TOOL::ZoneFill(), PCB_EDITOR_CONTROL::ZoneMerge(), ZONE_FILLER_TOOL::ZoneUnfill(), and ZONE_FILLER_TOOL::ZoneUnfillAll().

◆ Remove()

COMMIT& COMMIT::Remove ( EDA_ITEM aItem)
inlineinherited

Removes a new item from the model

Definition at line 90 of file commit.h.

91  {
92  return Stage( aItem, CHT_REMOVE );
93  }
virtual COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType)
Adds a change of the item aItem of type aChangeType to the change list.
Definition: commit.cpp:46

References CHT_REMOVE, and COMMIT::Stage().

Referenced by DIALOG_GLOBAL_DELETION::AcceptPcbDelete(), BOARD_NETLIST_UPDATER::deleteUnusedComponents(), PCB_EDIT_FRAME::ExchangeFootprint(), GRAPHICS_CLEANER::mergeRects(), mergeZones(), ZONE_CREATE_HELPER::performZoneCutout(), PAD_TOOL::recombinePad(), and POINT_EDITOR::removeCorner().

◆ Removed()

COMMIT& COMMIT::Removed ( EDA_ITEM aItem)
inlineinherited

Notifies observers that aItem has been removed

Definition at line 96 of file commit.h.

97  {
98  return Stage( aItem, CHT_REMOVE | CHT_DONE );
99  }
virtual COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType)
Adds a change of the item aItem of type aChangeType to the change list.
Definition: commit.cpp:46
Flag to indicate the change is already applied, just notify observers (not compatible with CHT_MODIFY...
Definition: commit.h:45

References CHT_DONE, CHT_REMOVE, and COMMIT::Stage().

Referenced by GRAPHICS_CLEANER::cleanupSegments(), TRACKS_CLEANER::deleteDanglingTracks(), TRACKS_CLEANER::mergeCollinearSegments(), TRACKS_CLEANER::removeItems(), and BOARD_NETLIST_UPDATER::UpdateNetlist().

◆ Revert()

void BOARD_COMMIT::Revert ( )
overridevirtual

Revertes the commit by restoring the modifed items state.

Implements COMMIT.

Definition at line 388 of file board_commit.cpp.

389 {
390  PICKED_ITEMS_LIST undoList;
391  KIGFX::VIEW* view = m_toolMgr->GetView();
392  BOARD* board = (BOARD*) m_toolMgr->GetModel();
393  auto connectivity = board->GetConnectivity();
394 
395  for( auto it = m_changes.rbegin(); it != m_changes.rend(); ++it )
396  {
397  COMMIT_LINE& ent = *it;
398  BOARD_ITEM* item = static_cast<BOARD_ITEM*>( ent.m_item );
399  BOARD_ITEM* copy = static_cast<BOARD_ITEM*>( ent.m_copy );
400  int changeType = ent.m_type & CHT_TYPE;
401  int changeFlags = ent.m_type & CHT_FLAGS;
402 
403  switch( changeType )
404  {
405  case CHT_ADD:
406  if( !( changeFlags & CHT_DONE ) )
407  break;
408 
409  view->Remove( item );
410  connectivity->Remove( item );
411  board->Remove( item );
412  break;
413 
414  case CHT_REMOVE:
415  if( !( changeFlags & CHT_DONE ) )
416  break;
417 
418  view->Add( item );
419  connectivity->Add( item );
420  board->Add( item );
421  break;
422 
423  case CHT_MODIFY:
424  {
425  view->Remove( item );
426  connectivity->Remove( item );
427 
428  item->SwapData( copy );
429 
430  view->Add( item );
431  connectivity->Add( item );
432  board->OnItemChanged( item );
433  delete copy;
434  break;
435  }
436 
437  default:
438  wxASSERT( false );
439  break;
440  }
441  }
442 
443  if ( !m_isFootprintEditor )
444  connectivity->RecalculateRatsnest();
445 
447  selTool->RebuildSelection();
448 
449  clear();
450 }
KIGFX::VIEW * GetView() const
Definition: tool_manager.h:290
void clear()
Definition: commit.h:156
BOARD_ITEM is a base class for any item which can be embedded within the BOARD container class,...
Definition: board_item.h:86
SELECTION_TOOL.
Definition: commit.h:38
virtual void Remove(VIEW_ITEM *aItem)
Function Remove() Removes a VIEW_ITEM from the view.
Definition: view.cpp:357
bool m_isFootprintEditor
Definition: board_commit.h:64
Flag to indicate the change is already applied, just notify observers (not compatible with CHT_MODIFY...
Definition: commit.h:45
TOOL_MANAGER * m_toolMgr
Definition: board_commit.h:63
EDA_ITEM * GetModel() const
Definition: tool_manager.h:297
virtual void SwapData(BOARD_ITEM *aImage)
Swap data between aItem and aImage.
Definition: board_item.cpp:124
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT) override
Adds an item to the container.
Definition: board.cpp:553
std::shared_ptr< CONNECTIVITY_DATA > GetConnectivity() const
Return a list of missing connections between components/tracks.
Definition: board.h:382
PICKED_ITEMS_LIST is a holder to handle information on schematic or board items.
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:186
std::vector< COMMIT_LINE > m_changes
Definition: commit.h:177
void RebuildSelection()
Rebuilds the selection from the EDA_ITEMs' selection flags.
void OnItemChanged(BOARD_ITEM *aItem)
Notify the board and its listeners that an item on the board has been modified in some way.
Definition: board.cpp:1953
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Function Add() Adds a VIEW_ITEM to the view.
Definition: view.cpp:327
VIEW.
Definition: view.h:63
void Remove(BOARD_ITEM *aBoardItem) override
Removes an item from the container.
Definition: board.cpp:642

References KIGFX::VIEW::Add(), BOARD::Add(), CHT_ADD, CHT_DONE, CHT_FLAGS, CHT_MODIFY, CHT_REMOVE, CHT_TYPE, BOARD::GetConnectivity(), COMMIT::COMMIT_LINE::m_copy, COMMIT::COMMIT_LINE::m_item, COMMIT::COMMIT_LINE::m_type, BOARD::OnItemChanged(), SELECTION_TOOL::RebuildSelection(), KIGFX::VIEW::Remove(), BOARD::Remove(), and BOARD_ITEM::SwapData().

Referenced by AUTOPLACE_TOOL::autoplace(), ZONE_FILLER_TOOL::CheckAllZones(), ZONE_CREATE_HELPER::commitZone(), PCB_EDIT_FRAME::Edit_Zone_Params(), PAD_TOOL::EnumeratePads(), PCB_EDIT_FRAME::ExportVRML_File(), ZONE_FILLER_TOOL::FillAllZones(), POINT_EDITOR::OnSelectionChange(), ZONE_CREATE_HELPER::performZoneCutout(), PCB_EDITOR_CONTROL::PlaceModule(), and ZONE_FILLER_TOOL::ZoneFill().

◆ Stage() [1/3]

COMMIT & BOARD_COMMIT::Stage ( EDA_ITEM aItem,
CHANGE_TYPE  aChangeType 
)
overridevirtual

Adds a change of the item aItem of type aChangeType to the change list.

Reimplemented from COMMIT.

Definition at line 59 of file board_commit.cpp.

60 {
61  // if aItem belongs a footprint, the full footprint will be saved
62  // because undo/redo does not handle "sub items" modifications
63  if( aItem && aItem->Type() != PCB_FOOTPRINT_T && aChangeType == CHT_MODIFY )
64  {
65  EDA_ITEM* item = aItem->GetParent();
66 
67  if( item && item->Type() == PCB_FOOTPRINT_T ) // means aItem belongs a footprint
68  aItem = item;
69  }
70 
71  return COMMIT::Stage( aItem, aChangeType );
72 }
virtual COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType)
Adds a change of the item aItem of type aChangeType to the change list.
Definition: commit.cpp:46
EDA_ITEM * GetParent() const
Definition: eda_item.h:183
class FOOTPRINT, a footprint
Definition: typeinfo.h:89
EDA_ITEM is a base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:148
KICAD_T Type() const
Function Type()
Definition: eda_item.h:181

References CHT_MODIFY, EDA_ITEM::GetParent(), PCB_FOOTPRINT_T, COMMIT::Stage(), and EDA_ITEM::Type().

Referenced by PCB_EDIT_FRAME::Edit_Zone_Params().

◆ Stage() [2/3]

COMMIT & BOARD_COMMIT::Stage ( std::vector< EDA_ITEM * > &  container,
CHANGE_TYPE  aChangeType 
)
overridevirtual

Reimplemented from COMMIT.

Definition at line 74 of file board_commit.cpp.

75 {
76  return COMMIT::Stage( container, aChangeType );
77 }
virtual COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType)
Adds a change of the item aItem of type aChangeType to the change list.
Definition: commit.cpp:46

References COMMIT::Stage().

◆ Stage() [3/3]

COMMIT & BOARD_COMMIT::Stage ( const PICKED_ITEMS_LIST aItems,
UNDO_REDO  aModFlag = UNDO_REDO::UNSPECIFIED 
)
overridevirtual

Reimplemented from COMMIT.

Definition at line 79 of file board_commit.cpp.

80 {
81  return COMMIT::Stage( aItems, aModFlag );
82 }
virtual COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType)
Adds a change of the item aItem of type aChangeType to the change list.
Definition: commit.cpp:46

References COMMIT::Stage().

◆ StageItems()

template<class Range >
COMMIT& COMMIT::StageItems ( const Range &  aRange,
CHANGE_TYPE  aChangeType 
)
inlineinherited

Definition at line 116 of file commit.h.

117  {
118  for( const auto& item : aRange )
119  Stage( item, aChangeType );
120 
121  return *this;
122  }
virtual COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType)
Adds a change of the item aItem of type aChangeType to the change list.
Definition: commit.cpp:46

References COMMIT::Stage().

Referenced by ALIGN_DISTRIBUTE_TOOL::AlignBottom(), ALIGN_DISTRIBUTE_TOOL::AlignCenterX(), ALIGN_DISTRIBUTE_TOOL::AlignCenterY(), ALIGN_DISTRIBUTE_TOOL::AlignTop(), ALIGN_DISTRIBUTE_TOOL::DistributeHorizontally(), ALIGN_DISTRIBUTE_TOOL::DistributeVertically(), ALIGN_DISTRIBUTE_TOOL::doAlignLeft(), ALIGN_DISTRIBUTE_TOOL::doAlignRight(), and POINT_EDITOR::OnSelectionChange().

Member Data Documentation

◆ m_changedItems

std::set<EDA_ITEM*> COMMIT::m_changedItems
protectedinherited

Definition at line 176 of file commit.h.

Referenced by COMMIT::clear(), COMMIT::createModified(), COMMIT::makeEntry(), and COMMIT::Stage().

◆ m_changes

std::vector<COMMIT_LINE> COMMIT::m_changes
protectedinherited

◆ m_isFootprintEditor

bool BOARD_COMMIT::m_isFootprintEditor
private

Definition at line 64 of file board_commit.h.

◆ m_toolMgr

TOOL_MANAGER* BOARD_COMMIT::m_toolMgr
private

Definition at line 63 of file board_commit.h.


The documentation for this class was generated from the following files: