xref: /haiku/src/apps/pulse/Prefs.h (revision 51978af14a173e7fae0563b562be5603bc652aeb)
1 //****************************************************************************************
2 //
3 //	File:		Prefs.h
4 //
5 //	Written by:	Daniel Switkin
6 //
7 //	Copyright 1999, Be Incorporated
8 //
9 //****************************************************************************************
10 
11 #ifndef PREFS_H
12 #define PREFS_H
13 
14 #include <File.h>
15 #include <Rect.h>
16 
17 class Prefs {
18 	public:
19 		Prefs();
20 		bool Save();
21 		~Prefs();
22 
23 		int window_mode, deskbar_icon_width;
24 		BRect normal_window_rect, mini_window_rect, prefs_window_rect;
25 		int normal_bar_color, mini_active_color, mini_idle_color, mini_frame_color,
26 			deskbar_active_color, deskbar_idle_color, deskbar_frame_color;
27 		bool normal_fade_colors;
28 
29 		bool fatalerror;
30 
31 	private:
32 		BFile *file;
33 
34 		bool GetInt(char *name, int *value, int *defaultvalue);
35 		bool GetBool(char *name, bool *value, bool *defaultvalue);
36 		bool GetRect(char *name, BRect *value, BRect *defaultvalue);
37 		bool PutInt(char *name, int *value);
38 		bool PutBool(char *name, bool *value);
39 		bool PutRect(char *name, BRect *value);
40 
41 		BRect GetNormalWindowRect();
42 		BRect GetMiniWindowRect();
43 };
44 
45 #endif
46