3#include <GuiFoundation/Action/Action.h>
4#include <GuiFoundation/GuiFoundationDLL.h>
5#include <ToolsFoundation/Object/DocumentObjectManager.h>
38 const plUuid& GetGuid()
const {
return m_Guid; }
49 pNode->m_pParent =
this;
53 bool RemoveChild(plUInt32 uiIndex)
60 PL_DEFAULT_DELETE(pChild);
64 plUInt32 GetParentIndex()
const
66 PL_ASSERT_DEV(m_pParent !=
nullptr,
"Can't compute parent index if no parent is present!");
67 for (plUInt32 i = 0; i < m_pParent->GetChildren().GetCount(); i++)
69 if (m_pParent->GetChildren()[i] ==
this)
72 PL_REPORT_FAILURE(
"Couldn't find oneself in own parent!");
144 const TreeNode* GetRootObject()
const {
return &m_Root; }
Handle for a plAction.
Definition Action.h:27
Defines the structure of how actions are organized in a particular context.
Definition ActionMap.h:102
void RemoveAtAndCopy(plUInt32 uiIndex, plUInt32 uiNumElements=1)
Removes the element at index and fills the gap by shifting all following elements.
Definition ArrayBase_inl.h:253
void InsertAt(plUInt32 uiIndex, const T &value)
Inserts value at index by shifting all following elements.
Definition ArrayBase_inl.h:197
bool IsEmpty() const
Returns true, if the array does not contain any elements.
Definition ArrayBase_inl.h:178
plUInt32 GetCount() const
Returns the number of active elements in the array.
Definition ArrayBase_inl.h:172
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
plStringBuilder is a class that is meant for creating and modifying strings.
Definition StringBuilder.h:35
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
Definition ActionMap.h:19
This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.
Definition Uuid.h:11
static plUuid MakeUuid()
Returns a new Uuid.
Definition UuidGenerator_Posix.h:30
Definition ActionMap.h:10
plActionDescriptorHandle m_hAction
Action to be mapped.
Definition ActionMap.h:11
plString m_sPath
Path where the action should be mapped excluding the action's name, e.g. "File/New" for a menu item "...
Definition ActionMap.h:12
float m_fOrder
Ordering key to sort actions in the mapping path.
Definition ActionMap.h:13
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54