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