LLPreviewTexture Class Reference

#include <llpreviewtexture.h>

Inheritance diagram for LLPreviewTexture:

Inheritance graph
[legend]
Collaboration diagram for LLPreviewTexture:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLPreviewTexture (const std::string &name, const LLRect &rect, const std::string &title, const LLUUID &item_uuid, const LLUUID &object_id, BOOL show_keep_discard=FALSE)
 LLPreviewTexture (const std::string &name, const LLRect &rect, const std::string &title, const LLUUID &asset_id, BOOL copy_to_inv=FALSE)
 ~LLPreviewTexture ()
virtual void draw ()
virtual BOOL canSaveAs () const
virtual void saveAs ()
virtual void loadAsset ()
virtual EAssetStatus getAssetStatus ()

Static Public Member Functions

static void saveToFile (void *userdata)
static void onFileLoadedForSave (BOOL success, LLViewerImage *src_vi, LLImageRaw *src, LLImageRaw *aux_src, S32 discard_level, BOOL final, void *userdata)

Protected Member Functions

void init ()
virtual const char * getTitleName () const

Private Member Functions

void updateDimensions ()

Private Attributes

LLUUID mImageID
LLPointer< LLViewerImagemImage
BOOL mLoadingFullImage
LLString mSaveFileName
LLFrameTimer mSavedFileTimer
BOOL mShowKeepDiscard
BOOL mCopyToInv
BOOL mIsCopyable
S32 mLastHeight
S32 mLastWidth


Detailed Description

Definition at line 42 of file llpreviewtexture.h.


Constructor & Destructor Documentation

LLPreviewTexture::LLPreviewTexture ( const std::string &  name,
const LLRect rect,
const std::string &  title,
const LLUUID item_uuid,
const LLUUID object_id,
BOOL  show_keep_discard = FALSE 
)

LLPreviewTexture::LLPreviewTexture ( const std::string &  name,
const LLRect rect,
const std::string &  title,
const LLUUID asset_id,
BOOL  copy_to_inv = FALSE 
)

Definition at line 110 of file llpreviewtexture.cpp.

References LLView::getRect(), init(), LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, LLFloater::setTitle(), and LLView::translate().

Here is the call graph for this function:

LLPreviewTexture::~LLPreviewTexture (  ) 

Definition at line 145 of file llpreviewtexture.cpp.

References LLWindow::decBusyCount(), LLView::getWindow(), mImage, mLoadingFullImage, and NULL.

Here is the call graph for this function:


Member Function Documentation

void LLPreviewTexture::draw ( void   )  [virtual]

BOOL LLPreviewTexture::canSaveAs (  )  const [virtual]

Reimplemented from LLFloater.

Definition at line 291 of file llpreviewtexture.cpp.

References mImage, mIsCopyable, mLoadingFullImage, and LLPointer< Type >::notNull().

Here is the call graph for this function:

void LLPreviewTexture::saveAs (  )  [virtual]

void LLPreviewTexture::loadAsset (  )  [virtual]

Reimplemented from LLPreview.

Definition at line 480 of file llpreviewtexture.cpp.

References LLViewerImage::BOOST_PREVIEW, FALSE, LLViewerImageList::getImage(), gImageList, LLPreview::mAssetStatus, mImage, mImageID, MIPMAP_TRUE, and LLPreview::PREVIEW_ASSET_LOADING.

Here is the call graph for this function:

LLPreview::EAssetStatus LLPreviewTexture::getAssetStatus (  )  [virtual]

Reimplemented from LLPreview.

Definition at line 487 of file llpreviewtexture.cpp.

References LLPreview::mAssetStatus, mImage, LLPointer< Type >::notNull(), and LLPreview::PREVIEW_ASSET_LOADED.

Here is the call graph for this function:

static void LLPreviewTexture::saveToFile ( void *  userdata  )  [static]

void LLPreviewTexture::onFileLoadedForSave ( BOOL  success,
LLViewerImage src_vi,
LLImageRaw src,
LLImageRaw aux_src,
S32  discard_level,
BOOL  final,
void *  userdata 
) [static]

Definition at line 320 of file llpreviewtexture.cpp.

References LLViewerWindow::alertXml(), LLUICtrl::clear(), FALSE, gViewerWindow, NULL, SECONDS_TO_SHOW_FILE_SAVED_MSG, and LLPreview::sInstances.

Referenced by saveAs().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewTexture::init ( void   )  [protected]

virtual const char* LLPreviewTexture::getTitleName (  )  const [inline, protected, virtual]

Reimplemented from LLPreview.

Definition at line 82 of file llpreviewtexture.h.

void LLPreviewTexture::updateDimensions (  )  [private]


Member Data Documentation

Definition at line 86 of file llpreviewtexture.h.

Referenced by LLPreviewTexture(), and loadAsset().

Definition at line 88 of file llpreviewtexture.h.

Referenced by canSaveAs(), draw(), saveAs(), and ~LLPreviewTexture().

Definition at line 89 of file llpreviewtexture.h.

Referenced by saveAs().

Definition at line 90 of file llpreviewtexture.h.

Referenced by draw().

Definition at line 91 of file llpreviewtexture.h.

Referenced by init(), and updateDimensions().

Definition at line 92 of file llpreviewtexture.h.

Referenced by init(), and updateDimensions().

Definition at line 96 of file llpreviewtexture.h.

Referenced by canSaveAs(), and LLPreviewTexture().

Definition at line 98 of file llpreviewtexture.h.

Referenced by updateDimensions().

Definition at line 99 of file llpreviewtexture.h.

Referenced by updateDimensions().


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

Generated on Fri May 16 09:00:35 2008 for SecondLife by  doxygen 1.5.5