Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_tree_view.hh
| Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | public: | ||||
| virtual bool on_drop(const wmDrag &drag); | virtual bool on_drop(const wmDrag &drag); | ||||
| virtual bool can_drop(const wmDrag &drag) const; | virtual bool can_drop(const wmDrag &drag) const; | ||||
| /** | /** | ||||
| * Custom text to display when dragging over a tree item. Should explain what happens when | * Custom text to display when dragging over a tree item. Should explain what happens when | ||||
| * dropping the data onto this item. Will only be used if #AbstractTreeViewItem::can_drop() | * dropping the data onto this item. Will only be used if #AbstractTreeViewItem::can_drop() | ||||
| * returns true, so the implementing override doesn't have to check that again. | * returns true, so the implementing override doesn't have to check that again. | ||||
| * The returned value must be a translated string. | * The returned value must be a translated string. | ||||
| */ | */ | ||||
| virtual std::string drop_tooltip(const bContext &C, | virtual std::string drop_tooltip(const bContext &C, const wmDrag &drag, const int *) const; | ||||
| const wmDrag &drag, | |||||
| const wmEvent &event) const; | |||||
| /** | /** | ||||
| * Queries if the tree-view item supports renaming in principle. Renaming may still fail, e.g. if | * Queries if the tree-view item supports renaming in principle. Renaming may still fail, e.g. if | ||||
| * another item is already being renamed. | * another item is already being renamed. | ||||
| */ | */ | ||||
| virtual bool can_rename() const; | virtual bool can_rename() const; | ||||
| /** | /** | ||||
| * Try renaming the item, or the data it represents. Can assume | * Try renaming the item, or the data it represents. Can assume | ||||
| * #AbstractTreeViewItem::can_rename() returned true. Sub-classes that override this should | * #AbstractTreeViewItem::can_rename() returned true. Sub-classes that override this should | ||||
| ▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines | |||||