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