Tracker: Style fixes to BPoseView

This commit is contained in:
John Scipione 2014-02-01 01:11:42 -05:00
parent 6a6060d8fe
commit 9d33fe6896
2 changed files with 527 additions and 392 deletions

File diff suppressed because it is too large Load Diff

View File

@ -609,13 +609,14 @@ class BPoseView : public BView {
// click handling
bool WasDoubleClick(const BPose*, BPoint);
bool WasClickInPath(const BPose*, int32 index, BPoint) const;
bool WasClickInPath(const BPose*, int32 index,
BPoint mouseLocation) const;
// selection
void SelectPosesListMode(BRect, BList**);
void SelectPosesIconMode(BRect, BList**);
void AddRemoveSelectionRange(BPoint where, bool extendSelection,
BPose*);
BPose* pose);
void _BeginSelectionRect(const BPoint& point, bool extendSelection);
void _UpdateSelectionRect(const BPoint& point);
@ -1225,7 +1226,7 @@ EachTextWidget(BPose* pose, BPoseView* poseView,
{
for (int32 index = 0; ;index++) {
BColumn* column = poseView->ColumnAt(index);
if (!column)
if (column == NULL)
break;
BTextWidget* widget = pose->WidgetFor(column->AttrHash());
@ -1243,7 +1244,7 @@ EachTextWidget(BPose* pose, BPoseView* poseView,
{
for (int32 index = 0; ;index++) {
BColumn* column = poseView->ColumnAt(index);
if (!column)
if (column == NULL)
break;
BTextWidget* widget = pose->WidgetFor(column->AttrHash());
@ -1261,7 +1262,7 @@ WhileEachTextWidget(BPose* pose, BPoseView* poseView,
{
for (int32 index = 0; ;index++) {
BColumn* column = poseView->ColumnAt(index);
if (!column)
if (column == NULL)
break;
BTextWidget* widget = pose->WidgetFor(column->AttrHash());