Transform to CMake project.
This commit is contained in:
38
special/LGridJsonCellRenderer.h
Normal file
38
special/LGridJsonCellRenderer.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* File: LGridJsonCellRenderer.h
|
||||
* Author: SET - nmset@yandex.com
|
||||
* License : LGPL version 2.1
|
||||
* Copyright SET, M. D. - © 2014
|
||||
*
|
||||
* Created on December 9, 2019, 1:55 PM
|
||||
*/
|
||||
|
||||
#ifndef LGRIDJSONCELLRENDERER_H
|
||||
#define LGRIDJSONCELLRENDERER_H
|
||||
|
||||
#include "wx/grid.h"
|
||||
|
||||
/**
|
||||
* A grid cell renderer for json stored data.
|
||||
* It show the selected Intent value, or INVALID_INTENT.
|
||||
*/
|
||||
class LGridJsonCellRenderer : public wxGridCellStringRenderer
|
||||
{
|
||||
public:
|
||||
LGridJsonCellRenderer();
|
||||
virtual ~LGridJsonCellRenderer();
|
||||
|
||||
void Draw(wxGrid & grid,
|
||||
wxGridCellAttr & attr,
|
||||
wxDC & dc,
|
||||
const wxRect & rect,
|
||||
int row,
|
||||
int col,
|
||||
bool isSelected);
|
||||
private:
|
||||
|
||||
const wxString ProcessJsonValue(const wxString& cellValue);
|
||||
};
|
||||
|
||||
#endif /* LGRIDJSONCELLRENDERER_H */
|
||||
|
||||
Reference in New Issue
Block a user