#include <PRM_PresetInfo.h>
Definition at line 30 of file PRM_PresetInfo.h.
PRM_PresetInfo::PRM_PresetInfo |
( |
const char * |
subdir, |
|
|
const char * |
file |
|
) |
| |
Subdir is the name of the sub directory where the preset file can be found. Since presets can be also loaded from HDAs, subdir is synonymous with the operator table name (eg "Object"), except it can contain version which the constructor strips off (eg, "Object12.5.100", used for operator state parm dialogs. File is the preset file name, which is the same as the operator type it applies to (eg "myhda" or "ns::hda::1.0), the file name
will be groomed to ensure it is a valid file name (eg, "myhda" or
"ns-hda-1.0". By providing the unaltered optype name, it is possible to locate presets inside the HDA sections, which otherwise would be more difficult for namespaced optypes.
virtual PRM_PresetInfo::~PRM_PresetInfo |
( |
| ) |
|
|
virtual |
bool PRM_PresetInfo::deletePresetFromDir |
( |
const char * |
name, |
|
|
const char * |
dir = 0 |
|
) |
| |
int PRM_PresetInfo::getDefaultPreset |
( |
| ) |
|
int PRM_PresetInfo::getNumPresets |
( |
| ) |
|
const UT_String& PRM_PresetInfo::getPresetFile |
( |
| ) |
|
int PRM_PresetInfo::getPresetIndex |
( |
const char * |
presetname | ) |
|
const UT_String& PRM_PresetInfo::getPresetSection |
( |
| ) |
|
static bool PRM_PresetInfo::loadPresetContents |
( |
PRM_ParmList * |
parmlist, |
|
|
const char * |
token, |
|
|
UT_IStream & |
is |
|
) |
| |
|
static |
bool PRM_PresetInfo::loadPresetFile |
( |
PRM_ParmList * |
parmlist, |
|
|
const char * |
filename |
|
) |
| |
static void PRM_PresetInfo::makeValidPresetFileName |
( |
UT_String & |
filename | ) |
|
|
static |
bool PRM_PresetInfo::savePreset |
( |
PRM_ParmList * |
parmlist, |
|
|
std::ostream & |
os |
|
) |
| |
bool PRM_PresetInfo::savePresetFile |
( |
PRM_ParmList * |
parmlist, |
|
|
const char * |
filename |
|
) |
| |
bool PRM_PresetInfo::savePresetToDir |
( |
PRM_ParmList * |
parmlist, |
|
|
const char * |
name, |
|
|
const char * |
dir |
|
) |
| |
void PRM_PresetInfo::setIndexFile |
( |
const char * |
subdir | ) |
|
void PRM_PresetInfo::setNeedsRefresh |
( |
| ) |
|
The documentation for this class was generated from the following file: