![]() |
KiCad PCB EDA Suite
|
#include <functional>
#include <macros.h>
#include <pcb_edit_frame.h>
#include <board.h>
#include <track.h>
#include <pcb_target.h>
#include <footprint.h>
#include <dimension.h>
#include <origin_viewitem.h>
#include <connectivity/connectivity_data.h>
#include <pcbnew_settings.h>
#include <tool/tool_manager.h>
#include <tool/actions.h>
#include <tools/pcb_selection_tool.h>
#include <tools/pcb_control.h>
#include <tools/board_editor_control.h>
#include <page_layout/ws_proxy_undo_item.h>
Go to the source code of this file.
Functions | |
static bool | TestForExistingItem (BOARD *aPcb, BOARD_ITEM *aItem) |
Function TestForExistingItem test if aItem exists somewhere in lists of items This is a function used by PutDataInPreviousState to be sure an item was not deleted since an undo or redo. More... | |
static void | SwapItemData (BOARD_ITEM *aItem, BOARD_ITEM *aImage) |
|
static |
Definition at line 157 of file undo_redo.cpp.
References BOARD_ITEM::GetParent(), EDA_ITEM::m_Uuid, NULL, EDA_ITEM::SetParent(), BOARD_ITEM::SwapData(), and EDA_ITEM::Type().
Referenced by PCB_BASE_EDIT_FRAME::PutDataInPreviousState().
|
static |
Function TestForExistingItem test if aItem exists somewhere in lists of items This is a function used by PutDataInPreviousState to be sure an item was not deleted since an undo or redo.
This could be possible:
aPcb | = board to test |
aItem | = item to find = NULL to build the list of existing items |
Definition at line 113 of file undo_redo.cpp.
References NETINFO_LIST::begin(), BOARD::Drawings(), NETINFO_LIST::end(), BOARD::Footprints(), BOARD::GetNetInfo(), BOARD::Groups(), BOARD::Tracks(), and BOARD::Zones().
Referenced by PCB_BASE_EDIT_FRAME::PutDataInPreviousState().