24#ifndef GRID_ICON_TEXT_HELPERS_H
25#define GRID_ICON_TEXT_HELPERS_H
28#include <wx/bmpcbox.h>
29#include <wx/generic/gridctrl.h>
30#include <wx/generic/grideditors.h>
34enum class BITMAPS :
unsigned int;
54 wxSize aPreferredIconSize = wxDefaultSize );
56 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
57 const wxRect& aRect,
int aRow,
int aCol,
bool isSelected )
override;
58 wxSize
GetBestSize( wxGrid &
grid, wxGridCellAttr & attr, wxDC & dc,
int row,
79 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
80 const wxRect& aRect,
int aRow,
int aCol,
bool isSelected )
override;
81 wxSize
GetBestSize( wxGrid &
grid, wxGridCellAttr & attr, wxDC & dc,
int row,
83 wxGridCellRenderer*
Clone()
const override;
98 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
99 const wxRect& aRect,
int aRow,
int aCol,
bool isSelected )
override;
100 wxSize
GetBestSize( wxGrid &
grid, wxGridCellAttr & attr, wxDC & dc,
int row,
102 wxGridCellRenderer*
Clone()
const override;
120 wxGridCellEditor*
Clone()
const override;
121 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
125 void SetSize(
const wxRect& aRect )
override;
127 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
128 bool EndEdit(
int ,
int ,
const wxGrid* ,
const wxString& , wxString *aNewVal )
override;
129 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
130 void Reset()
override;
133 wxBitmapComboBox*
Combo()
const {
return static_cast<wxBitmapComboBox*
>( m_control ); }
152 wxGridCellEditor*
Clone()
const override
BITMAPS
A list of all bitmap identifiers.
wxGridCellRenderer * Clone() const override
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
wxSize GetBestSize(wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
std::vector< BITMAPS > m_icons
wxSize GetBestSize(wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
GRID_CELL_MARK_AS_NULLABLE()
wxGridCellEditor * Clone() const override
wxDECLARE_NO_COPY_CLASS(GRID_CELL_MARK_AS_NULLABLE)
GRID_CELL_MARK_AS_NULLABLE(bool aIsNullable)
wxSize GetBestSize(wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
wxGridCellRenderer * Clone() const override
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override