KiCad PCB EDA Suite
ITEM_PICKER Class Reference

#include <class_undoredo_container.h>

Public Member Functions

 ITEM_PICKER (EDA_ITEM *aItem=NULL, UNDO_REDO_T aUndoRedoStatus=UR_UNSPECIFIED)
 
EDA_ITEMGetItem () const
 
void SetItem (EDA_ITEM *aItem)
 
KICAD_T GetItemType () const
 
void SetStatus (UNDO_REDO_T aStatus)
 
UNDO_REDO_T GetStatus () const
 
void SetFlags (STATUS_FLAGS aFlags)
 
STATUS_FLAGS GetFlags () const
 
void SetLink (EDA_ITEM *aItem)
 
EDA_ITEMGetLink () const
 

Private Attributes

STATUS_FLAGS m_pickerFlags
 
UNDO_REDO_T m_undoRedoStatus
 
EDA_ITEMm_pickedItem
 
KICAD_T m_pickedItemType
 
EDA_ITEMm_link
 

Detailed Description

Definition at line 79 of file class_undoredo_container.h.

Constructor & Destructor Documentation

ITEM_PICKER::ITEM_PICKER ( EDA_ITEM aItem = NULL,
UNDO_REDO_T  aUndoRedoStatus = UR_UNSPECIFIED 
)

Definition at line 32 of file class_undoredo_container.cpp.

References m_link, m_pickerFlags, m_undoRedoStatus, and SetItem().

33 {
34  m_undoRedoStatus = aUndoRedoStatus;
35  SetItem( aItem );
36  m_pickerFlags = 0;
37  m_link = NULL;
38 }
void SetItem(EDA_ITEM *aItem)
STATUS_FLAGS m_pickerFlags
UNDO_REDO_T m_undoRedoStatus

Member Function Documentation

STATUS_FLAGS ITEM_PICKER::GetFlags ( ) const
inline

Definition at line 116 of file class_undoredo_container.h.

References m_pickerFlags.

116 { return m_pickerFlags; }
STATUS_FLAGS m_pickerFlags
KICAD_T ITEM_PICKER::GetItemType ( ) const
inline

Definition at line 108 of file class_undoredo_container.h.

References m_pickedItemType.

108 { return m_pickedItemType; }
UNDO_REDO_T ITEM_PICKER::GetStatus ( ) const
inline

Definition at line 112 of file class_undoredo_container.h.

References m_undoRedoStatus.

Referenced by PICKED_ITEMS_LIST::ClearListAndDeleteItems().

112 { return m_undoRedoStatus; }
UNDO_REDO_T m_undoRedoStatus
void ITEM_PICKER::SetFlags ( STATUS_FLAGS  aFlags)
inline
void ITEM_PICKER::SetStatus ( UNDO_REDO_T  aStatus)
inline

Definition at line 110 of file class_undoredo_container.h.

Referenced by BOARD::CreateLockPoint(), and SCH_EDIT_FRAME::OnConvertTextType().

110 { m_undoRedoStatus = aStatus; }
UNDO_REDO_T m_undoRedoStatus

Member Data Documentation

EDA_ITEM* ITEM_PICKER::m_link
private

Definition at line 90 of file class_undoredo_container.h.

Referenced by GetLink(), and ITEM_PICKER().

EDA_ITEM* ITEM_PICKER::m_pickedItem
private

Definition at line 85 of file class_undoredo_container.h.

Referenced by GetItem().

KICAD_T ITEM_PICKER::m_pickedItemType
private

Definition at line 88 of file class_undoredo_container.h.

Referenced by GetItemType().

STATUS_FLAGS ITEM_PICKER::m_pickerFlags
private

Definition at line 82 of file class_undoredo_container.h.

Referenced by GetFlags(), and ITEM_PICKER().

UNDO_REDO_T ITEM_PICKER::m_undoRedoStatus
private

Definition at line 84 of file class_undoredo_container.h.

Referenced by GetStatus(), and ITEM_PICKER().


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