From 8296330edf7abcaff2c77bc047924adb77bf1fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 25 Apr 2009 09:17:08 +0000 Subject: [PATCH] Updated indentation style. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30393 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/interface/StatusBar.h | 155 ++++++++++++++++--------------- 1 file changed, 81 insertions(+), 74 deletions(-) diff --git a/headers/os/interface/StatusBar.h b/headers/os/interface/StatusBar.h index 4eed0f48f7..066dad53cc 100644 --- a/headers/os/interface/StatusBar.h +++ b/headers/os/interface/StatusBar.h @@ -1,5 +1,5 @@ /* - * Copyright 2006-2008, Haiku, Inc. All Rights Reserved. + * Copyright 2006-2009, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _STATUS_BAR_H @@ -11,96 +11,103 @@ class BStatusBar : public BView { - public: - BStatusBar(BRect frame, const char* name, const char* label = NULL, - const char* trailingLabel = NULL); - BStatusBar(const char* name, const char* label = NULL, - const char* trailingLabel = NULL); - BStatusBar(BMessage* archive); - virtual ~BStatusBar(); +public: + BStatusBar(BRect frame, const char* name, + const char* label = NULL, + const char* trailingLabel = NULL); + BStatusBar(const char* name, + const char* label = NULL, + const char* trailingLabel = NULL); + BStatusBar(BMessage* archive); + virtual ~BStatusBar(); - static BArchivable* Instantiate(BMessage* archive); - virtual status_t Archive(BMessage* archive, bool deep = true) const; + static BArchivable* Instantiate(BMessage* archive); + virtual status_t Archive(BMessage* archive, + bool deep = true) const; - virtual void AttachedToWindow(); - virtual void MessageReceived(BMessage* message); - virtual void Draw(BRect updateRect); + virtual void AttachedToWindow(); + virtual void MessageReceived(BMessage* message); + virtual void Draw(BRect updateRect); - virtual void SetBarColor(rgb_color color); - virtual void SetBarHeight(float height); + virtual void SetBarColor(rgb_color color); + virtual void SetBarHeight(float height); - virtual void SetText(const char* string); - virtual void SetTrailingText(const char* string); - virtual void SetMaxValue(float max); + virtual void SetText(const char* string); + virtual void SetTrailingText(const char* string); + virtual void SetMaxValue(float max); - virtual void Update(float delta, const char* text = NULL, - const char* trailingText = NULL); - virtual void Reset(const char* label = NULL, - const char* trailingLabel = NULL); - virtual void SetTo(float value, const char* text = NULL, - const char* trailingText = NULL); + virtual void Update(float delta, const char* text = NULL, + const char* trailingText = NULL); + virtual void Reset(const char* label = NULL, + const char* trailingLabel = NULL); + virtual void SetTo(float value, const char* text = NULL, + const char* trailingText = NULL); - float CurrentValue() const; - float MaxValue() const; - rgb_color BarColor() const; - float BarHeight() const; + float CurrentValue() const; + float MaxValue() const; + rgb_color BarColor() const; + float BarHeight() const; - const char* Text() const; - const char* TrailingText() const; - const char* Label() const; - const char* TrailingLabel() const; + const char* Text() const; + const char* TrailingText() const; + const char* Label() const; + const char* TrailingLabel() const; - virtual void MouseDown(BPoint point); - virtual void MouseUp(BPoint point); - virtual void WindowActivated(bool state); - virtual void MouseMoved(BPoint point, uint32 transit, - const BMessage* dragMessage); - virtual void DetachedFromWindow(); - virtual void FrameMoved(BPoint newPosition); - virtual void FrameResized(float newWidth, float newHeight); + virtual void MouseDown(BPoint where); + virtual void MouseUp(BPoint where); + virtual void WindowActivated(bool state); + virtual void MouseMoved(BPoint where, uint32 transit, + const BMessage* dragMessage); + virtual void DetachedFromWindow(); + virtual void FrameMoved(BPoint newPosition); + virtual void FrameResized(float newWidth, float newHeight); - virtual BHandler* ResolveSpecifier(BMessage* message, int32 index, - BMessage* specifier, int32 what, const char* property); + virtual BHandler* ResolveSpecifier(BMessage* message, int32 index, + BMessage* specifier, int32 what, + const char* property); - virtual void ResizeToPreferred(); - virtual void GetPreferredSize(float* _width, float* _height); - virtual void MakeFocus(bool focus = true); - virtual void AllAttached(); - virtual void AllDetached(); - virtual status_t GetSupportedSuites(BMessage* data); + virtual void ResizeToPreferred(); + virtual void GetPreferredSize(float* _width, float* _height); + virtual void MakeFocus(bool focus = true); + virtual void AllAttached(); + virtual void AllDetached(); + virtual status_t GetSupportedSuites(BMessage* data); - virtual status_t Perform(perform_code d, void* arg); + virtual status_t Perform(perform_code d, void* arg); - // Layout methods - virtual BSize MinSize(); - virtual BSize MaxSize(); - virtual BSize PreferredSize(); + // Layout methods + virtual BSize MinSize(); + virtual BSize MaxSize(); + virtual BSize PreferredSize(); - private: - virtual void _ReservedStatusBar2(); - virtual void _ReservedStatusBar3(); - virtual void _ReservedStatusBar4(); +private: + // FBC memebers + virtual void _ReservedStatusBar2(); + virtual void _ReservedStatusBar3(); + virtual void _ReservedStatusBar4(); - BStatusBar &operator=(const BStatusBar& other); + BStatusBar& operator=(const BStatusBar& other); - void _InitObject(); - void _SetTextData(BString& text, const char* string, - const BString& combineWith, bool rightAligned); - BRect _BarFrame(const font_height* fontHeight = NULL) const; - float _BarPosition(const BRect& barFrame) const; + void _InitObject(); + void _SetTextData(BString& text, const char* string, + const BString& combineWith, + bool rightAligned); + BRect _BarFrame(const font_height* fontHeight + = NULL) const; + float _BarPosition(const BRect& barFrame) const; - BString fLabel; - BString fTrailingLabel; - BString fText; - BString fTrailingText; - float fMax; - float fCurrent; - float fBarHeight; - float fTextDivider; - rgb_color fBarColor; - bool fCustomBarHeight; + BString fLabel; + BString fTrailingLabel; + BString fText; + BString fTrailingText; + float fMax; + float fCurrent; + float fBarHeight; + float fTextDivider; + rgb_color fBarColor; + bool fCustomBarHeight; - uint32 _reserved[5]; + uint32 _reserved[5]; }; #endif // _STATUS_BAR_H