Lines Matching refs:to

8 Permission is hereby granted, free of charge, to any person obtaining a copy of
9 this software and associated documentation files (the "Software"), to deal in
10 the Software without restriction, including without limitation the rights to
12 of the Software, and to permit persons to whom the Software is furnished to do
13 so, subject to the following conditions:
15 The above copyright notice and this permission notice applies to all licensees
26 used in advertising or otherwise to promote the sale, use or other dealings in
358 // init things related to laying out items
420 // check for invalid sizes here to protect against
541 // check for invalid sizes here to protect against
942 // do we need to update scrollbars?
987 // doesn't allow us to have shortcuts without Command yet
989 // Escape key, used to abort an on-going clipboard cut or filtering
1244 PRINT(("failed to watch node %s\n", strerror(result)));
1382 // AddPosesTask reads a bunch of models and passes them off to
1406 // as results of a query; subclasses override this to provide
1456 // have to node monitor ahead of time because Model will
1458 // OK to call when poseView is not locked
1468 PRINT(("failed to lock\n"));
1475 // switched and an old AddPosesTask needs to die.
1489 // try to watch the model, no matter what
1492 // failed to init pose, model is a zombie, add to zombie
1494 PRINT(("1 adding model %s to zombie list, error %s\n",
1550 // we are here because the window got closed or otherwise failed to
1554 // failed to lock window, bail
1644 // the trash window needs to display a union of all the
1672 // if we're not in icon mode then we need to check for poses that
1673 // were "auto" placed to see if they overlap with other icons
1696 // We never want to create poses for those volumes; the file
1773 // copy top contents to bottom and
1774 // redraw from top to top of part that could be copied
1819 // the current view bounds, we do not need to draw.
1823 // The new pose may need to be placed where another pose already
1824 // is. This code creates some rects where we either need to
1846 // just needs to be rethought completely. Similar code is in
1855 // to show the area below the items that have already
1873 // Shrink the srcRect down to the just the part that
1874 // needs to be redrawn.
1983 // we set a flag in the pose here to signify that we were
1984 // auto placed - after adding all poses to window, we're
1985 // going to go back and make sure that the auto placed poses
1987 // move them to new positions.
1994 // add item to list and draw if necessary
2233 // Nothing else to do in this case.
2483 // copy attributes to the clipboard
2640 // setting changed from Tracker to all open
2784 // the column we removed might just be the one that was used to filter
2837 // rearrange column titles to fit new column
2861 // the column we added might just add new poses to be showed
2974 // then we're going to retry a few times to see if we can get some
2975 // pose info to properly place the icon
2983 //PRINT(("retrying to read pose info for %s, %d\n",
3082 // Try to lock the center of the pose view when scaling icons, but not
3087 // definitely changing the icon size, so we will need to scroll
3123 // see if we need to map icons into new mode
3130 // check if we need to re-place poses when they are out of view
3148 // this icon has a location, but needs to be remapped, because
3154 // so it needs to be changed anyways!
3162 // invalidate before anything else to avoid flickering, especially when
3164 // app_server to scroll silently, ie not visibly)
3443 // try to place new item at click point or under mouse if possible
3471 // try to place new folder at click point or under mouse if possible
3548 // clean up items to nearest locations
3558 // do we need to move pose to a grid location?
3590 // move pose to probable location
3595 // make pose rect a little bigger to ensure space between poses
3600 // find an empty slot to put pose into
3675 // it's time to check the Deskbar frame again
3793 // ## be sure to keep this code in sync with calls to NextSlot
3822 // move to next slot
3825 // if we reached the end of row go down to next row
3842 // the proper index to insert a new pose into the list.
3866 // didn't find pose AT location y - bump index to proper insert point
3872 // if flag is true then constrain index to legal value since this
3896 // and failing to remove it. This having severe implications
3990 BPoseView::MoveOrChangePoseSelection(int32 to)
3998 BPose* target = poseList->ItemAt(to);
4003 int32 from = to < firstIndex ? firstIndex : lastIndex;
4004 int32 step = from < to ? 1 : -1;
4009 for (int32 index = from; step > 0 ? index <= to : index >= to;
4016 ScrollIntoView(target, to);
4018 SelectPose(poseList->ItemAt(to), to);
4074 // TODO: need to check if pose is member of selection list
4101 // wasn't selected to begin with
4107 // TODO: need a simple call to CalcRect that works both in listView and
4213 // in order to handle a clipping file, the drag initiator must be able
4278 // types to target->IsDropTargetForList(mimeTypeList);
4333 // align to grid if needed
4460 // do not handle roColor-style drops here, pass them on to the desktop
4505 // look for srcWindow to determine whether drag was initiated in tracker
4515 // the targetDirectory to it, else set it to this pose view
4606 // here is a file for the drag initiator, it is up to it now
4607 // to stuff it with the goods
4637 // copy over all the file types the drag initiator claimed to
4724 // calculate a pointList to make the icons land
4727 // force the the icons to lay out in 5 columns
4747 // nothing to copy, list doesn't get consumed
4778 // failed to write file, remove file and bail
4851 // failed to write file, remove file and bail
4891 // TODO: pick files to drop/launch on a case by case basis
4904 // TODO: removed check for root here need to do that, possibly at a
5052 // so that we "find" the correct pose to remove
5053 // need to do this because bsearch uses top of pose
5054 // to locate pose to remove
5070 // remove and reinsert pose to keep VSlist sorted
5095 // can't copy to read-only volume
5099 B_TRANSLATE("You can't move or copy items to read-only volumes."),
5109 B_TRANSLATE("Sorry, you can't copy items to the Trash."),
5133 B_TRANSLATE("Are you sure you want to move or copy the selected "
5134 "item(s) to this folder?"), B_TRANSLATE("Cancel"),
5150 // resolve symlink and add the resulting entry_ref to the list
5277 // wait for other windows to do the same before we start
5466 // we must check to see if this comes as a query
5469 // no longer match the query, so we don't want to close the window
5476 // it is impossible to watch for ENTRY_REMOVED in
5492 // What happens when a node and a symlink to it are in the
5536 // delay of 500000: wait for volumes to properly finish mounting
5538 // to a volume would get initialized as a symlink to a directory
5606 // have to node monitor ahead of time because Model will
5613 PRINT(("2 adding model %s to zombie list, error %s\n", model->Name(),
5649 message->FindInt64("to directory", (int64*)&dirNode.node);
5659 // is different than that of the root directory; we have to do a
5669 // point the dirNode to the actual volume
5688 // see if we need to update window title (and folder itself)
5709 // for queries we check for move to trash and remove item if so
5719 // if we get a rename then we need to assume that we might
5814 // to watch this directory
5822 // a broken link still needs to watch this folder, but
5879 // middle of mimeset and we wan't to pick up the changes
5962 // to be fine now since we're receiving notifications about it, it might
5963 // be a good time to convert it to a non-zombie state. cf. test in #4130
5983 // need to find the index of the pose in the pose list
6117 // first move selection to trash,
6139 // add a function object to the list of tasks to run
6167 // cache up the result in a map so that we don't have to keep calling
6239 alertText.SetTo(B_TRANSLATE("The selected item cannot be moved to "
6240 "the Trash. Would you like to delete it instead? "
6244 "moved to the Trash. Would you like to delete them instead? "
6345 // first move selection to trash,
6361 // add a function object to the list of tasks to run
6404 // add a function object to the list of tasks to run
6600 // have to take care of the case sensitivity ourselves.
6669 // scroll to the top of the view
6678 // scroll to the bottom of the view
6854 // add char to existing matchString or start new match string
6882 // loop through all poses to find match
6919 // loop through all poses to find match
6951 // TODO: we might want to change this to make it always work
6953 // to how Tracker represents data (for example we could filter
7049 // we're not in list mode so scan visually for pose to select
7196 // use current selection rectangle to scan poses
7264 // we now need to update the pose view's selection list by clearing it
7308 // reset cursor in case we set it to the copy cursor
7480 // because there's currently no way to know wich buttons were
7486 // to make right button dragging possible
7569 // Make sure that every file added to the message has its
7837 // TODO: This is a mess due to pose rect calculation and list management
7877 // this sucks, need to clean up using a vector class instead
7885 // first Pose selected gets to be the pivot.
7940 // This weird bit of logic causes the selection to always
7941 // center around the pivot point, unless you choose to hold
7947 // and we need it to be preserved.
7982 // are also not going to work out.
8240 // Switch to new directory
8291 // add a messenger to the launch message that will be used to
8292 // dispatch scripting calls from apps to the PoseView
8422 // thread id to prevent old add_poses thread from adding any more icons
8423 // the new add_poses thread will then set fAddPosesThread to its ID and it
8424 // will be allowed to add icons
8433 // variables to indicate new state
8571 // to check if pose is a query, follow any symlink first
8587 // this is used to make query templates come up in a special edit window
8600 B_TRANSLATE("The Tracker must be running to see Info windows."),
8624 B_TRANSLATE("The Tracker must be running to set the default "
8667 // if option down, add instructions to close the parent
8875 // to be read-only if any item's volume is read-only
9013 // TODO: I don't know what this was supposed to work around
9046 // TODO: some calls to UpdateScrollRange don't do the right thing because
9050 // an extra call to UpdateScrollRange in SelectChildInParent to work
9293 srcRect.right += 1024; // need this to erase correctly
9390 // need to invalidate for the last item in the list
9482 // check to see if insertion should be at beginning of list
9494 // look if old position is still ok, by comparing to siblings
9679 // this will serve to clean up after the invalidate
9681 // we will use columnDrawRect to draw the actual resized column
9707 // dont have to undraw when shrinking
9744 // find the leftmost boundary of columns we are about to reshuffle
9764 // invalidate everything to the right of miny
9908 // don't test for buttons up here and try to circumvent messaging
9970 // note: fAlreadySelectedDropTarget is a trick to avoid to really search
9971 // fSelectionList. Another solution would be to add Hilite/IsHilited just
10026 // have to be a little tricky here - draw just the icon,
10173 // Force selection rect update to account for the new scrolled coords
10415 // something was removed, need to start over
10585 // We always want to be at least the preferred scrollbar size,