#include <llpreviewanim.h>
Inheritance diagram for LLPreviewAnim:
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 |
LLButton * | mPlayBtn |
LLButton * | mAuditionBtn |
Definition at line 38 of file llpreviewanim.h.
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().
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().
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().
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().
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().
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] |
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.