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