diff options
author | Julian Eisel <julian@blender.org> | 2021-03-08 17:40:25 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-03-08 20:38:23 +0300 |
commit | f0ad78e17c3b48b457ad2cda9224924500e89eb9 (patch) | |
tree | 810c20c82d77e35a48f6296bf56275da5fac3e24 /source/blender/editors/space_outliner/tree/tree_element_collection.hh | |
parent | 4292bb060d598659889e7448e02142248564fae7 (diff) |
Cleanup: Rename recently added Outliner files to exclude "_base" suffix
These files can contain more than just the "base" tree element types. E.g. the
class for the view-layer base element can also contain the class for the
view-layer elements. Otherwise we'd end up with like >50 files for the
individual types, most of them very small.
So just give the files a general name and put the related classes in there.
Diffstat (limited to 'source/blender/editors/space_outliner/tree/tree_element_collection.hh')
-rw-r--r-- | source/blender/editors/space_outliner/tree/tree_element_collection.hh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/tree/tree_element_collection.hh b/source/blender/editors/space_outliner/tree/tree_element_collection.hh new file mode 100644 index 00000000000..e9584d37dfe --- /dev/null +++ b/source/blender/editors/space_outliner/tree/tree_element_collection.hh @@ -0,0 +1,36 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +/** \file + * \ingroup spoutliner + */ + +#pragma once + +#include "tree_element.hh" + +namespace blender::ed::outliner { + +class TreeElementCollectionBase final : public AbstractTreeElement { + Scene &scene_; + + public: + TreeElementCollectionBase(TreeElement &legacy_te, Scene &scene); + + void expand(SpaceOutliner &) const override; +}; + +} // namespace blender::ed::outliner |