haiku/src/apps/pulse/Prefs.h
ejakowatz 52a3801208 It is accomplished ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00

46 lines
1.1 KiB
C++

//****************************************************************************************
//
// File: Prefs.h
//
// Written by: Daniel Switkin
//
// Copyright 1999, Be Incorporated
//
//****************************************************************************************
#ifndef PREFS_H
#define PREFS_H
#include <File.h>
#include <Rect.h>
class Prefs {
public:
Prefs();
bool Save();
~Prefs();
int window_mode, deskbar_icon_width;
BRect normal_window_rect, mini_window_rect, prefs_window_rect;
int normal_bar_color, mini_active_color, mini_idle_color, mini_frame_color,
deskbar_active_color, deskbar_idle_color, deskbar_frame_color;
bool normal_fade_colors;
bool fatalerror;
private:
BFile *file;
bool GetInt(char *name, int *value, int *defaultvalue);
bool GetBool(char *name, bool *value, bool *defaultvalue);
bool GetRect(char *name, BRect *value, BRect *defaultvalue);
bool PutInt(char *name, int *value);
bool PutBool(char *name, bool *value);
bool PutRect(char *name, BRect *value);
BRect GetNormalWindowRect();
BRect GetMiniWindowRect();
};
#endif