Updated indentation style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30393 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _STATUS_BAR_H
|
#ifndef _STATUS_BAR_H
|
||||||
@@ -12,15 +12,18 @@
|
|||||||
|
|
||||||
class BStatusBar : public BView {
|
class BStatusBar : public BView {
|
||||||
public:
|
public:
|
||||||
BStatusBar(BRect frame, const char* name, const char* label = NULL,
|
BStatusBar(BRect frame, const char* name,
|
||||||
|
const char* label = NULL,
|
||||||
const char* trailingLabel = NULL);
|
const char* trailingLabel = NULL);
|
||||||
BStatusBar(const char* name, const char* label = NULL,
|
BStatusBar(const char* name,
|
||||||
|
const char* label = NULL,
|
||||||
const char* trailingLabel = NULL);
|
const char* trailingLabel = NULL);
|
||||||
BStatusBar(BMessage* archive);
|
BStatusBar(BMessage* archive);
|
||||||
virtual ~BStatusBar();
|
virtual ~BStatusBar();
|
||||||
|
|
||||||
static BArchivable* Instantiate(BMessage* archive);
|
static BArchivable* Instantiate(BMessage* archive);
|
||||||
virtual status_t Archive(BMessage* archive, bool deep = true) const;
|
virtual status_t Archive(BMessage* archive,
|
||||||
|
bool deep = true) const;
|
||||||
|
|
||||||
virtual void AttachedToWindow();
|
virtual void AttachedToWindow();
|
||||||
virtual void MessageReceived(BMessage* message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
@@ -50,17 +53,18 @@ class BStatusBar : public BView {
|
|||||||
const char* Label() const;
|
const char* Label() const;
|
||||||
const char* TrailingLabel() const;
|
const char* TrailingLabel() const;
|
||||||
|
|
||||||
virtual void MouseDown(BPoint point);
|
virtual void MouseDown(BPoint where);
|
||||||
virtual void MouseUp(BPoint point);
|
virtual void MouseUp(BPoint where);
|
||||||
virtual void WindowActivated(bool state);
|
virtual void WindowActivated(bool state);
|
||||||
virtual void MouseMoved(BPoint point, uint32 transit,
|
virtual void MouseMoved(BPoint where, uint32 transit,
|
||||||
const BMessage* dragMessage);
|
const BMessage* dragMessage);
|
||||||
virtual void DetachedFromWindow();
|
virtual void DetachedFromWindow();
|
||||||
virtual void FrameMoved(BPoint newPosition);
|
virtual void FrameMoved(BPoint newPosition);
|
||||||
virtual void FrameResized(float newWidth, float newHeight);
|
virtual void FrameResized(float newWidth, float newHeight);
|
||||||
|
|
||||||
virtual BHandler* ResolveSpecifier(BMessage* message, int32 index,
|
virtual BHandler* ResolveSpecifier(BMessage* message, int32 index,
|
||||||
BMessage* specifier, int32 what, const char* property);
|
BMessage* specifier, int32 what,
|
||||||
|
const char* property);
|
||||||
|
|
||||||
virtual void ResizeToPreferred();
|
virtual void ResizeToPreferred();
|
||||||
virtual void GetPreferredSize(float* _width, float* _height);
|
virtual void GetPreferredSize(float* _width, float* _height);
|
||||||
@@ -77,6 +81,7 @@ class BStatusBar : public BView {
|
|||||||
virtual BSize PreferredSize();
|
virtual BSize PreferredSize();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
// FBC memebers
|
||||||
virtual void _ReservedStatusBar2();
|
virtual void _ReservedStatusBar2();
|
||||||
virtual void _ReservedStatusBar3();
|
virtual void _ReservedStatusBar3();
|
||||||
virtual void _ReservedStatusBar4();
|
virtual void _ReservedStatusBar4();
|
||||||
@@ -85,8 +90,10 @@ class BStatusBar : public BView {
|
|||||||
|
|
||||||
void _InitObject();
|
void _InitObject();
|
||||||
void _SetTextData(BString& text, const char* string,
|
void _SetTextData(BString& text, const char* string,
|
||||||
const BString& combineWith, bool rightAligned);
|
const BString& combineWith,
|
||||||
BRect _BarFrame(const font_height* fontHeight = NULL) const;
|
bool rightAligned);
|
||||||
|
BRect _BarFrame(const font_height* fontHeight
|
||||||
|
= NULL) const;
|
||||||
float _BarPosition(const BRect& barFrame) const;
|
float _BarPosition(const BRect& barFrame) const;
|
||||||
|
|
||||||
BString fLabel;
|
BString fLabel;
|
||||||
|
|||||||
Reference in New Issue
Block a user