LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::SimplePreset Class Reference

#include <presets.h>

+ Inheritance diagram for lwpp::SimplePreset:
+ Collaboration diagram for lwpp::SimplePreset:

List of all members.

Public Member Functions

 SimplePreset (const char *type, const char *name)
const char * GetSelectedName ()
virtual void popCommand (int cid, int cmd)
void SetHandler (PresetHandler *inst)
LWError Setup (XPanel &panel, int control)

Static Public Member Functions

static void PopCommand (LWXPanelID pan, int cid, int cmd)
static int PopCount (void *inst)
 PopCount callback for LightWave.
static const char * PopName (void *inst, int n)
 PopUpName name callback for LightWave.

Protected Member Functions

void doDeletePreset ()
void doLoadFromPreset ()
void doLoadPreset (const char *filename, bool quiet=false)
void doSaveAsPreset ()
void doSavePreset ()
std::string grabPresetName (std::string filename, std::string name)
LWError LoadPreset (lwpp::LoadState &ss, std::string &name)
std::string makeFileName (std::string name, int type)
std::string makeFilePath (std::string name)
virtual size_t popCount (void)
 Actual worker function to be supplied by the deriving class.
virtual const char * popName (int n)
 Actual worker function to be supplied by the deriving class.
LWError SavePreset (lwpp::SaveState &ls, std::string name)
void ScanPresets (std::string path)

Protected Attributes

int index

Constructor & Destructor Documentation

lwpp::SimplePreset::SimplePreset ( const char *  type,
const char *  name 
)

Member Function Documentation

void lwpp::SimplePreset::doDeletePreset ( void  )
protected
void lwpp::SimplePreset::doLoadFromPreset ( )
protected
void lwpp::SimplePreset::doLoadPreset ( const char *  filename,
bool  quiet = false 
)
protected
void lwpp::SimplePreset::doSaveAsPreset ( )
protected
void lwpp::SimplePreset::doSavePreset ( )
protected
const char* lwpp::PopUpCallback::GetSelectedName ( )
inlineinherited
std::string lwpp::SimplePreset::grabPresetName ( std::string  filename,
std::string  name 
)
protected
LWError lwpp::SimplePreset::LoadPreset ( lwpp::LoadState ss,
std::string &  name 
)
protected
std::string lwpp::SimplePreset::makeFileName ( std::string  name,
int  type 
)
protected
std::string lwpp::SimplePreset::makeFilePath ( std::string  name)
protected
void lwpp::SimplePreset::popCommand ( int  cid,
int  cmd 
)
virtual
static void lwpp::PopCmdCallback< SimplePreset >::PopCommand ( LWXPanelID  pan,
int  cid,
int  cmd 
)
inlinestaticinherited
static int lwpp::PopUpCallback::PopCount ( void *  inst)
inlinestaticinherited

PopCount callback for LightWave.

size_t lwpp::SimplePreset::popCount ( void  )
protectedvirtual

Actual worker function to be supplied by the deriving class.

Returns:
The number of items

Implements lwpp::PopUpCallback.

static const char* lwpp::PopUpCallback::PopName ( void *  inst,
int  n 
)
inlinestaticinherited

PopUpName name callback for LightWave.

const char * lwpp::SimplePreset::popName ( int  n)
protectedvirtual

Actual worker function to be supplied by the deriving class.

Parameters:
nA item index
Returns:
The name of the item

Implements lwpp::PopUpCallback.

LWError lwpp::SimplePreset::SavePreset ( lwpp::SaveState ls,
std::string  name 
)
protected
void lwpp::SimplePreset::ScanPresets ( std::string  path)
protected
void lwpp::SimplePreset::SetHandler ( PresetHandler inst)
LWError lwpp::SimplePreset::Setup ( XPanel panel,
int  control 
)

Member Data Documentation

int lwpp::PopUpCallback::index
protectedinherited

The documentation for this class was generated from the following files: