xref: /haiku/src/preferences/appearance/APRView.h (revision 180e55a48b0ab615bb710530840c4f21f5e918f1)
1 /*
2  * Copyright 2002-2008, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		DarkWyrm (darkwyrm@earthlink.net)
7  *		Rene Gollent (rene@gollent.com)
8  */
9 #ifndef APR_VIEW_H_
10 #define APR_VIEW_H_
11 
12 #include <View.h>
13 #include <ColorControl.h>
14 #include <Message.h>
15 #include <ListItem.h>
16 #include <ListView.h>
17 #include <Button.h>
18 #include <ScrollView.h>
19 #include <ScrollBar.h>
20 #include <String.h>
21 #include <Menu.h>
22 #include <MenuField.h>
23 #include <MenuBar.h>
24 #include <MenuItem.h>
25 #include <StringView.h>
26 #include <Invoker.h>
27 
28 #include "ColorSet.h"
29 
30 class ColorWell;
31 class APRWindow;
32 
33 class APRView : public BView
34 {
35 public:
36 			APRView(const char *name, uint32 flags);
37 			~APRView(void);
38 	void	AttachedToWindow(void);
39 	void	MessageReceived(BMessage *msg);
40 
41 	void	LoadSettings(void);
42 	bool	IsDefaultable(void);
43 
44 protected:
45 
46 	void	SetCurrentColor(rgb_color color);
47 	void	UpdateControls();
48 	void	UpdateAllColors();
49 
50 	BColorControl	*fPicker;
51 
52 	BListView		*fAttrList;
53 
54 	color_which		fWhich;
55 
56 	BScrollView		*fScrollView;
57 
58 	ColorWell		*fColorWell;
59 
60 	ColorSet		fCurrentSet;
61 	ColorSet		fPrevSet;
62 	ColorSet		fDefaultSet;
63 
64 	BMenu			*fDecorMenu;
65 };
66 
67 #endif
68