KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ITEM_PICKER Class Reference

#include <undo_redo_container.h>

Public Member Functions

 ITEM_PICKER ()
 
 ITEM_PICKER (BASE_SCREEN *aScreen, EDA_ITEM *aItem, UNDO_REDO aStatus=UNDO_REDO::UNSPECIFIED)
 
EDA_ITEMGetItem () const
 
void SetItem (EDA_ITEM *aItem)
 
KICAD_T GetItemType () const
 
void SetStatus (UNDO_REDO aStatus)
 
UNDO_REDO GetStatus () const
 
void SetFlags (EDA_ITEM_FLAGS aFlags)
 
EDA_ITEM_FLAGS GetFlags () const
 
void SetLink (EDA_ITEM *aItem)
 
EDA_ITEMGetLink () const
 
KIID GetGroupId () const
 
void SetGroupId (KIID aId)
 
BASE_SCREENGetScreen () const
 

Private Attributes

EDA_ITEM_FLAGS m_pickerFlags
 
UNDO_REDO m_undoRedoStatus
 
EDA_ITEMm_pickedItem
 
KICAD_T m_pickedItemType
 
EDA_ITEMm_link
 
KIID m_groupId
 
BASE_SCREENm_screen
 

Detailed Description

Definition at line 77 of file undo_redo_container.h.

Constructor & Destructor Documentation

◆ ITEM_PICKER() [1/2]

ITEM_PICKER::ITEM_PICKER ( )

Definition at line 30 of file undo_redo_container.cpp.

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

◆ ITEM_PICKER() [2/2]

ITEM_PICKER::ITEM_PICKER ( BASE_SCREEN aScreen,
EDA_ITEM aItem,
UNDO_REDO  aStatus = UNDO_REDO::UNSPECIFIED 
)

Definition at line 40 of file undo_redo_container.cpp.

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

Member Function Documentation

◆ GetFlags()

EDA_ITEM_FLAGS ITEM_PICKER::GetFlags ( ) const
inline

Definition at line 97 of file undo_redo_container.h.

References m_pickerFlags.

Referenced by PICKED_ITEMS_LIST::ClearListAndDeleteItems().

◆ GetGroupId()

KIID ITEM_PICKER::GetGroupId ( ) const
inline

Definition at line 103 of file undo_redo_container.h.

References m_groupId.

◆ GetItem()

◆ GetItemType()

KICAD_T ITEM_PICKER::GetItemType ( ) const
inline

Definition at line 89 of file undo_redo_container.h.

References m_pickedItemType.

◆ GetLink()

EDA_ITEM * ITEM_PICKER::GetLink ( ) const
inline

Definition at line 101 of file undo_redo_container.h.

References m_link.

Referenced by PICKED_ITEMS_LIST::ClearListAndDeleteItems().

◆ GetScreen()

BASE_SCREEN * ITEM_PICKER::GetScreen ( ) const
inline

Definition at line 107 of file undo_redo_container.h.

References m_screen.

◆ GetStatus()

◆ SetFlags()

void ITEM_PICKER::SetFlags ( EDA_ITEM_FLAGS  aFlags)
inline

Definition at line 95 of file undo_redo_container.h.

References m_pickerFlags.

Referenced by SCH_EDIT_FRAME::SaveCopyInUndoList().

◆ SetGroupId()

void ITEM_PICKER::SetGroupId ( KIID  aId)
inline

Definition at line 105 of file undo_redo_container.h.

References m_groupId.

Referenced by BOARD_COMMIT::Push().

◆ SetItem()

void ITEM_PICKER::SetItem ( EDA_ITEM aItem)

Definition at line 50 of file undo_redo_container.cpp.

References m_pickedItem, m_pickedItemType, EDA_ITEM::Type(), and TYPE_NOT_INIT.

Referenced by ITEM_PICKER().

◆ SetLink()

◆ SetStatus()

void ITEM_PICKER::SetStatus ( UNDO_REDO  aStatus)
inline

Definition at line 91 of file undo_redo_container.h.

References m_undoRedoStatus.

Member Data Documentation

◆ m_groupId

KIID ITEM_PICKER::m_groupId
private

Definition at line 124 of file undo_redo_container.h.

Referenced by GetGroupId(), and SetGroupId().

◆ m_link

EDA_ITEM* ITEM_PICKER::m_link
private

Definition at line 118 of file undo_redo_container.h.

Referenced by GetLink(), ITEM_PICKER(), and SetLink().

◆ m_pickedItem

EDA_ITEM* ITEM_PICKER::m_pickedItem
private

Definition at line 113 of file undo_redo_container.h.

Referenced by GetItem(), and SetItem().

◆ m_pickedItemType

KICAD_T ITEM_PICKER::m_pickedItemType
private

Definition at line 116 of file undo_redo_container.h.

Referenced by GetItemType(), and SetItem().

◆ m_pickerFlags

EDA_ITEM_FLAGS ITEM_PICKER::m_pickerFlags
private

Definition at line 110 of file undo_redo_container.h.

Referenced by GetFlags(), ITEM_PICKER(), and SetFlags().

◆ m_screen

BASE_SCREEN* ITEM_PICKER::m_screen
private

Definition at line 126 of file undo_redo_container.h.

Referenced by GetScreen(), and ITEM_PICKER().

◆ m_undoRedoStatus

UNDO_REDO ITEM_PICKER::m_undoRedoStatus
private

Definition at line 112 of file undo_redo_container.h.

Referenced by GetStatus(), ITEM_PICKER(), and SetStatus().


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