mirror of
https://review.haiku-os.org/haiku
synced 2025-02-23 22:18:13 +01:00
Added an ImageEditor object, but edits aren't saved... yet git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20113 a95241bf-73f2-0310-859d-f6bbb57e9c96
30 lines
647 B
C++
30 lines
647 B
C++
/*
|
|
* Copyright (c) 2005-2006, Haiku, Inc.
|
|
* Distributed under the terms of the MIT license.
|
|
*
|
|
* Author:
|
|
* DarkWyrm <darkwyrm@earthlink.net>
|
|
*/
|
|
#include "PreviewColumn.h"
|
|
#include "ResFields.h"
|
|
#include <stdio.h>
|
|
|
|
PreviewColumn::PreviewColumn(const char *title, float width,
|
|
float minWidth, float maxWidth)
|
|
: BTitledColumn(title, width, minWidth, maxWidth)
|
|
{
|
|
}
|
|
|
|
void
|
|
PreviewColumn::DrawField(BField* field, BRect rect, BView* parent)
|
|
{
|
|
PreviewField *pField = (PreviewField*)field;
|
|
pField->DrawField(rect,parent);
|
|
}
|
|
|
|
bool
|
|
PreviewColumn::AcceptsField(const BField* field) const
|
|
{
|
|
return dynamic_cast<const PreviewField*>(field);
|
|
}
|