#include <llpreviewtexture.h>
Inheritance diagram for LLPreviewTexture:


| 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 () | 
| 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 () | 
| void | updateAspectRatio () | 
| Protected Attributes | |
| LLUUID | mImageID | 
| LLPointer< LLViewerImage > | mImage | 
| BOOL | mLoadingFullImage | 
| LLString | mSaveFileName | 
| LLFrameTimer | mSavedFileTimer | 
| BOOL | mShowKeepDiscard | 
| BOOL | mCopyToInv | 
| BOOL | mIsCopyable | 
| S32 | mLastHeight | 
| S32 | mLastWidth | 
Definition at line 42 of file llpreviewtexture.h.
| 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 | |||
| ) | 
Definition at line 59 of file llpreviewtexture.cpp.
References gAgent, LLInventoryItem::getAssetUUID(), LLPermissions::getGroup(), LLFloater::getHost(), LLAgent::getID(), LLPreview::getItem(), LLPermissions::getMaskBase(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskGroup(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLView::getRect(), init(), LLAgent::isInGroup(), mask, mImageID, mIsCopyable, LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, PERM_ITEM_UNRESTRICTED, PERM_NONE, LLFloater::setTitle(), LLView::translate(), and TRUE.
| 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().
| LLPreviewTexture::~LLPreviewTexture | ( | ) | 
Definition at line 145 of file llpreviewtexture.cpp.
References LLWindow::decBusyCount(), LLView::getWindow(), mImage, mLoadingFullImage, and NULL.
| BOOL LLPreviewTexture::canSaveAs | ( | ) |  [virtual] | 
Reimplemented from LLFloater.
Definition at line 295 of file llpreviewtexture.cpp.
References mImage, mIsCopyable, mLoadingFullImage, and LLPointer< Type >::notNull().
| void LLPreviewTexture::draw | ( | ) |  [virtual] | 
Reimplemented from LLFloater.
Definition at line 194 of file llpreviewtexture.cpp.
References border, bottom, LLFontGL::BOTTOM, LLFloater::draw(), LLFontGL::DROP_SHADOW, f, LLRectBase< Type >::getHeight(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gl_draw_scaled_image(), gl_rect_2d(), gl_rect_2d_checkerboard(), LLFrameTimer::hasExpired(), left, LLFontGL::LEFT, llfloor(), MAX_IMAGE_AREA, LLRectBase< Type >::mBottom, LLPreview::mClientRect, mImage, LLRectBase< Type >::mLeft, mLoadingFullImage, LLFloater::mMinimized, LLView::mRect, mSavedFileTimer, LLPointer< Type >::notNull(), PREVIEW_BORDER_WIDTH, LLFontGL::renderUTF8(), RESIZE_HANDLE_WIDTH, right, S32, LLFontGL::sSansSerif, LLRectBase< Type >::stretch(), top, updateAspectRatio(), and LLColor4::white.
| LLPreview::EAssetStatus LLPreviewTexture::getAssetStatus | ( | ) |  [virtual] | 
Reimplemented from LLPreview.
Definition at line 497 of file llpreviewtexture.cpp.
References LLPreview::mAssetStatus, mImage, LLPointer< Type >::notNull(), and LLPreview::PREVIEW_ASSET_LOADED.
| void LLPreviewTexture::init | ( | ) |  [protected] | 
Reimplemented from LLPanel.
Definition at line 156 of file llpreviewtexture.cpp.
References LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetPrevalidate(), LLPanel::childSetText(), LLInventoryItem::getDescription(), LLPreview::getItem(), gUICtrlFactory, mCopyToInv, mShowKeepDiscard, LLPreview::onBtnCopyToInv(), LLPreview::onDiscardBtn(), LLPreview::onKeepBtn(), LLPreview::onText(), and LLLineEditor::prevalidatePrintableNotPipe().
Referenced by LLPreviewTexture().
| void LLPreviewTexture::loadAsset | ( | ) |  [virtual] | 
Reimplemented from LLPreview.
Definition at line 490 of file llpreviewtexture.cpp.
References LLViewerImage::BOOST_PREVIEW, FALSE, LLViewerImageList::getImage(), gImageList, LLPreview::mAssetStatus, mImage, mImageID, MIPMAP_TRUE, and LLPreview::PREVIEW_ASSET_LOADING.
| void LLPreviewTexture::onFileLoadedForSave | ( | BOOL | success, | |
| LLViewerImage * | src_vi, | |||
| LLImageRaw * | src, | |||
| LLImageRaw * | aux_src, | |||
| S32 | discard_level, | |||
| BOOL | final, | |||
| void * | userdata | |||
| ) |  [static] | 
Definition at line 324 of file llpreviewtexture.cpp.
References LLViewerWindow::alertXml(), LLUICtrl::clear(), end, FALSE, gViewerWindow, NULL, SECONDS_TO_SHOW_FILE_SAVED_MSG, and LLPreview::sInstances.
Referenced by saveAs().
| void LLPreviewTexture::saveAs | ( | ) |  [virtual] | 
Reimplemented from LLFloater.
Definition at line 302 of file llpreviewtexture.cpp.
References LLFilePicker::FFSAVE_TGA, LLFilePicker::getFirstFile(), LLFilePicker::getSaveFile(), LLView::getWindow(), LLWindow::incBusyCount(), LLFilePicker::instance(), mImage, LLPreview::mItemUUID, mLoadingFullImage, mSaveFileName, onFileLoadedForSave(), and TRUE.
| void LLPreviewTexture::updateAspectRatio | ( | ) |  [protected] | 
Definition at line 384 of file llpreviewtexture.cpp.
References LLFloaterView::adjustToFitScreen(), BTN_HEIGHT, LLPanel::childGetRect(), LLPanel::childSetTextArg(), CLIENT_RECT_VPAD, FALSE, LLRectBase< Type >::getHeight(), LLFloater::getHost(), LLRectBase< Type >::getWidth(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gFloaterView, LLMultiFloater::growToFit(), gViewerWindow, llformat(), llmax(), llmin(), LLPANEL_BORDER_WIDTH, llround(), LLPreview::mClientRect, mCopyToInv, mImage, mLastHeight, mLastWidth, LLRectBase< Type >::mLeft, LLView::mRect, mShowKeepDiscard, LLRectBase< Type >::mTop, LLPreview::mUserResized, PREVIEW_BORDER, PREVIEW_HEADER_SIZE, PREVIEW_PAD, PREVIEW_RESIZE_HANDLE_SIZE, LLView::reshape(), S32, LLRectBase< Type >::setLeftTopAndSize(), and LLView::setOrigin().
Referenced by draw().
| BOOL LLPreviewTexture::mCopyToInv  [protected] | 
| LLPointer<LLViewerImage> LLPreviewTexture::mImage  [protected] | 
Definition at line 85 of file llpreviewtexture.h.
Referenced by canSaveAs(), draw(), getAssetStatus(), loadAsset(), saveAs(), updateAspectRatio(), and ~LLPreviewTexture().
| LLUUID LLPreviewTexture::mImageID  [protected] | 
Definition at line 84 of file llpreviewtexture.h.
Referenced by LLPreviewTexture(), and loadAsset().
| BOOL LLPreviewTexture::mIsCopyable  [protected] | 
Definition at line 94 of file llpreviewtexture.h.
Referenced by canSaveAs(), and LLPreviewTexture().
| S32 LLPreviewTexture::mLastHeight  [protected] | 
| S32 LLPreviewTexture::mLastWidth  [protected] | 
| BOOL LLPreviewTexture::mLoadingFullImage  [protected] | 
Definition at line 86 of file llpreviewtexture.h.
Referenced by canSaveAs(), draw(), saveAs(), and ~LLPreviewTexture().
| LLFrameTimer LLPreviewTexture::mSavedFileTimer  [protected] | 
| LLString LLPreviewTexture::mSaveFileName  [protected] | 
| BOOL LLPreviewTexture::mShowKeepDiscard  [protected] | 
 1.4.7
 1.4.7