xref: /haiku/src/preferences/appearance/ColorWhichItem.h (revision 93aeb8c3bc3f13cb1f282e3e749258a23790d947)
1 //------------------------------------------------------------------------------
2 //	Copyright (c) 2001-2002, OpenBeOS
3 //
4 //	Permission is hereby granted, free of charge, to any person obtaining a
5 //	copy of this software and associated documentation files (the "Software"),
6 //	to deal in the Software without restriction, including without limitation
7 //	the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 //	and/or sell copies of the Software, and to permit persons to whom the
9 //	Software is furnished to do so, subject to the following conditions:
10 //
11 //	The above copyright notice and this permission notice shall be included in
12 //	all copies or substantial portions of the Software.
13 //
14 //	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 //	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 //	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 //	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 //	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 //	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 //	DEALINGS IN THE SOFTWARE.
21 //
22 //	File Name:		ColorWhichItem.h
23 //	Author:			DarkWyrm <bpmagic@columbus.rr.com>
24 //	Description:	ListItem class for managing color_which specifiers
25 //
26 //------------------------------------------------------------------------------
27 #ifndef COLORWHICH_ITEM_H
28 #define COLORWHICH_ITEM_H
29 
30 #include <InterfaceDefs.h>
31 #include <ListItem.h>
32 
33 #define B_INACTIVE_WINDOW_TAB_TEXT_COLOR 'iwtt'
34 #define B_WINDOW_TAB_TEXT_COLOR 'wttx'
35 #define B_INACTIVE_WINDOW_TAB_COLOR 'iwtb'
36 
37 //#ifdef BUILD_UNDER_R5
38 	#define B_MENU_SELECTED_BACKGROUND_COLOR B_MENU_SELECTION_BACKGROUND_COLOR
39 	#define B_PANEL_TEXT_COLOR 'ptxt'
40 	#define B_DOCUMENT_BACKGROUND_COLOR 'dbgc'
41 	#define B_DOCUMENT_TEXT_COLOR 'dtxc'
42 	#define B_CONTROL_BACKGROUND_COLOR 'cbgc'
43 	#define B_CONTROL_TEXT_COLOR 'ctxc'
44 	#define B_CONTROL_BORDER_COLOR 'cboc'
45 	#define B_CONTROL_HIGHLIGHT_COLOR 'chic'
46 	#define B_NAVIGATION_BASE_COLOR 'navb'
47 	#define B_NAVIGATION_PULSE_COLOR 'navp'
48 	#define B_SHINE_COLOR 'shin'
49 	#define B_SHADOW_COLOR 'shad'
50 	#define B_MENU_SELECTED_BORDER_COLOR 'msbo'
51 	#define B_TOOLTIP_BACKGROUND_COLOR 'ttbg'
52 	#define B_TOOLTIP_TEXT_COLOR 'tttx'
53 	#define B_SUCCESS_COLOR 'sucs'
54 	#define B_FAILURE_COLOR 'fail'
55 //#endif
56 
57 class ColorWhichItem : public BStringItem
58 {
59 public:
60 	ColorWhichItem(color_which which);
61 	~ColorWhichItem(void);
62 	void SetAttribute(color_which which);
63 	color_which GetAttribute(void);
64 private:
65 	color_which attribute;
66 };
67 
68 #endif
69