#ifndef NOT_AVAILABLE_STRING_VIEW_H
#define NOT_AVAILABLE_STRING_VIEW_H
#include <View.h>
class NotAvailableView : public BView {
public:
NotAvailableView(const char* name, const char* text, bool isImage);
virtual ~NotAvailableView();
virtual BSize MaxSize();
virtual BAlignment LayoutAlignment();
void SetText(const char* text);
const char* Text() const;
void SetIsImage(bool value);
bool IsImage() const;
virtual void Draw(BRect updateRect);
private:
void _DrawIsImage(BRect updateRect);
void _DrawStippledBorder(BRect box);
void _DrawText(BRect textRect, BRect updateRect);
private:
bool fIsImage;
BString fText;
};
#endif