2 #include "EventsFunctionsContainer.h"
3 #include "GDCore/Project/PropertyFolderOrProperty.h"
4 #include "GDCore/Tools/SerializableWithNameList.h"
5 #include "NamedPropertyDescriptor.h"
26 size_t position = (
size_t)-1);
28 size_t position = (
size_t)-1);
35 void Move(std::size_t oldIndex, std::size_t newIndex);
36 size_t GetCount()
const;
39 size_t size()
const {
return GetCount(); }
41 bool empty()
const {
return IsEmpty(); }
42 const std::vector<std::unique_ptr<NamedPropertyDescriptor>>& GetInternalVector()
const;
43 std::vector<std::unique_ptr<NamedPropertyDescriptor>>& GetInternalVector();
44 void SerializeElementsTo(
const gd::String& elementName,
46 void UnserializeElementsFrom(
const gd::String& elementName,
49 void ForEachPropertyMatchingSearch(
53 for (
const auto &property : properties.GetInternalVector()) {
59 EventsFunctionsContainer::FunctionOwner GetOwner()
const {
return owner; }
70 std::size_t position);
77 std::vector<const PropertyFolderOrProperty *>
82 void AddMissingPropertiesInRootFolder();
96 EventsFunctionsContainer::FunctionOwner owner;
98 std::unique_ptr<gd::PropertyFolderOrProperty> rootFolder;
Used to describe a property shown in a property grid.
Definition: NamedPropertyDescriptor.h:21
const gd::String & GetName() const
Get the name of the property.
Definition: NamedPropertyDescriptor.h:47
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
std::vector< const PropertyFolderOrProperty * > GetAllPropertyFolderOrProperty() const
Definition: PropertiesContainer.cpp:112
void SerializeFoldersTo(SerializerElement &element) const
Serialize folder structure.
Definition: PropertiesContainer.cpp:154
gd::NamedPropertyDescriptor & InsertNewPropertyInFolder(const gd::String &name, gd::PropertyFolderOrProperty &propertyFolderOrProperty, std::size_t position)
Add a new empty property called name in the given folder at the specified position.
Definition: PropertiesContainer.cpp:101
void UnserializeFoldersFrom(gd::Project &project, const SerializerElement &element)
Unserialize folder structure.
Definition: PropertiesContainer.cpp:158
Class representing a folder structure in order to organize properties in folders (to be used with a P...
Definition: PropertyFolderOrProperty.h:30
A class template that store a list of elements that can be accessed by their names and serialized.
Definition: SerializableWithNameList.h:33
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
size_type FindCaseInsensitive(const String &search, size_type pos=0) const
Do a case-insensitive search.
Definition: String.cpp:663
Definition: CommonTools.h:24