2008-10-01 08:28:35 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2000-2008, François Revol, <revol@free.fr>. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2008-01-11 21:06:15 +03:00
|
|
|
#ifndef _VIEW_ITEM_H_
|
|
|
|
#define _VIEW_ITEM_H_
|
|
|
|
|
|
|
|
#include <ListItem.h>
|
|
|
|
#include <ListView.h>
|
|
|
|
#include <View.h>
|
|
|
|
|
|
|
|
class ViewItem : public BView, public BListItem
|
|
|
|
{
|
2008-10-01 07:37:33 +04:00
|
|
|
public:
|
|
|
|
ViewItem(BRect bounds, const char *name, uint32 resizeMask, uint32 flags, uint32 level = 0, bool expanded = true);
|
|
|
|
virtual ~ViewItem();
|
|
|
|
virtual void DrawItem(BView *ownerview, BRect frame, bool complete = false);
|
|
|
|
virtual void Update(BView *ownerview, const BFont *font);
|
|
|
|
private:
|
|
|
|
BListView* fOwner;
|
2008-01-11 21:06:15 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _VIEW_ITEM_H_
|