2005-07-17 20:25:48 +04:00
|
|
|
/*
|
2006-02-06 16:36:46 +03:00
|
|
|
* Copyright 2005-2006, Haiku.
|
2005-07-17 20:25:48 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Axel Dörfler, axeld@pinc-software.de
|
|
|
|
*/
|
|
|
|
#ifndef DESKTOP_SETTINGS_PRIVATE_H
|
|
|
|
#define DESKTOP_SETTINGS_PRIVATE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "DesktopSettings.h"
|
2005-11-03 20:03:36 +03:00
|
|
|
#include "ServerFont.h"
|
2005-07-17 20:25:48 +04:00
|
|
|
|
|
|
|
#include <Locker.h>
|
|
|
|
|
|
|
|
|
|
|
|
class DesktopSettings::Private : public BLocker {
|
|
|
|
public:
|
|
|
|
Private();
|
|
|
|
~Private();
|
|
|
|
|
2006-02-06 16:36:46 +03:00
|
|
|
status_t Save(uint32 mask = kAllSettings);
|
2005-07-17 20:25:48 +04:00
|
|
|
|
2005-11-03 20:03:36 +03:00
|
|
|
void SetDefaultPlainFont(const ServerFont& font);
|
|
|
|
const ServerFont& DefaultPlainFont() const;
|
|
|
|
|
|
|
|
void SetDefaultBoldFont(const ServerFont& font);
|
|
|
|
const ServerFont& DefaultBoldFont() const;
|
|
|
|
|
|
|
|
void SetDefaultFixedFont(const ServerFont& font);
|
|
|
|
const ServerFont& DefaultFixedFont() const;
|
|
|
|
|
2005-07-17 20:25:48 +04:00
|
|
|
void SetScrollBarInfo(const scroll_bar_info &info);
|
|
|
|
const scroll_bar_info& ScrollBarInfo() const;
|
|
|
|
|
|
|
|
void SetMenuInfo(const menu_info &info);
|
|
|
|
const menu_info& MenuInfo() const;
|
|
|
|
|
|
|
|
void SetMouseMode(mode_mouse mode);
|
|
|
|
mode_mouse MouseMode() const;
|
|
|
|
bool FocusFollowsMouse() const;
|
|
|
|
|
|
|
|
void SetWorkspacesCount(int32 number);
|
|
|
|
int32 WorkspacesCount() const;
|
|
|
|
|
|
|
|
void SetWorkspacesMessage(int32 index, BMessage& message);
|
|
|
|
const BMessage* WorkspacesMessage(int32 index) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void _SetDefaults();
|
|
|
|
status_t _Load();
|
2006-02-06 16:36:46 +03:00
|
|
|
status_t _GetPath(BPath& path);
|
2005-07-17 20:25:48 +04:00
|
|
|
|
2005-11-03 20:03:36 +03:00
|
|
|
ServerFont fPlainFont;
|
|
|
|
ServerFont fBoldFont;
|
|
|
|
ServerFont fFixedFont;
|
|
|
|
|
2005-07-17 20:25:48 +04:00
|
|
|
scroll_bar_info fScrollBarInfo;
|
|
|
|
menu_info fMenuInfo;
|
|
|
|
mode_mouse fMouseMode;
|
|
|
|
int32 fWorkspacesCount;
|
|
|
|
BMessage fWorkspaceMessages[kMaxWorkspaces];
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* DESKTOP_SETTINGS_PRIVATE_H */
|