|
KiCad PCB EDA Suite
|
A holder to handle a list of undo (or redo) commands. More...
#include <undo_redo_container.h>
Public Member Functions | |
| UNDO_REDO_CONTAINER () | |
| ~UNDO_REDO_CONTAINER () | |
| UNDO_REDO_CONTAINER (const UNDO_REDO_CONTAINER &)=delete | |
| UNDO_REDO_CONTAINER & | operator= (const UNDO_REDO_CONTAINER &)=delete |
| void | PushCommand (PICKED_ITEMS_LIST *aCommand) |
| PICKED_ITEMS_LIST * | PopCommand () |
| void | ClearCommandList () |
| void | ForgetItems (const std::unordered_set< const EDA_ITEM * > &aItems) |
| Drop every picker that refers to one of aItems, before they are freed outside the undo system. | |
Public Attributes | |
| std::vector< PICKED_ITEMS_LIST * > | m_CommandsList |
A holder to handle a list of undo (or redo) commands.
Definition at line 287 of file undo_redo_container.h.
| UNDO_REDO_CONTAINER::UNDO_REDO_CONTAINER | ( | ) |
Definition at line 301 of file undo_redo_container.cpp.
Referenced by operator=(), and UNDO_REDO_CONTAINER().
| UNDO_REDO_CONTAINER::~UNDO_REDO_CONTAINER | ( | ) |
Definition at line 306 of file undo_redo_container.cpp.
References ClearCommandList().
|
delete |
References UNDO_REDO_CONTAINER().
| void UNDO_REDO_CONTAINER::ClearCommandList | ( | ) |
Definition at line 312 of file undo_redo_container.cpp.
References m_CommandsList.
Referenced by ~UNDO_REDO_CONTAINER().
| void UNDO_REDO_CONTAINER::ForgetItems | ( | const std::unordered_set< const EDA_ITEM * > & | aItems | ) |
Drop every picker that refers to one of aItems, before they are freed outside the undo system.
Commands left with no pickers are removed.
Definition at line 329 of file undo_redo_container.cpp.
References PICKED_ITEMS_LIST::GetCount(), and m_CommandsList.
|
delete |
References UNDO_REDO_CONTAINER().
| PICKED_ITEMS_LIST * UNDO_REDO_CONTAINER::PopCommand | ( | ) |
Definition at line 361 of file undo_redo_container.cpp.
References m_CommandsList.
| void UNDO_REDO_CONTAINER::PushCommand | ( | PICKED_ITEMS_LIST * | aCommand | ) |
Definition at line 355 of file undo_redo_container.cpp.
References m_CommandsList.
Referenced by SYMBOL_EDITOR_TABS_TEST_FIXTURE::pushTransientCommand().
| std::vector<PICKED_ITEMS_LIST*> UNDO_REDO_CONTAINER::m_CommandsList |
Definition at line 310 of file undo_redo_container.h.
Referenced by SYMBOL_EDIT_FRAME::activateSymbolTab(), ClearCommandList(), ForgetItems(), SYMBOL_EDIT_FRAME::freeTransientUndoCommands(), FOOTPRINT_EDIT_FRAME::installFootprintTabBoard(), PopCommand(), and PushCommand().