Tracker: style fixes to CountView

This commit is contained in:
John Scipione 2014-06-20 17:27:59 -04:00
parent 63c1c8921e
commit 0fe013b69b
2 changed files with 19 additions and 12 deletions

View File

@ -34,6 +34,7 @@ All rights reserved.
// defines the status area drawn in the bottom left corner of a Tracker window
#include "CountView.h"
#include <Application.h>
@ -49,15 +50,20 @@ All rights reserved.
#include "Utilities.h"
const bigtime_t kBarberPoleDelay = 500000;
#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "CountView"
const bigtime_t kBarberPoleDelay = 500000;
// #pragma mark - BCountView
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),
fPoseView(view),
fShowingBarberPole(false),
@ -308,7 +314,7 @@ BCountView::MouseDown(BPoint)
window->Activate();
window->UpdateIfNeeded();
if (fPoseView->IsFilePanel() || !fPoseView->TargetModel())
if (fPoseView->IsFilePanel() || fPoseView->TargetModel() == NULL)
return;
if (!window->TargetModel()->IsRoot()) {

View File

@ -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.
All rights reserved.
*/
#ifndef __COUNT_VIEW__
#define __COUNT_VIEW__
#ifndef _COUNT_VIEW_H
#define _COUNT_VIEW_H
#include <String.h>
@ -50,9 +50,9 @@ public:
BCountView(BRect, BPoseView*);
~BCountView();
virtual void Draw(BRect);
virtual void MouseDown(BPoint);
virtual void AttachedToWindow();
virtual void Draw(BRect);
virtual void MouseDown(BPoint);
virtual void AttachedToWindow();
virtual void Pulse();
virtual void WindowActivated(bool active);
@ -94,4 +94,5 @@ private:
using namespace BPrivate;
#endif
#endif // _COUNT_VIEW_H