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;
44 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
45 const wxRect& aRect,
int aRow,
int aCol,
bool isSelected )
override;
46 wxSize
GetBestSize( wxGrid &
grid, wxGridCellAttr & attr, wxDC & dc,
int row,
int col )
override;
62 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
63 const wxRect& aRect,
int aRow,
int aCol,
bool isSelected )
override;
64 wxSize
GetBestSize( wxGrid &
grid, wxGridCellAttr & attr, wxDC & dc,
int row,
int col )
override;
65 wxGridCellRenderer*
Clone()
const override;
80 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
81 const wxRect& aRect,
int aRow,
int aCol,
bool isSelected )
override;
82 wxSize
GetBestSize( wxGrid &
grid, wxGridCellAttr & attr, wxDC & dc,
int row,
int col )
override;
83 wxGridCellRenderer*
Clone()
const override;
101 wxGridCellEditor*
Clone()
const override;
102 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
106 void SetSize(
const wxRect& aRect )
override;
108 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
109 bool EndEdit(
int ,
int ,
const wxGrid* ,
const wxString& , wxString *aNewVal )
override;
110 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
111 void Reset()
override;
114 wxBitmapComboBox*
Combo()
const {
return static_cast<wxBitmapComboBox*
>( m_control ); }
133 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