Tracker: style fixes to CountView
This commit is contained in:
@@ -34,6 +34,7 @@ All rights reserved.
|
|||||||
|
|
||||||
// defines the status area drawn in the bottom left corner of a Tracker window
|
// defines the status area drawn in the bottom left corner of a Tracker window
|
||||||
|
|
||||||
|
|
||||||
#include "CountView.h"
|
#include "CountView.h"
|
||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
@@ -49,15 +50,20 @@ All rights reserved.
|
|||||||
#include "Utilities.h"
|
#include "Utilities.h"
|
||||||
|
|
||||||
|
|
||||||
const bigtime_t kBarberPoleDelay = 500000;
|
|
||||||
|
|
||||||
|
|
||||||
#undef B_TRANSLATION_CONTEXT
|
#undef B_TRANSLATION_CONTEXT
|
||||||
#define B_TRANSLATION_CONTEXT "CountView"
|
#define B_TRANSLATION_CONTEXT "CountView"
|
||||||
|
|
||||||
|
|
||||||
|
const bigtime_t kBarberPoleDelay = 500000;
|
||||||
|
|
||||||
|
|
||||||
|
// #pragma mark - BCountView
|
||||||
|
|
||||||
|
|
||||||
BCountView::BCountView(BRect bounds, BPoseView* view)
|
BCountView::BCountView(BRect bounds, BPoseView* view)
|
||||||
: BView(bounds, "CountVw", B_FOLLOW_LEFT + B_FOLLOW_BOTTOM,
|
:
|
||||||
B_PULSE_NEEDED | B_WILL_DRAW),
|
BView(bounds, "CountVw", B_FOLLOW_LEFT + B_FOLLOW_BOTTOM,
|
||||||
|
B_PULSE_NEEDED | B_WILL_DRAW),
|
||||||
fLastCount(-1),
|
fLastCount(-1),
|
||||||
fPoseView(view),
|
fPoseView(view),
|
||||||
fShowingBarberPole(false),
|
fShowingBarberPole(false),
|
||||||
@@ -308,7 +314,7 @@ BCountView::MouseDown(BPoint)
|
|||||||
window->Activate();
|
window->Activate();
|
||||||
window->UpdateIfNeeded();
|
window->UpdateIfNeeded();
|
||||||
|
|
||||||
if (fPoseView->IsFilePanel() || !fPoseView->TargetModel())
|
if (fPoseView->IsFilePanel() || fPoseView->TargetModel() == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!window->TargetModel()->IsRoot()) {
|
if (!window->TargetModel()->IsRoot()) {
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ of Be Incorporated in the United States and other countries. Other brand product
|
|||||||
names are registered trademarks or trademarks of their respective holders.
|
names are registered trademarks or trademarks of their respective holders.
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
*/
|
*/
|
||||||
#ifndef __COUNT_VIEW__
|
#ifndef _COUNT_VIEW_H
|
||||||
#define __COUNT_VIEW__
|
#define _COUNT_VIEW_H
|
||||||
|
|
||||||
|
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
@@ -50,9 +50,9 @@ public:
|
|||||||
BCountView(BRect, BPoseView*);
|
BCountView(BRect, BPoseView*);
|
||||||
~BCountView();
|
~BCountView();
|
||||||
|
|
||||||
virtual void Draw(BRect);
|
virtual void Draw(BRect);
|
||||||
virtual void MouseDown(BPoint);
|
virtual void MouseDown(BPoint);
|
||||||
virtual void AttachedToWindow();
|
virtual void AttachedToWindow();
|
||||||
virtual void Pulse();
|
virtual void Pulse();
|
||||||
virtual void WindowActivated(bool active);
|
virtual void WindowActivated(bool active);
|
||||||
|
|
||||||
@@ -94,4 +94,5 @@ private:
|
|||||||
|
|
||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
#endif // _COUNT_VIEW_H
|
||||||
|
|||||||
Reference in New Issue
Block a user