blob: 75dc7e737e2fce4cd1892d9e68060ed97361aa05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup spoutliner
*
* Tree element classes for the tree elements directly representing an ID (#TSE_SOME_ID).
*/
#pragma once
#include "tree_element.hh"
struct AnimData;
struct ID;
namespace blender::ed::outliner {
class TreeElementID : public AbstractTreeElement {
protected:
ID &id_;
public:
TreeElementID(TreeElement &legacy_te, ID &id);
static std::unique_ptr<TreeElementID> createFromID(TreeElement &legacy_te, ID &id);
void postExpand(SpaceOutliner &) const override;
bool expandPoll(const SpaceOutliner &) const override;
/**
* Expanding not implemented for all types yet. Once it is, this can be set to true or
* `AbstractTreeElement::expandValid()` can be removed altogether.
*/
bool isExpandValid() const override
{
return false;
}
protected:
/* ID types with animation data can use this. */
void expand_animation_data(SpaceOutliner &, const AnimData *) const;
};
} // namespace blender::ed::outliner
|