xref: /haiku/src/apps/debugger/user_interface/gui/util/TargetAddressTableColumn.h (revision e3a631c0b48d904a9502dabb157639539484da53)
1*e3a631c0SIngo Weinhold /*
2*e3a631c0SIngo Weinhold  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3*e3a631c0SIngo Weinhold  * Distributed under the terms of the MIT License.
4*e3a631c0SIngo Weinhold  */
5*e3a631c0SIngo Weinhold #ifndef TARGET_ADDRESS_TABLE_COLUMN_H
6*e3a631c0SIngo Weinhold #define TARGET_ADDRESS_TABLE_COLUMN_H
7*e3a631c0SIngo Weinhold 
8*e3a631c0SIngo Weinhold 
9*e3a631c0SIngo Weinhold #include "table/TableColumns.h"
10*e3a631c0SIngo Weinhold 
11*e3a631c0SIngo Weinhold 
12*e3a631c0SIngo Weinhold class TargetAddressTableColumn : public StringTableColumn {
13*e3a631c0SIngo Weinhold public:
14*e3a631c0SIngo Weinhold 								TargetAddressTableColumn(int32 modelIndex,
15*e3a631c0SIngo Weinhold 									const char* title, float width,
16*e3a631c0SIngo Weinhold 									float minWidth, float maxWidth,
17*e3a631c0SIngo Weinhold 									uint32 truncate = B_TRUNCATE_MIDDLE,
18*e3a631c0SIngo Weinhold 									alignment align = B_ALIGN_RIGHT);
19*e3a631c0SIngo Weinhold 
20*e3a631c0SIngo Weinhold protected:
21*e3a631c0SIngo Weinhold 	virtual	BField*				PrepareField(const BVariant& value) const;
22*e3a631c0SIngo Weinhold 	virtual	int					CompareValues(const BVariant& a,
23*e3a631c0SIngo Weinhold 									const BVariant& b);
24*e3a631c0SIngo Weinhold };
25*e3a631c0SIngo Weinhold 
26*e3a631c0SIngo Weinhold 
27*e3a631c0SIngo Weinhold #endif	// TARGET_ADDRESS_TABLE_COLUMN_H
28