11 #include "GDCore/Serialization/SerializerElement.h"
12 #include "GDCore/String.h"
13 #include "GDCore/Project/QuickCustomization.h"
17 class NamedPropertyDescriptor;
18 class SerializerElement;
19 class PropertiesContainer;
60 bool IsFolder()
const {
return !folderName.empty(); }
90 if (IsFolder())
return children.size();
122 if (parent ==
nullptr) {
123 return badPropertyFolderOrProperty;
137 void MoveChild(std::size_t oldIndex, std::size_t newIndex);
149 void RemoveRecursivelyPropertyNamed(
const gd::String& name);
161 std::size_t position = (
size_t)-1);
168 std::size_t position);
186 void MovePropertyFolderOrPropertyToAnotherFolder(
189 std::size_t newPosition);
208 void UpdateGroupNameOfAllProperties();
211 void SetGroupNameOfAllProperties(
const gd::String& groupName);
226 std::vector<std::unique_ptr<PropertyFolderOrProperty>>
Used to describe a property shown in a property grid.
Definition: NamedPropertyDescriptor.h:21
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
A container of properties, used for custom behaviors, custom objects, extensions.....
Definition: PropertiesContainer.h:17
Class representing a folder structure in order to organize properties in folders (to be used with a P...
Definition: PropertyFolderOrProperty.h:30
PropertyFolderOrProperty & GetParent()
Returns the parent of the instance. If the instance has no parent (root folder), the null property is...
Definition: PropertyFolderOrProperty.h:121
bool IsRootFolder()
Returns true if the instance is a root folder (that's to say it has no parent).
Definition: PropertyFolderOrProperty.h:132
const gd::String & GetFolderName() const
Returns the name of the folder.
Definition: PropertyFolderOrProperty.h:65
bool IsFolder() const
Returns true if the instance represents a folder.
Definition: PropertyFolderOrProperty.h:60
std::size_t GetChildrenCount() const
Returns the number of children. Returns 0 if the instance represents a property.
Definition: PropertyFolderOrProperty.h:89
gd::NamedPropertyDescriptor & GetProperty() const
Returns the property behind the instance.
Definition: PropertyFolderOrProperty.h:55
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24