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
|
||||
|
||||
|
||||
#include "CountView.h"
|
||||
|
||||
#include <Application.h>
|
||||
@@ -49,14 +50,19 @@ 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,
|
||||
:
|
||||
BView(bounds, "CountVw", B_FOLLOW_LEFT + B_FOLLOW_BOTTOM,
|
||||
B_PULSE_NEEDED | B_WILL_DRAW),
|
||||
fLastCount(-1),
|
||||
fPoseView(view),
|
||||
@@ -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()) {
|
||||
|
||||
@@ -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>
|
||||
@@ -94,4 +94,5 @@ private:
|
||||
|
||||
using namespace BPrivate;
|
||||
|
||||
#endif
|
||||
|
||||
#endif // _COUNT_VIEW_H
|
||||
|
||||
Reference in New Issue
Block a user