25#ifndef SCH_TOOL_BASE_H
26#define SCH_TOOL_BASE_H
72 auto& ctxMenu =
m_menu->GetMenu();
76 ctxMenu.AddSeparator( 1 );
112 m_frame->UpdateItem( aItem,
false, aUpdateRTree );
118 bool aDirtyConnectivity =
true )
133 wxCHECK_RET( editFrame, wxT(
"editFrame is null" ) );
140 wxASSERT( editFrame );
148 UNDO_REDO::CHANGED, aAppend,
155 UNDO_REDO::CHANGED, aAppend,
156 aDirtyConnectivity );
161 static_cast<SCH_ITEM*
>( aItem ), aType,
162 aAppend, aDirtyConnectivity );
static TOOL_ACTION cancelInteractive
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
EDA_ITEM * GetParent() const
bool HasFlag(EDA_ITEM_FLAGS aFlag) const
Define a library symbol object.
Schematic editor (Eeschema) main window.
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
void SaveCopyInUndoList(SCH_SCREEN *aScreen, SCH_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, bool aAppend, bool aDirtyConnectivity=true)
Create a copy of the current schematic item, and put it in the undo list.
Base class for any item which can be embedded within the SCHEMATIC container class,...
static bool ShowAlways(const SELECTION &aSelection)
The default condition function (always returns true).
The symbol library editor main window.
void SaveCopyInUndoList(const wxString &aDescription, LIB_SYMBOL *aSymbol, UNDO_REDO aUndoType=UNDO_REDO::LIBEDIT)
Create a copy of the current symbol, and save it in the undo list.
#define SELECTED_BY_DRAG
Item was algorithmically selected as a dragged item.
@ FRAME_SCH_SYMBOL_EDITOR
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
UNDO_REDO
Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also...