25 #ifndef EE_TOOL_BASE_H 26 #define EE_TOOL_BASE_H 77 ctxMenu.AddSeparator( 1 );
105 switch( aItem->
Type() )
120 m_frame->GetScreen()->Update( static_cast<SCH_ITEM*>( aItem->
GetParent() ) );
128 m_frame->GetScreen()->Update( static_cast<SCH_ITEM*>( aItem ) );
149 wxASSERT( editFrame );
156 wxASSERT( editFrame );
161 static_cast<SCH_ITEM*>( aItem->
GetParent() ),
167 static_cast<SCH_ITEM*>( aItem ),
187 return VECTOR2I( aCoord.x, -aCoord.y );
192 return wxPoint( aCoord.
x, -aCoord.
y );
197 return wxPoint( x, -y );
static bool ShowAlways(const SELECTION &aSelection)
The default condition function (always returns true).
bool HasFlag(EDA_ITEM_FLAGS aFlag) const
static TOOL_ACTION cancelInteractive
Define a general 2D-vector/point.
Schematic editor (Eeschema) main window.
UNDO_REDO
Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also...
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
void SaveCopyInUndoList(EDA_ITEM *aItem, UNDO_REDO aUndoType=UNDO_REDO::LIBEDIT, bool aAppend=false)
Create a copy of the current symbol, and save it in the undo list.
EDA_ITEM * GetParent() const
#define TEMP_SELECTED
flag indicating that the structure has already selected
void SaveCopyInUndoList(SCH_SCREEN *aScreen, SCH_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, bool aAppend)
Create a copy of the current schematic item, and put it in the undo list.
A base class for most all the KiCad significant classes used in schematics and boards.
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
KICAD_T Type() const
Returns the type of object.
The symbol library editor main window.