2 * Copyright 2014-2015, Rene Gollent, rene@gollent.com.
3 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
4 * Distributed under the terms of the MIT License.
6 #ifndef TABLE_CELL_FORMATTED_VALUE_RENDERER_H
7 #define TABLE_CELL_FORMATTED_VALUE_RENDERER_H
10 #include "TableCellValueRenderer.h"
16 class TableCellFormattedValueRenderer
: public TableCellValueRenderer
{
18 TableCellFormattedValueRenderer(
19 ValueFormatter
* formatter
);
20 virtual ~TableCellFormattedValueRenderer();
22 virtual Settings
* GetSettings() const;
24 ValueFormatter
* GetValueFormatter() const
25 { return fValueFormatter
; }
27 virtual void RenderValue(Value
* value
, bool valueChanged
,
28 BRect rect
, BView
* targetView
);
29 virtual float PreferredValueWidth(Value
* value
,
34 ValueFormatter
* fValueFormatter
;
38 #endif // TABLE_CELL_FORMATTED_VALUE_RENDERER_H