Ticket #4322: tracker.4322.patch
File tracker.4322.patch, 1.8 KB (added by , 15 years ago) |
---|
-
src/kits/tracker/PoseView.cpp
3564 3564 // search only nearby poses (vertically) 3565 3565 int32 index = FirstIndexAtOrBelow((int32)(poseRect.top - IconPoseHeight())); 3566 3566 int32 numPoses = fVSPoseList->CountItems(); 3567 3568 printf("SlotOccupied: index %ld, numPoses: %ld\n", index, numPoses); 3567 3569 3568 3570 while (index < numPoses && fVSPoseList->ItemAt(index)->Location(this).y 3569 3571 < poseRect.bottom) { 3572 printf("Checking index %ld\n", index); 3570 3573 3571 3574 BRect rect(fVSPoseList->ItemAt(index)->CalcRect(this)); 3572 3575 if (poseRect.Intersects(rect)) -
src/kits/tracker/Pose.cpp
744 744 BTextWidget * 745 745 BPose::WidgetFor(uint32 attr, int32 *index) const 746 746 { 747 printf("WidgetFor(%lu, %p)\n", attr, index); 747 748 int32 count = fWidgetList.CountItems(); 749 printf("Widget count: %ld\n", count); 748 750 for (int32 i = 0; i < count; i++) { 749 751 BTextWidget *widget = fWidgetList.ItemAt(i); 752 printf("Widget %ld: %p\n", i, widget); 750 753 if (widget->AttrHash() == attr) { 751 754 if (index) 752 755 *index = i; … … 914 917 BRect 915 918 BPose::CalcRect(const BPoseView *poseView) const 916 919 { 920 printf("BPose::CalcRect(%p), this: %p\n", poseView, this); 917 921 ASSERT(poseView->ViewMode() != kListMode); 918 922 919 923 BRect rect; … … 921 925 if (poseView->ViewMode() == kIconMode) { 922 926 rect.left = location.x; 923 927 rect.right = rect.left + poseView->IconSizeInt(); 924 928 929 printf("first column: %lu\n", poseView->FirstColumn()->AttrHash()); 925 930 BTextWidget *widget = WidgetFor(poseView->FirstColumn()->AttrHash()); 926 931 if (widget) { 927 932 float textWidth = ceilf(widget->TextWidth(poseView) + 1);