-
Notifications
You must be signed in to change notification settings - Fork 927
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable the variable editor button for object parameters (#7202)
- Loading branch information
Showing
29 changed files
with
237 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* Copyright 2008-2016 Florian Rival ([email protected]). All rights | ||
* reserved. This project is released under the MIT License. | ||
*/ | ||
#ifndef GDCORE_OBJECTSCONTAINER_H | ||
#define GDCORE_OBJECTSCONTAINER_H | ||
#pragma once | ||
|
||
#include <memory> | ||
#include <vector> | ||
#include <set> | ||
|
@@ -36,15 +36,25 @@ namespace gd { | |
*/ | ||
class GD_CORE_API ObjectsContainer { | ||
public: | ||
enum SourceType { | ||
Unknown, | ||
Global, | ||
Scene, | ||
Object, | ||
Function, | ||
}; | ||
|
||
/** | ||
* \brief Default constructor creating a container without any objects. | ||
* \brief Constructor creating a container without any objects. | ||
*/ | ||
ObjectsContainer(); | ||
ObjectsContainer(const SourceType sourceType); | ||
virtual ~ObjectsContainer(); | ||
|
||
ObjectsContainer(const ObjectsContainer&); | ||
ObjectsContainer& operator=(const ObjectsContainer& rhs); | ||
|
||
SourceType GetSourceType() const { return sourceType; } | ||
|
||
/** \name Objects management | ||
* Members functions related to objects management. | ||
*/ | ||
|
@@ -58,7 +68,7 @@ class GD_CORE_API ObjectsContainer { | |
/** | ||
* \brief Return a reference to the object called \a name. | ||
*/ | ||
Object& GetObject(const gd::String& name); | ||
gd::Object& GetObject(const gd::String& name); | ||
|
||
/** | ||
* \brief Return a reference to the object called \a name. | ||
|
@@ -69,7 +79,7 @@ class GD_CORE_API ObjectsContainer { | |
* \brief Return a reference to the object at position \a index in the objects | ||
* list | ||
*/ | ||
Object& GetObject(std::size_t index); | ||
gd::Object& GetObject(std::size_t index); | ||
|
||
/** | ||
* \brief Return a reference to the object at position \a index in the objects | ||
|
@@ -235,6 +245,7 @@ class GD_CORE_API ObjectsContainer { | |
gd::ObjectGroupsContainer objectGroups; | ||
|
||
private: | ||
SourceType sourceType = Unknown; | ||
std::unique_ptr<gd::ObjectFolderOrObject> rootFolder; | ||
|
||
/** | ||
|
@@ -245,5 +256,3 @@ class GD_CORE_API ObjectsContainer { | |
}; | ||
|
||
} // namespace gd | ||
|
||
#endif // GDCORE_OBJECTSCONTAINER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.