3#include <GuiFoundation/Action/Action.h>
4#include <GuiFoundation/GuiFoundationDLL.h>
16 , m_sIconPath(szIconPath)
20 const char* GetName()
const {
return m_sName; }
22 plStringView GetAdditionalDisplayString() {
return m_sAdditionalDisplayString; }
23 void SetAdditionalDisplayString(
plStringView sString,
bool bTriggerUpdate =
true)
25 m_sAdditionalDisplayString = sString;
30 const char* GetIconPath()
const {
return m_sIconPath; }
31 void SetIconPath(
const char* szIconPath) { m_sIconPath = szIconPath; }
50 virtual void Execute(
const plVariant& value)
override{};
64 virtual void Execute(
const plVariant& value)
override{};
84 using StorageType = plUInt8;
89 Separator = PL_BIT(0),
93 StorageType Separator : 1;
97 Item() { m_CheckState = CheckMark::NotCheckable; }
101 CheckMark m_CheckState;
121 bool IsEnabled()
const {
return m_bEnabled; }
122 void SetEnabled(
bool bEnable,
bool bTriggerUpdate =
true)
124 m_bEnabled = bEnable;
129 bool IsVisible()
const {
return m_bVisible; }
130 void SetVisible(
bool bVisible,
bool bTriggerUpdate =
true)
132 m_bVisible = bVisible;
149 void InitEnumerationType(
const plRTTI* pEnumerationType);
151 virtual plInt64 GetValue()
const = 0;
154 const plRTTI* m_pEnumerationType;
165 bool IsEnabled()
const {
return m_bEnabled; }
166 void SetEnabled(
bool bEnable,
bool bTriggerUpdate =
true)
168 m_bEnabled = bEnable;
173 bool IsCheckable()
const {
return m_bCheckable; }
174 void SetCheckable(
bool bCheckable,
bool bTriggerUpdate =
true)
176 m_bCheckable = bCheckable;
181 bool IsChecked()
const {
return m_bChecked; }
182 void SetChecked(
bool bChecked,
bool bTriggerUpdate =
true)
184 m_bChecked = bChecked;
189 bool IsVisible()
const {
return m_bVisible; }
190 void SetVisible(
bool bVisible,
bool bTriggerUpdate =
true)
192 m_bVisible = bVisible;
212 bool IsEnabled()
const {
return m_bEnabled; }
213 void SetEnabled(
bool bEnable,
bool bTriggerUpdate =
true)
215 m_bEnabled = bEnable;
220 bool IsVisible()
const {
return m_bVisible; }
221 void SetVisible(
bool bVisible,
bool bTriggerUpdate =
true)
223 m_bVisible = bVisible;
228 void GetRange(plInt32& out_iMin, plInt32& out_iMax)
const
230 out_iMin = m_iMinValue;
231 out_iMax = m_iMaxValue;
234 void SetRange(plInt32 iMin, plInt32 iMax,
bool bTriggerUpdate =
true);
236 plInt32 GetValue()
const {
return m_iCurValue; }
237 void SetValue(plInt32 iVal,
bool bTriggerUpdate =
true);
Definition BaseActions.h:41
Definition BaseActions.h:115
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
Definition BaseActions.h:9
This class holds information about reflected types. Each instance represents one type that is known t...
Definition RTTI.h:30
Definition BaseActions.h:206
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82