1 /*
2  *  ppui/PPUIConfig.h
3  *
4  *  Copyright 2009 Peter Barth
5  *
6  *  This file is part of Milkytracker.
7  *
8  *  Milkytracker is free software: you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation, either version 3 of the License, or
11  *  (at your option) any later version.
12  *
13  *  Milkytracker is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with Milkytracker.  If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 /*
24  *  PPUIConfig.h
25  *  MilkyTracker
26  *
27  *  Created by Peter Barth on 01.07.05.
28  *
29  */
30 
31 #ifndef PPUICONFIG__H
32 #define PPUICONFIG__H
33 
34 #include "BasicTypes.h"
35 #include "Singleton.h"
36 
37 class PPUIConfig : public PPSingleton<PPUIConfig>
38 {
39 public:
40 	enum PPUIColors
41 	{
42 		ColorSelection = 0,
43 		ColorGrayedOutSelection,
44 		ColorDefaultButton,
45 		ColorDefaultButtonText,
46 		ColorContainer,
47 		ColorMessageBoxContainer,
48 		ColorMenuBackground,
49 		ColorMenuTextDark,
50 		ColorMenuTextBright,
51 		ColorListBoxBorder,
52 		ColorListBoxBackground,
53 		ColorScrollBarBackground,
54 		ColorRadioGroupButton,
55 		ColorStaticText,
56 		ColorLast
57 	};
58 
59 
60 private:
61 	PPColor colors[ColorLast];
62 
63 	PPUIConfig();
64 
65 public:
getColor(PPUIColors whichColor)66 	const PPColor& getColor(PPUIColors whichColor) const { return colors[whichColor]; }
setColor(PPUIColors whichColor,const PPColor & color)67 	void setColor(PPUIColors whichColor, const PPColor& color) { colors[whichColor] = color; }
68 
69 	friend class PPSingleton<PPUIConfig>;
70 };
71 
72 #endif
73 
74