3#include <Foundation/Containers/Map.h>
4#include <Foundation/Strings/String.h>
5#include <GuiFoundation/GuiFoundationDLL.h>
33 void AddValidValue(
plStringView sValue,
bool bSortValues =
false);
52 void ReadFromStorage();
Stores the valid values and names for 'dynamic' enums.
Definition DynamicStringEnum.h:14
static plDelegate< void(plStringView sEnumName, plDynamicStringEnum &e)> s_RequestUnknownCallback
Invoked by GetDynamicEnum() for enums that are unkonwn at that time.
Definition DynamicStringEnum.h:59
const plHybridArray< plString, 16 > & GetAllValidValues() const
Returns all enum values and current names.
Definition DynamicStringEnum.h:27
void SetStorageFile(plStringView sFile)
If set to non-empty, the user can easily edit this enum through a simple dialog and the values will b...
Definition DynamicStringEnum.h:47
plStringView GetStorageFile() const
The file where values will be stored.
Definition DynamicStringEnum.h:50
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
A generic delegate class which supports static functions and member functions.
Definition Delegate.h:76