Style cleanup.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2001-2009, Haiku.
|
* Copyright 2001-2013, Haiku.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
#include <Menu.h>
|
#include <Menu.h>
|
||||||
#include <Message.h>
|
#include <Message.h>
|
||||||
|
|
||||||
|
|
||||||
class Desktop;
|
class Desktop;
|
||||||
class DesktopSettingsPrivate;
|
class DesktopSettingsPrivate;
|
||||||
class ServerFont;
|
class ServerFont;
|
||||||
@@ -30,70 +31,75 @@ enum {
|
|||||||
kDraggerSettings = 0x10,
|
kDraggerSettings = 0x10,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class DesktopSettings {
|
class DesktopSettings {
|
||||||
public:
|
public:
|
||||||
DesktopSettings(Desktop* desktop);
|
DesktopSettings(Desktop* desktop);
|
||||||
|
|
||||||
status_t Save(uint32 mask = kAllSettings);
|
status_t Save(uint32 mask = kAllSettings);
|
||||||
|
|
||||||
void GetDefaultPlainFont(ServerFont& font) const;
|
void GetDefaultPlainFont(ServerFont& font) const;
|
||||||
void GetDefaultBoldFont(ServerFont& font) const;
|
void GetDefaultBoldFont(ServerFont& font) const;
|
||||||
void GetDefaultFixedFont(ServerFont& font) const;
|
void GetDefaultFixedFont(ServerFont& font) const;
|
||||||
|
|
||||||
void GetScrollBarInfo(scroll_bar_info& info) const;
|
void GetScrollBarInfo(scroll_bar_info& info) const;
|
||||||
void GetMenuInfo(menu_info& info) const;
|
void GetMenuInfo(menu_info& info) const;
|
||||||
|
|
||||||
mode_mouse MouseMode() const;
|
mode_mouse MouseMode() const;
|
||||||
mode_focus_follows_mouse FocusFollowsMouseMode() const;
|
mode_focus_follows_mouse FocusFollowsMouseMode() const;
|
||||||
bool FocusFollowsMouse() const;
|
bool FocusFollowsMouse() const;
|
||||||
bool AcceptFirstClick() const;
|
bool AcceptFirstClick() const;
|
||||||
|
|
||||||
bool ShowAllDraggers() const;
|
bool ShowAllDraggers() const;
|
||||||
|
|
||||||
int32 WorkspacesCount() const;
|
int32 WorkspacesCount() const;
|
||||||
int32 WorkspacesColumns() const;
|
int32 WorkspacesColumns() const;
|
||||||
int32 WorkspacesRows() const;
|
int32 WorkspacesRows() const;
|
||||||
const BMessage* WorkspacesMessage(int32 index) const;
|
const BMessage* WorkspacesMessage(int32 index) const;
|
||||||
|
|
||||||
rgb_color UIColor(color_which which) const;
|
rgb_color UIColor(color_which which) const;
|
||||||
|
|
||||||
bool SubpixelAntialiasing() const;
|
bool SubpixelAntialiasing() const;
|
||||||
uint8 Hinting() const;
|
uint8 Hinting() const;
|
||||||
uint8 SubpixelAverageWeight() const;
|
uint8 SubpixelAverageWeight() const;
|
||||||
bool IsSubpixelOrderingRegular() const;
|
bool IsSubpixelOrderingRegular() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
DesktopSettingsPrivate* fSettings;
|
DesktopSettingsPrivate* fSettings;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class LockedDesktopSettings : public DesktopSettings {
|
class LockedDesktopSettings : public DesktopSettings {
|
||||||
public:
|
public:
|
||||||
LockedDesktopSettings(Desktop* desktop);
|
LockedDesktopSettings(Desktop* desktop);
|
||||||
~LockedDesktopSettings();
|
~LockedDesktopSettings();
|
||||||
|
|
||||||
void SetDefaultPlainFont(const ServerFont& font);
|
void SetDefaultPlainFont(const ServerFont& font);
|
||||||
void SetDefaultBoldFont(const ServerFont& font);
|
void SetDefaultBoldFont(const ServerFont& font);
|
||||||
void SetDefaultFixedFont(const ServerFont& font);
|
void SetDefaultFixedFont(const ServerFont& font);
|
||||||
|
|
||||||
void SetScrollBarInfo(const scroll_bar_info& info);
|
void SetScrollBarInfo(const scroll_bar_info& info);
|
||||||
void SetMenuInfo(const menu_info& info);
|
void SetMenuInfo(const menu_info& info);
|
||||||
|
|
||||||
void SetMouseMode(mode_mouse mode);
|
void SetMouseMode(mode_mouse mode);
|
||||||
void SetFocusFollowsMouseMode(
|
void SetFocusFollowsMouseMode(
|
||||||
mode_focus_follows_mouse mode);
|
mode_focus_follows_mouse mode);
|
||||||
void SetAcceptFirstClick(bool acceptFirstClick);
|
void SetAcceptFirstClick(bool acceptFirstClick);
|
||||||
|
|
||||||
void SetShowAllDraggers(bool show);
|
void SetShowAllDraggers(bool show);
|
||||||
|
|
||||||
void SetUIColor(color_which which, const rgb_color color);
|
void SetUIColor(color_which which,
|
||||||
|
const rgb_color color);
|
||||||
|
|
||||||
void SetSubpixelAntialiasing(bool subpix);
|
void SetSubpixelAntialiasing(bool subpix);
|
||||||
void SetHinting(uint8 hinting);
|
void SetHinting(uint8 hinting);
|
||||||
void SetSubpixelAverageWeight(uint8 averageWeight);
|
void SetSubpixelAverageWeight(uint8 averageWeight);
|
||||||
void SetSubpixelOrderingRegular(bool subpixelOrdering);
|
void SetSubpixelOrderingRegular(
|
||||||
|
bool subpixelOrdering);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Desktop* fDesktop;
|
Desktop* fDesktop;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* DESKTOP_SETTINGS_H */
|
#endif /* DESKTOP_SETTINGS_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user