LLFilePicker Class Reference

#include <llfilepicker.h>

Collaboration diagram for LLFilePicker:

Collaboration graph
[legend]
List of all members.

Public Types

 FFLOAD_ALL = 1
 FFLOAD_WAV = 2
 FFLOAD_IMAGE = 3
 FFLOAD_ANIM = 4
 FFLOAD_XML = 6
 FFLOAD_SLOBJECT = 7
 FFLOAD_RAW = 8
 FFSAVE_ALL = 1
 FFSAVE_WAV = 3
 FFSAVE_TGA = 4
 FFSAVE_BMP = 5
 FFSAVE_AVI = 6
 FFSAVE_ANIM = 7
 FFSAVE_XML = 9
 FFSAVE_COLLADA = 10
 FFSAVE_RAW = 11
 FFSAVE_J2C = 12
enum  ELoadFilter {
  FFLOAD_ALL = 1, FFLOAD_WAV = 2, FFLOAD_IMAGE = 3, FFLOAD_ANIM = 4,
  FFLOAD_XML = 6, FFLOAD_SLOBJECT = 7, FFLOAD_RAW = 8
}
enum  ESaveFilter {
  FFSAVE_ALL = 1, FFSAVE_WAV = 3, FFSAVE_TGA = 4, FFSAVE_BMP = 5,
  FFSAVE_AVI = 6, FFSAVE_ANIM = 7, FFSAVE_XML = 9, FFSAVE_COLLADA = 10,
  FFSAVE_RAW = 11, FFSAVE_J2C = 12
}

Public Member Functions

BOOL getSaveFile (ESaveFilter filter=FFSAVE_ALL, const char *filename=NULL)
BOOL getOpenFile (ELoadFilter filter=FFLOAD_ALL)
BOOL getMultipleOpenFiles (ELoadFilter filter=FFLOAD_ALL)
const char * getFirstFile ()
const char * getNextFile ()
const char * getDirname ()
void reset ()
 LLFilePicker ()
 ~LLFilePicker ()

Static Public Member Functions

static LLFilePickerinstance (void)

Private Types

 SINGLE_FILENAME_BUFFER_SIZE = 1024
 FILENAME_BUFFER_SIZE = 65000
enum  { SINGLE_FILENAME_BUFFER_SIZE = 1024, FILENAME_BUFFER_SIZE = 65000 }

Private Member Functions

void buildFilename (void)

Private Attributes

char mFiles [FILENAME_BUFFER_SIZE]
char mFilename [LL_MAX_PATH]
char * mCurrentFile
BOOL mLocked
BOOL mMultiFile

Static Private Attributes

static LLFilePicker sInstance

Detailed Description

Definition at line 80 of file llfilepicker.h.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
SINGLE_FILENAME_BUFFER_SIZE 
FILENAME_BUFFER_SIZE 

Definition at line 146 of file llfilepicker.h.

enum LLFilePicker::ELoadFilter

Enumerator:
FFLOAD_ALL 
FFLOAD_WAV 
FFLOAD_IMAGE 
FFLOAD_ANIM 
FFLOAD_XML 
FFLOAD_SLOBJECT 
FFLOAD_RAW 

Definition at line 90 of file llfilepicker.h.

enum LLFilePicker::ESaveFilter

Enumerator:
FFSAVE_ALL 
FFSAVE_WAV 
FFSAVE_TGA 
FFSAVE_BMP 
FFSAVE_AVI 
FFSAVE_ANIM 
FFSAVE_XML 
FFSAVE_COLLADA 
FFSAVE_RAW 
FFSAVE_J2C 

Definition at line 104 of file llfilepicker.h.


Constructor & Destructor Documentation

LLFilePicker::LLFilePicker (  ) 

Definition at line 1437 of file llfilepicker.cpp.

References reset().

LLFilePicker::~LLFilePicker (  ) 

Definition at line 1442 of file llfilepicker.cpp.


Member Function Documentation

void LLFilePicker::buildFilename ( void   )  [private]

const char * LLFilePicker::getDirname (  ) 

Definition at line 1471 of file llfilepicker.cpp.

References NULL.

Referenced by LLFileUploadBulk::handleEvent(), upload_done_callback(), and LLNewAgentInventoryResponder::uploadComplete().

const char * LLFilePicker::getFirstFile (  ) 

Definition at line 1461 of file llfilepicker.cpp.

References NULL.

Referenced by handle_compress_image(), handle_export_menus_to_xml(), handle_load_from_xml(), handle_save_to_xml(), LLFileUploadBulk::handleEvent(), LLPanelRegionTerrainInfo::onClickDownloadRaw(), LLPanelRegionTerrainInfo::onClickUploadRaw(), LLPreviewTexture::saveAs(), LLViewerWindow::saveImageNumbered(), LLViewerWindow::saveMovieNumbered(), and upload_pick().

BOOL LLFilePicker::getMultipleOpenFiles ( ELoadFilter  filter = FFLOAD_ALL  ) 

Definition at line 1456 of file llfilepicker.cpp.

References FALSE.

Referenced by LLFileUploadBulk::handleEvent().

const char * LLFilePicker::getNextFile (  ) 

Definition at line 1466 of file llfilepicker.cpp.

References NULL.

Referenced by upload_done_callback(), and LLNewAgentInventoryResponder::uploadComplete().

BOOL LLFilePicker::getOpenFile ( ELoadFilter  filter = FFLOAD_ALL  ) 

Definition at line 1451 of file llfilepicker.cpp.

References FALSE.

Referenced by handle_compress_image(), handle_load_from_xml(), LLPanelRegionTerrainInfo::onClickUploadRaw(), and upload_pick().

BOOL LLFilePicker::getSaveFile ( ESaveFilter  filter = FFSAVE_ALL,
const char *  filename = NULL 
)

Definition at line 1446 of file llfilepicker.cpp.

References FALSE.

Referenced by handle_export_menus_to_xml(), handle_save_to_xml(), LLPanelRegionTerrainInfo::onClickDownloadRaw(), LLPreviewTexture::saveAs(), LLViewerWindow::saveImageNumbered(), and LLViewerWindow::saveMovieNumbered().

static LLFilePicker& LLFilePicker::instance ( void   )  [inline, static]

Definition at line 88 of file llfilepicker.h.

References sInstance.

Referenced by handle_compress_image(), handle_export_menus_to_xml(), handle_load_from_xml(), handle_save_to_xml(), LLFileUploadBulk::handleEvent(), LLPanelRegionTerrainInfo::onClickDownloadRaw(), LLPanelRegionTerrainInfo::onClickUploadRaw(), LLPreviewAnim::saveAnim(), LLPreviewTexture::saveAs(), LLViewerWindow::saveImageNumbered(), LLViewerWindow::saveMovieNumbered(), upload_done_callback(), upload_error(), upload_new_resource(), upload_pick(), and LLNewAgentInventoryResponder::uploadComplete().

void LLFilePicker::reset (  ) 

Definition at line 1476 of file llfilepicker.cpp.

Referenced by LLFilePicker(), upload_error(), and upload_new_resource().


Member Data Documentation

char* LLFilePicker::mCurrentFile [private]

Definition at line 184 of file llfilepicker.h.

char LLFilePicker::mFilename[LL_MAX_PATH] [private]

Definition at line 183 of file llfilepicker.h.

char LLFilePicker::mFiles[FILENAME_BUFFER_SIZE] [private]

Definition at line 182 of file llfilepicker.h.

BOOL LLFilePicker::mLocked [private]

Definition at line 185 of file llfilepicker.h.

BOOL LLFilePicker::mMultiFile [private]

Definition at line 186 of file llfilepicker.h.

LLFilePicker LLFilePicker::sInstance [static, private]

Definition at line 188 of file llfilepicker.h.

Referenced by instance().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:16 2010 for Second Life Viewer by  doxygen 1.4.7