2 * Copyright (c) 2005-2010, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
6 * DarkWyrm <darkwyrm@gmail.com>
8 #include "PreviewColumn.h"
13 PreviewColumn::PreviewColumn(const char *title
, float width
,
14 float minWidth
, float maxWidth
)
15 : BTitledColumn(title
, width
, minWidth
, maxWidth
)
20 PreviewColumn::DrawField(BField
* field
, BRect rect
, BView
* parent
)
22 PreviewField
*pField
= (PreviewField
*)field
;
23 pField
->DrawField(rect
, parent
);
27 PreviewColumn::AcceptsField(const BField
* field
) const
29 return dynamic_cast<const PreviewField
*>(field
);