/* * Copyright 2002-2015, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * DarkWyrm (darkwyrm@earthlink.net) * Rene Gollent (rene@gollent.com) * Stephan Aßmus * Joseph Groover */ #ifndef APR_VIEW_H_ #define APR_VIEW_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class APRWindow; class ColorPreview; class APRView : public BView { public: APRView(const char *name); virtual ~APRView(); virtual void AttachedToWindow(); virtual void MessageReceived(BMessage *msg); void LoadSettings(); void SetDefaults(); void Revert(); bool IsDefaultable(); bool IsRevertable(); private: void _SetColor(color_which which, rgb_color color); void _SetCurrentColor(rgb_color color); void _SetUIColors(const BMessage& colors); void _UpdatePreviews(const BMessage& colors); private: BColorControl* fPicker; BListView* fAttrList; color_which fWhich; BScrollView* fScrollView; ColorPreview* fColorPreview; BMessage fPrevColors; BMessage fDefaultColors; BMessage fCurrentColors; }; #endif // APR_VIEW_H_