LLFloaterImport Class Reference

#include <llfloaterimport.h>

Inheritance diagram for LLFloaterImport:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterImport:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFloaterImport (const std::string filename)
virtual ~LLFloaterImport ()
virtual BOOL postBuild ()
void recalcCost ()

Static Public Member Functions

static void setOKText (const char *text)

Static Public Attributes

static LLUUID sImportRequestID

Protected Types

typedef std::map< LLUUID,
LLPointer< LLImageRaw > > 
image_map_t

Protected Member Functions

void draw ()
void LoadPreviewImage (LLString image_path, LLUUID image_uuid)
BOOL handleMouseDown (S32 x, S32 y, MASK mask)

Static Protected Member Functions

static void onBtnOK (void *)
static void onBtnCancel (void *)
static void asset_uploaded_callback (const LLUUID &uuid, void *user_data, S32 result, LLExtStat ext_status)
static void finishImport (ImportAssetInfo *fp)

Protected Attributes

LLXMLNodePtr mObjectFile
LLScrollListCtrlmImportList
LLLineEditormNameEditor
LLLineEditormDescEditor
LLButtonmOKBtn
LLButtonmCancelBtn
LLTextBoxmImageLabel
LLString mFilenameAndPath
LLString mFilename
LLString mFilePath
LLString mInventoryPath
image_map_t mPreviewImages
LLPointer< LLImageRawmCurrentPreviewImage
GLuint mGLName
LLUploadDialogmImportDialog

Static Protected Attributes

static LLString sOKText = LLString()

Detailed Description

Definition at line 64 of file llfloaterimport.h.


Member Typedef Documentation

typedef std::map<LLUUID, LLPointer<LLImageRaw> > LLFloaterImport::image_map_t [protected]

Definition at line 93 of file llfloaterimport.h.


Constructor & Destructor Documentation

LLFloaterImport::LLFloaterImport ( const std::string  filename  ) 

Definition at line 80 of file llfloaterimport.cpp.

References gDirUtilp, LLDir::getDirDelimiter(), mFilename, mFilenameAndPath, mFilePath, mObjectFile, NULL, and LLXMLNode::parseFile().

LLFloaterImport::~LLFloaterImport (  )  [virtual]

Definition at line 351 of file llfloaterimport.cpp.

References mGLName.


Member Function Documentation

void LLFloaterImport::asset_uploaded_callback ( const LLUUID uuid,
void user_data,
S32  result,
LLExtStat  ext_status 
) [static, protected]

Definition at line 516 of file llfloaterimport.cpp.

References LLUUID::asString(), LLAssetType::AT_NONE, ImportAssetInfo::Desc, finishImport(), ImportAssetInfo::ImageFileQueue, LLInventoryType::IT_NONE, llendl, llinfos, LLResourceData::mAssetInfo, LLUploadDialog::modalUploadFinished(), LLResourceData::mUserData, LLAssetInfo::mUuid, ImportAssetInfo::Name, ImportAssetInfo::NewImageIDList, LLStringBase< char >::null, PERM_NONE, and upload_new_resource().

Referenced by onBtnOK().

void LLFloaterImport::draw (  )  [protected, virtual]

Reimplemented from LLFloater.

Definition at line 394 of file llfloaterimport.cpp.

References LLImageGL::bindExternalTexture(), LLPanel::childGetRect(), LLFloater::draw(), f, format, gl_rect_2d_checkerboard(), glBegin, glEnd, LLRectBase< Type >::mBottom, mCurrentPreviewImage, mGLName, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLPointer< Type >::notNull(), stop_glerror, and LLImageGL::unbindTexture().

void LLFloaterImport::finishImport ( ImportAssetInfo fp  )  [static, protected]

Definition at line 457 of file llfloaterimport.cpp.

Referenced by asset_uploaded_callback(), and onBtnOK().

BOOL LLFloaterImport::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [protected, virtual]

Reimplemented from LLFloater.

Definition at line 611 of file llfloaterimport.cpp.

References LLScrollListCtrl::getAllSelected(), LLScrollListItem::getColumn(), LLScrollListCtrl::getLastSelectedItem(), LLScrollListCell::getText(), LLScrollListItem::getUUID(), LLFloater::handleMouseDown(), LLUUID::isNull(), mCurrentPreviewImage, mGLName, mImageLabel, mImportList, mPreviewImages, LLUUID::notNull(), NULL, recalcCost(), LLUUID::setNull(), and LLTextBox::setText().

void LLFloaterImport::LoadPreviewImage ( LLString  image_path,
LLUUID  image_uuid 
) [protected]

Definition at line 321 of file llfloaterimport.cpp.

References mPreviewImages.

Referenced by postBuild().

void LLFloaterImport::onBtnCancel ( void  )  [static, protected]

Definition at line 601 of file llfloaterimport.cpp.

References LLFloater::close().

Referenced by postBuild().

void LLFloaterImport::onBtnOK ( void  )  [static, protected]

Definition at line 544 of file llfloaterimport.cpp.

References asset_uploaded_callback(), LLAssetType::AT_NONE, LLFloater::close(), ImportAssetInfo::Desc, ImportAssetInfo::FilenameAndPath, finishImport(), gDirUtilp, LLScrollListCtrl::getAllSelected(), LLDir::getDirDelimiter(), LLLineEditor::getText(), ImportAssetInfo::ImageFileQueue, LLInventoryType::IT_NONE, llendl, llinfos, mDescEditor, mFilenameAndPath, mImportList, mInventoryPath, mNameEditor, ImportAssetInfo::Name, LLStringBase< char >::null, ImportAssetInfo::OldImageIDList, PERM_NONE, ImportAssetInfo::SourcePath, and upload_new_resource().

Referenced by postBuild().

BOOL LLFloaterImport::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 102 of file llfloaterimport.cpp.

References ADD_BOTTOM, LLScrollListCtrl::addElement(), LLScrollListCtrl::addSimpleItem(), DB_INV_ITEM_DESC_STR_LEN, DB_INV_ITEM_NAME_STR_LEN, FALSE, LLFile::fopen(), gDirUtilp, LLUICtrlFactory::getButtonByName(), LLDir::getDirDelimiter(), LLRectBase< Type >::getHeight(), LLUICtrlFactory::getLineEditorByName(), LLView::getRect(), LLViewerWindow::getRootView(), LLUICtrlFactory::getScrollListByName(), LLUICtrlFactory::getTextBoxByName(), LLRectBase< Type >::getWidth(), gViewerWindow, LLMD5::hex_digest(), llendl, llinfos, llmin(), LoadPreviewImage(), LLRectBase< Type >::mBottom, mCancelBtn, mDescEditor, mFilename, mFilenameAndPath, mImageLabel, mImportList, mInventoryPath, LLRectBase< Type >::mLeft, mNameEditor, mObjectFile, mOKBtn, LLView::mRect, onBtnCancel(), onBtnOK(), LLLineEditor::prevalidatePrintableNotPipe(), recalcCost(), LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), S32, LLScrollListCtrl::setAllowMultipleSelection(), LLUICtrl::setCallbackUserData(), LLScrollListCtrl::setCanSelect(), LLButton::setClickedCallback(), LLPanel::setDefaultBtn(), LLView::setEnabled(), LLLineEditor::setMaxTextLength(), LLLineEditor::setPrevalidate(), LLLineEditor::setText(), LLFloater::setTitle(), LLStringBase< char >::stripNonprintable(), LLView::translate(), LLStringBase< char >::trim(), and TRUE.

void LLFloaterImport::recalcCost (  ) 

Definition at line 362 of file llfloaterimport.cpp.

Referenced by handleMouseDown(), and postBuild().

static void LLFloaterImport::setOKText ( const char *  text  )  [inline, static]

Definition at line 72 of file llfloaterimport.h.

References sOKText.


Member Data Documentation

LLButton* LLFloaterImport::mCancelBtn [protected]

Definition at line 85 of file llfloaterimport.h.

Referenced by postBuild().

LLPointer<LLImageRaw> LLFloaterImport::mCurrentPreviewImage [protected]

Definition at line 95 of file llfloaterimport.h.

Referenced by draw(), and handleMouseDown().

LLLineEditor* LLFloaterImport::mDescEditor [protected]

Definition at line 83 of file llfloaterimport.h.

Referenced by onBtnOK(), and postBuild().

LLString LLFloaterImport::mFilename [protected]

Definition at line 89 of file llfloaterimport.h.

Referenced by LLFloaterImport(), and postBuild().

LLString LLFloaterImport::mFilenameAndPath [protected]

Definition at line 88 of file llfloaterimport.h.

Referenced by LLFloaterImport(), onBtnOK(), and postBuild().

LLString LLFloaterImport::mFilePath [protected]

Definition at line 90 of file llfloaterimport.h.

Referenced by LLFloaterImport().

GLuint LLFloaterImport::mGLName [protected]

Definition at line 96 of file llfloaterimport.h.

Referenced by draw(), handleMouseDown(), and ~LLFloaterImport().

LLTextBox* LLFloaterImport::mImageLabel [protected]

Definition at line 86 of file llfloaterimport.h.

Referenced by handleMouseDown(), and postBuild().

LLUploadDialog* LLFloaterImport::mImportDialog [protected]

Definition at line 98 of file llfloaterimport.h.

LLScrollListCtrl* LLFloaterImport::mImportList [protected]

Definition at line 81 of file llfloaterimport.h.

Referenced by handleMouseDown(), onBtnOK(), and postBuild().

LLString LLFloaterImport::mInventoryPath [protected]

Definition at line 91 of file llfloaterimport.h.

Referenced by onBtnOK(), and postBuild().

LLLineEditor* LLFloaterImport::mNameEditor [protected]

Definition at line 82 of file llfloaterimport.h.

Referenced by onBtnOK(), and postBuild().

LLXMLNodePtr LLFloaterImport::mObjectFile [protected]

Definition at line 79 of file llfloaterimport.h.

Referenced by LLFloaterImport(), and postBuild().

LLButton* LLFloaterImport::mOKBtn [protected]

Definition at line 84 of file llfloaterimport.h.

Referenced by postBuild().

image_map_t LLFloaterImport::mPreviewImages [protected]

Definition at line 94 of file llfloaterimport.h.

Referenced by handleMouseDown(), and LoadPreviewImage().

LLUUID LLFloaterImport::sImportRequestID [static]

Definition at line 76 of file llfloaterimport.h.

LLString LLFloaterImport::sOKText = LLString() [static, protected]

Definition at line 101 of file llfloaterimport.h.

Referenced by setOKText().


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