Some coding style fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37854 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-08-02 23:16:19 +00:00
parent cd08b9f7bc
commit 4d1aa4a619
2 changed files with 14 additions and 14 deletions

View File

@ -87,14 +87,15 @@ make_blend_color(rgb_color colorA, rgb_color colorB, float position)
// methods to the Decorator base class // methods to the Decorator base class
BeDecorator::BeDecorator(DesktopSettings& settings, BRect rect, BeDecorator::BeDecorator(DesktopSettings& settings, BRect rect,
window_look look, uint32 flags) window_look look, uint32 flags)
: Decorator(settings, rect, look, flags), :
Decorator(settings, rect, look, flags),
fTabOffset(0), fTabOffset(0),
fTabLocation(0.0), fTabLocation(0.0),
fLastClicked(0) fLastClicked(0)
{ {
_UpdateFont(settings); _UpdateFont(settings);
BeDecorator::SetLook(settings, look); SetLook(settings, look);
fFrameColors = new RGBColor[6]; fFrameColors = new RGBColor[6];
fFrameColors[0].SetColor(152, 152, 152); fFrameColors[0].SetColor(152, 152, 152);

View File

@ -18,7 +18,7 @@ class Desktop;
class BeDecorator: public Decorator { class BeDecorator: public Decorator {
public: public:
BeDecorator(DesktopSettings& settings, BeDecorator(DesktopSettings& settings,
BRect frame, window_look look, BRect frame, window_look look,
uint32 flags); uint32 flags);
@ -38,7 +38,7 @@ class BeDecorator: public Decorator {
virtual click_type Clicked(BPoint pt, int32 buttons, virtual click_type Clicked(BPoint pt, int32 buttons,
int32 modifiers); int32 modifiers);
protected: protected:
virtual void _DoLayout(); virtual void _DoLayout();
virtual void _DrawFrame(BRect r); virtual void _DrawFrame(BRect r);
@ -49,15 +49,15 @@ class BeDecorator: public Decorator {
virtual void _DrawZoom(BRect r); virtual void _DrawZoom(BRect r);
virtual void _SetTitle(const char* string, virtual void _SetTitle(const char* string,
BRegion* updateRegion = NULL); BRegion* updateRegion = NULL);
virtual void _FontsChanged(DesktopSettings& settings, virtual void _FontsChanged(DesktopSettings& settings,
BRegion* updateRegion); BRegion* updateRegion);
virtual void _SetLook(DesktopSettings& settings, virtual void _SetLook(DesktopSettings& settings,
window_look look, window_look look,
BRegion* updateRegion = NULL); BRegion* updateRegion = NULL);
virtual void _SetFlags(uint32 flags, virtual void _SetFlags(uint32 flags,
BRegion* updateRegion = NULL); BRegion* updateRegion = NULL);
virtual void _SetFocus(); virtual void _SetFocus();
virtual void _SetColors(); virtual void _SetColors();
@ -66,19 +66,18 @@ class BeDecorator: public Decorator {
virtual void _ResizeBy(BPoint offset, BRegion* dirty); virtual void _ResizeBy(BPoint offset, BRegion* dirty);
virtual bool _SetTabLocation(float location, virtual bool _SetTabLocation(float location,
BRegion* updateRegion = NULL); BRegion* updateRegion = NULL);
virtual bool _SetSettings(const BMessage& settings, virtual bool _SetSettings(const BMessage& settings,
BRegion* updateRegion = NULL); BRegion* updateRegion = NULL);
virtual void _GetFootprint(BRegion* region); virtual void _GetFootprint(BRegion* region);
private: private:
void _UpdateFont(DesktopSettings& settings); void _UpdateFont(DesktopSettings& settings);
void _DrawBlendedRect(BRect r, bool down); void _DrawBlendedRect(BRect r, bool down);
void _GetButtonSizeAndOffset(const BRect& tabRect, void _GetButtonSizeAndOffset(const BRect& tabRect,
float* offset, float* offset, float*size) const;
float*size) const;
void _LayoutTabItems(const BRect& tabRect); void _LayoutTabItems(const BRect& tabRect);
RGBColor fButtonHighColor; RGBColor fButtonHighColor;