LLPreviewAnim Class Reference

#include <llpreviewanim.h>

Inheritance diagram for LLPreviewAnim:

Inheritance graph
[legend]
Collaboration diagram for LLPreviewAnim:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPreviewAnim (const std::string &name, const LLRect &rect, const std::string &title, const LLUUID &item_uuid, const S32 &activate, const LLUUID &object_uuid=LLUUID::null)

Static Public Member Functions

static void playAnim (void *userdata)
static void auditionAnim (void *userdata)
static void saveAnim (void *userdata)
static void endAnimCallback (void *userdata)

Protected Member Functions

virtual void onClose (bool app_quitting)

Protected Attributes

LLAnimPauseRequest mPauseRequest
LLUUID mItemID
LLString mTitle
LLUUID mObjectID
LLButtonmPlayBtn
LLButtonmAuditionBtn

Detailed Description

Definition at line 38 of file llpreviewanim.h.


Constructor & Destructor Documentation

LLPreviewAnim::LLPreviewAnim ( const std::string &  name,
const LLRect rect,
const std::string &  title,
const LLUUID item_uuid,
const S32 activate,
const LLUUID object_uuid = LLUUID::null 
)

Definition at line 49 of file llpreviewanim.cpp.

References auditionAnim(), LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetPrevalidate(), LLPanel::childSetText(), LLCharacter::createMotion(), gAgent, LLInventoryItem::getAssetUUID(), LLAgent::getAvatarObject(), LLInventoryItem::getDescription(), LLFloater::getHost(), LLPreview::getItem(), LLView::getRect(), gUICtrlFactory, LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, LLPreview::onText(), playAnim(), LLLineEditor::prevalidatePrintableNotPipe(), LLFloater::setTitle(), and LLView::translate().


Member Function Documentation

void LLPreviewAnim::auditionAnim ( void userdata  )  [static]

Definition at line 147 of file llpreviewanim.cpp.

References ANIM_REQUEST_STOP, endAnimCallback(), LLVOAvatar::findMotion(), gAgent, LLInventoryItem::getAssetUUID(), LLAgent::getAvatarObject(), LLUICtrlFactory::getButtonByName(), NULL, LLAgent::sendAnimationRequest(), LLMotion::setDeactivateCallback(), LLVOAvatar::startMotion(), LLVOAvatar::stopMotion(), and LLButton::toggleState().

Referenced by LLPreviewAnim().

void LLPreviewAnim::endAnimCallback ( void userdata  )  [static]

Definition at line 97 of file llpreviewanim.cpp.

References FALSE, and LLFloater::getFloaterByHandle().

Referenced by auditionAnim(), and playAnim().

void LLPreviewAnim::onClose ( bool  app_quitting  )  [protected, virtual]

Reimplemented from LLFloater.

Definition at line 210 of file llpreviewanim.cpp.

References ANIM_REQUEST_STOP, LLFloater::destroy(), LLVOAvatar::findMotion(), gAgent, LLInventoryItem::getAssetUUID(), LLAgent::getAvatarObject(), LLPreview::getItem(), NULL, LLAgent::sendAnimationRequest(), LLMotion::setDeactivateCallback(), and LLVOAvatar::stopMotion().

void LLPreviewAnim::playAnim ( void userdata  )  [static]

Definition at line 110 of file llpreviewanim.cpp.

References ANIM_REQUEST_START, ANIM_REQUEST_STOP, endAnimCallback(), LLVOAvatar::findMotion(), gAgent, LLInventoryItem::getAssetUUID(), LLAgent::getAvatarObject(), LLUICtrlFactory::getButtonByName(), NULL, LLAgent::sendAnimationRequest(), LLMotion::setDeactivateCallback(), LLVOAvatar::stopMotion(), and LLButton::toggleState().

Referenced by LLPreviewAnim().

void LLPreviewAnim::saveAnim ( void userdata  )  [static]

Definition at line 183 of file llpreviewanim.cpp.

References LLCharacter::createMotion(), LLFilePicker::FFSAVE_ANIM, gAgent, LLInventoryItem::getAssetUUID(), LLAgent::getAvatarObject(), LLInventoryObject::getName(), LLFilePicker::instance(), LLKeyframeMotion::isLoaded(), ll_apr_file_open(), LL_APR_W, llendl, llwarns, and LLKeyframeMotion::writeCAL3D().


Member Data Documentation

LLButton* LLPreviewAnim::mAuditionBtn [protected]

Definition at line 59 of file llpreviewanim.h.

LLUUID LLPreviewAnim::mItemID [protected]

Definition at line 55 of file llpreviewanim.h.

LLUUID LLPreviewAnim::mObjectID [protected]

Reimplemented from LLPreview.

Definition at line 57 of file llpreviewanim.h.

LLAnimPauseRequest LLPreviewAnim::mPauseRequest [protected]

Definition at line 54 of file llpreviewanim.h.

LLButton* LLPreviewAnim::mPlayBtn [protected]

Definition at line 58 of file llpreviewanim.h.

LLString LLPreviewAnim::mTitle [protected]

Definition at line 56 of file llpreviewanim.h.


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