|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <file_request.h>
Inheritance diagram for lwpp::FileRequest2:
Collaboration diagram for lwpp::FileRequest2:Public Member Functions | |
| FileRequest2 (const int reqType=FREQ_LOAD, const char *title="", const char *fileType="", const char *baseName="", const char *path="", const char *_baseDirType=0, int(*pickName)(void)=0, int bufLen=1024) | |
| ~FileRequest2 (void) | |
| LWFileReqLocal * | getFileReqLocal () |
| const char * | getFullName () |
| Return the file name of the file selected in the requester. | |
| const char * | getFullPath () const |
| const char * | getPath () const |
| bool | Post (void) |
| Post file request and return the result. | |
| void | setBaseName (const std::string name) |
Protected Member Functions | |
| bool | _acquireGlobal () |
| bool | _acquireGlobal () |
| virtual bool | available () const |
| Check if the global is available. | |
| virtual bool | available () const |
| Check if the global is available. | |
| const char * | GetDirectory (const char *locType=0) |
| Return the path to the define type of directory. | |
| const std::string | GetDirectoryStr (const char *locType=0) |
| virtual LWFileActivateFunc * | getGlobal () |
| Get the pointer to the global. | |
| virtual LWDirInfoFunc * | getGlobal () |
| Get the pointer to the global. | |
| LWDirInfoFunc * | operator-> () |
| Get the pointer to the global. | |
| LWFileActivateFunc * | operator-> () |
| Get the pointer to the global. | |
| const char * | stripPath (const char *fileName) |
| Remove a DirInfo directory from a full filename/path if possible. | |
Static Protected Attributes | |
| static LWFileActivateFunc * | globPtr |
| Pointer to the global functions. | |
| static LWDirInfoFunc * | globPtr |
| Pointer to the global functions. | |
A general file requester
The file path return is content directory aware and will (optionally) return a relative path. @note FREQ_MULTILOAD is not tested and probably needs a slightly different concept.
|
inline |
| reqType | Type of file requester, FREQ_LOAD, FREQ_SAVE, FREQ_DIRECTORY or FREQ_MULTILOAD |
| <em>title | Title for the file requester |
| *fileType | A Filter string |
| *baseName | The initial file name |
| *path | The initial path for the file requester |
| *_baseDirType | Base directory as defined as LWFTYPE_ in lwhost.h or 0 |
| *pickName | PickName callback for a FREQ_MULTILOAD style requester |
| bufLen | Length for the string buffers |
|
inline |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlinevirtualinherited |
Check if the global is available.
|
inlinevirtualinherited |
Check if the global is available.
|
inherited |
Return the path to the define type of directory.
| *locType | Directory type string or 0 for the default type |
|
inlineinherited |
|
inline |
|
inlinevirtual |
Return the file name of the file selected in the requester.
Implements lwpp::BaseFileRequest.
|
inline |
|
inlinevirtualinherited |
Get the pointer to the global.
|
inlinevirtualinherited |
Get the pointer to the global.
|
inline |
|
inlineinherited |
Get the pointer to the global.
|
inlineinherited |
Get the pointer to the global.
|
inlinevirtual |
Post file request and return the result.
Implements lwpp::BaseFileRequest.
|
inline |
|
inherited |
|
staticprotectedinherited |
Pointer to the global functions.
|
staticprotectedinherited |
Pointer to the global functions.