05bd1efe5b
* moved the system default font functionality into the DesktopSettings class. * ServerFont::SetStyle() is now a public method. * Improved font fallback routines: they will never end up without a font if there is at least one font installed. * fixed some minor bugs in the DecorManager. * Decorator now get a DesktopSettings object passed - dunno if that's a good idea (since we'll have to open the DesktopSettings header), but it works for now (and something like this is probably needed anyway). * a clean ServerFont is now set to the system default font - and not to the (user chosen) desktop default font anymore (since the font manager doesn't know about that one). * Improved font directory scanning in the font manager a bit, it's now using find_directory() instead of hard-coded paths. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14666 a95241bf-73f2-0310-859d-f6bbb57e9c96
63 lines
1.4 KiB
C++
63 lines
1.4 KiB
C++
/*
|
|
* Copyright 2001-2005, Haiku.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Axel Dörfler, axeld@pinc-software.de
|
|
*/
|
|
#ifndef DESKTOP_SETTINGS_H
|
|
#define DESKTOP_SETTINGS_H
|
|
|
|
|
|
#include <InterfaceDefs.h>
|
|
#include <Menu.h>
|
|
#include <Message.h>
|
|
|
|
class Desktop;
|
|
class ServerFont;
|
|
|
|
|
|
static const int32 kMaxWorkspaces = 32;
|
|
|
|
|
|
class DesktopSettings {
|
|
public:
|
|
DesktopSettings(Desktop* desktop);
|
|
~DesktopSettings();
|
|
|
|
status_t Save();
|
|
|
|
void SetDefaultPlainFont(const ServerFont& font);
|
|
void GetDefaultPlainFont(ServerFont& font) const;
|
|
|
|
void SetDefaultBoldFont(const ServerFont& font);
|
|
void GetDefaultBoldFont(ServerFont& font) const;
|
|
|
|
void SetDefaultFixedFont(const ServerFont& font);
|
|
void GetDefaultFixedFont(ServerFont& font) const;
|
|
|
|
void SetScrollBarInfo(const scroll_bar_info& info);
|
|
void GetScrollBarInfo(scroll_bar_info& info) const;
|
|
|
|
void SetMenuInfo(const menu_info& info);
|
|
void GetMenuInfo(menu_info& info) 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:
|
|
class Private;
|
|
friend class Desktop;
|
|
|
|
Private* fSettings;
|
|
};
|
|
|
|
#endif /* DESKTOP_SETTINGS_H */
|