3#include <Foundation/Communication/Event.h>
4#include <Foundation/Containers/IdTable.h>
5#include <Foundation/Containers/Map.h>
6#include <Foundation/Containers/Set.h>
7#include <Foundation/Strings/HashedString.h>
8#include <Foundation/Types/Enum.h>
9#include <Foundation/Types/Variant.h>
10#include <GuiFoundation/GuiFoundationDLL.h>
11#include <QKeySequence>
12#include <ToolsFoundation/Document/DocumentManager.h>
21using DeleteActionFunc = void (*)(
plAction*);
29 using StorageType = plUInt32;
48 using StorageType = plUInt8;
62 using StorageType = plUInt8;
73 QWidget* m_pWindow =
nullptr;
82 plActionDescriptor(plActionType::Enum type, plActionScope::Enum scope,
const char* szName,
const char* szCategoryPath,
const char* szShortcut,
83 CreateActionFunc createAction, DeleteActionFunc deleteAction =
nullptr);
96 void DeleteAction(
plAction* pAction)
const;
98 void UpdateExistingActions();
101 CreateActionFunc m_CreateAction;
102 DeleteActionFunc m_DeleteAction;
113 PL_DISALLOW_COPY_AND_ASSIGN(
plAction);
117 virtual void Execute(
const plVariant& value) = 0;
119 void TriggerUpdate();
Handle for a plAction.
Definition Action.h:27
plEvent< plAction * > m_StatusUpdateEvent
Fire when the state of the action changes (enabled, value etc...)
Definition Action.h:124
Stores 'actions' (things that can be triggered from UI).
Definition ActionManager.h:60
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
All classes that should be dynamically reflectable, need to be derived from this base class.
Definition DynamicRTTI.h:86
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44
plString m_sActionName
Unique within category path, shown in key configuration dialog.
Definition Action.h:89
plString m_sCategoryPath
Category in key configuration dialog, e.g. "Tree View" or "File".
Definition Action.h:90
A custom enum implementation that allows to define the underlying storage type to control its memory ...
Definition Enum.h:37