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

#include <grid_icon_text_helpers.h>

Inheritance diagram for GRID_CELL_ICON_TEXT_POPUP:

Public Member Functions

 GRID_CELL_ICON_TEXT_POPUP (const std::vector< BITMAPS > &icons, const wxArrayString &names)
 
wxGridCellEditor * Clone () const override
 
void Create (wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
 
wxString GetValue () const override
 
void SetSize (const wxRect &aRect) override
 
void BeginEdit (int aRow, int aCol, wxGrid *aGrid) override
 
bool EndEdit (int, int, const wxGrid *, const wxString &, wxString *aNewVal) override
 
void ApplyEdit (int aRow, int aCol, wxGrid *aGrid) override
 
void Reset () override
 

Protected Member Functions

wxBitmapComboBox * Combo () const
 
 wxDECLARE_NO_COPY_CLASS (GRID_CELL_ICON_TEXT_POPUP)
 

Protected Attributes

std::vector< BITMAPSm_icons
 
wxArrayString m_names
 
wxString m_value
 

Detailed Description

Definition at line 96 of file grid_icon_text_helpers.h.

Constructor & Destructor Documentation

◆ GRID_CELL_ICON_TEXT_POPUP()

GRID_CELL_ICON_TEXT_POPUP::GRID_CELL_ICON_TEXT_POPUP ( const std::vector< BITMAPS > &  icons,
const wxArrayString &  names 
)

Definition at line 182 of file grid_icon_text_helpers.cpp.

Member Function Documentation

◆ ApplyEdit()

void GRID_CELL_ICON_TEXT_POPUP::ApplyEdit ( int  aRow,
int  aCol,
wxGrid *  aGrid 
)
override

Definition at line 286 of file grid_icon_text_helpers.cpp.

References m_value.

◆ BeginEdit()

void GRID_CELL_ICON_TEXT_POPUP::BeginEdit ( int  aRow,
int  aCol,
wxGrid *  aGrid 
)
override

Definition at line 241 of file grid_icon_text_helpers.cpp.

References Combo(), and m_value.

◆ Clone()

wxGridCellEditor * GRID_CELL_ICON_TEXT_POPUP::Clone ( ) const
override

Definition at line 190 of file grid_icon_text_helpers.cpp.

References m_icons, and m_names.

◆ Combo()

wxBitmapComboBox * GRID_CELL_ICON_TEXT_POPUP::Combo ( ) const
inlineprotected

Definition at line 114 of file grid_icon_text_helpers.h.

Referenced by BeginEdit(), Create(), EndEdit(), GetValue(), Reset(), and SetSize().

◆ Create()

void GRID_CELL_ICON_TEXT_POPUP::Create ( wxWindow *  aParent,
wxWindowID  aId,
wxEvtHandler *  aEventHandler 
)
override

Definition at line 196 of file grid_icon_text_helpers.cpp.

References Combo(), KiBitmapBundle(), m_icons, and m_names.

◆ EndEdit()

bool GRID_CELL_ICON_TEXT_POPUP::EndEdit ( int  ,
int  ,
const wxGrid *  ,
const wxString &  ,
wxString *  aNewVal 
)
override

Definition at line 269 of file grid_icon_text_helpers.cpp.

References Combo(), and m_value.

◆ GetValue()

wxString GRID_CELL_ICON_TEXT_POPUP::GetValue ( ) const
override

Definition at line 217 of file grid_icon_text_helpers.cpp.

References Combo().

◆ Reset()

void GRID_CELL_ICON_TEXT_POPUP::Reset ( )
override

Definition at line 292 of file grid_icon_text_helpers.cpp.

References Combo(), and m_value.

◆ SetSize()

void GRID_CELL_ICON_TEXT_POPUP::SetSize ( const wxRect &  aRect)
override

Definition at line 223 of file grid_icon_text_helpers.cpp.

References Combo().

◆ wxDECLARE_NO_COPY_CLASS()

GRID_CELL_ICON_TEXT_POPUP::wxDECLARE_NO_COPY_CLASS ( GRID_CELL_ICON_TEXT_POPUP  )
protected

Member Data Documentation

◆ m_icons

std::vector<BITMAPS> GRID_CELL_ICON_TEXT_POPUP::m_icons
protected

Definition at line 116 of file grid_icon_text_helpers.h.

Referenced by Clone(), and Create().

◆ m_names

wxArrayString GRID_CELL_ICON_TEXT_POPUP::m_names
protected

Definition at line 117 of file grid_icon_text_helpers.h.

Referenced by Clone(), and Create().

◆ m_value

wxString GRID_CELL_ICON_TEXT_POPUP::m_value
protected

Definition at line 118 of file grid_icon_text_helpers.h.

Referenced by ApplyEdit(), BeginEdit(), EndEdit(), and Reset().


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