xref: /haiku/src/apps/debugger/user_interface/gui/value/TableCellFormattedValueRenderer.h (revision 5f5499b40b00bc32d6f07234ee85a98d36d289a6)
1 /*
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.
5  */
6 #ifndef TABLE_CELL_FORMATTED_VALUE_RENDERER_H
7 #define TABLE_CELL_FORMATTED_VALUE_RENDERER_H
8 
9 
10 #include "TableCellValueRenderer.h"
11 
12 
13 class ValueFormatter;
14 
15 
16 class TableCellFormattedValueRenderer : public TableCellValueRenderer {
17 public:
18 								TableCellFormattedValueRenderer(
19 									ValueFormatter* formatter);
20 	virtual						~TableCellFormattedValueRenderer();
21 
22 	virtual	Settings*			GetSettings() const;
23 
GetValueFormatter()24 			ValueFormatter*		GetValueFormatter() const
25 									{ return fValueFormatter; }
26 
27 	virtual	void				RenderValue(Value* value, bool valueChanged,
28 									BRect rect, BView* targetView);
29 	virtual	float				PreferredValueWidth(Value* value,
30 									BView* targetView);
31 
32 
33 private:
34 			ValueFormatter*		fValueFormatter;
35 };
36 
37 
38 #endif	// TABLE_CELL_FORMATTED_VALUE_RENDERER_H
39