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 ); }
 
 
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
 
GRID_CELL_ICON_RENDERER(const wxBitmap &icon)
 
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
 
GRID_CELL_ICON_TEXT_RENDERER(const std::vector< BITMAPS > &icons, const wxArrayString &names)
Construct a renderer that maps a list of icons from the bitmap system to a list of strings.
 
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
 
GRID_CELL_MARK_AS_NULLABLE(const bool aIsNullable)
 
wxDECLARE_NO_COPY_CLASS(GRID_CELL_MARK_AS_NULLABLE)
 
GRID_CELL_NULLABLE_INTERFACE()
 
virtual ~GRID_CELL_NULLABLE_INTERFACE()=default
 
GRID_CELL_NULLABLE_INTERFACE(bool aIsNullable)
 
virtual bool IsNullable() const
 
wxSize GetBestSize(wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
 
wxGridCellRenderer * Clone() const override
 
GRID_CELL_STATUS_ICON_RENDERER(int aStatus)
 
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override