1 /* 2 * Copyright 2006, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #ifndef ICON_VALUE_VIEW_H 10 #define ICON_VALUE_VIEW_H 11 12 #include "IconProperty.h" 13 #include "PropertyEditorView.h" 14 15 class NummericalTextView; 16 17 class IconValueView : public PropertyEditorView { 18 public: 19 IconValueView(IconProperty* property); 20 virtual ~IconValueView(); 21 22 // BView interface 23 virtual void Draw(BRect updateRect); 24 25 // PropertyEditorView interface 26 virtual void SetEnabled(bool enabled); 27 28 virtual bool AdoptProperty(Property* property); 29 virtual Property* GetProperty() const; 30 31 // IconValueView 32 status_t SetIcon(const unsigned char* bitsFromQuickRes, 33 uint32 width, uint32 height, 34 color_space format); 35 36 protected: 37 IconProperty* fProperty; 38 BBitmap* fIcon; 39 }; 40 41 #endif // ICON_VALUE_VIEW_H 42 43 44