/* * Copyright 2002-2008, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * DarkWyrm (darkwyrm@earthlink.net) * Rene Gollent (rene@gollent.com) */ #ifndef APR_VIEW_H_ #define APR_VIEW_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "ColorSet.h" class ColorWell; class APRWindow; class APRView : public BView { public: APRView(const BRect &frame, const char *name, int32 resize, int32 flags); ~APRView(void); void AttachedToWindow(void); void MessageReceived(BMessage *msg); void LoadSettings(void); bool IsDefaultable(void); protected: void SetCurrentColor(rgb_color color); void UpdateControls(); void UpdateAllColors(); BColorControl *fPicker; BListView *fAttrList; color_which fWhich; BScrollView *fScrollView; ColorWell *fColorWell; ColorSet fCurrentSet; ColorSet fPrevSet; ColorSet fDefaultSet; BMenu *fDecorMenu; }; #endif