LLPreviewGesture Class Reference

#include <llpreviewgesture.h>

Inheritance diagram for LLPreviewGesture:

Inheritance graph
[legend]
Collaboration diagram for LLPreviewGesture:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
virtual BOOL postBuild ()
virtual BOOL canClose ()
virtual void setMinimized (BOOL minimize)
virtual void onClose (bool app_quitting)
virtual void onUpdateSucceeded ()

Static Public Member Functions

static LLPreviewGesture * show (const std::string &title, const LLUUID &item_id, const LLUUID &object_id, BOOL take_focus=TRUE)

Protected Member Functions

 LLPreviewGesture ()
virtual ~LLPreviewGesture ()
void init (const LLUUID &item_id, const LLUUID &object_id)
void addModifiers ()
void addKeys ()
void addAnimations ()
void addSounds ()
void refresh ()
void initDefaultGesture ()
void loadAsset ()
void loadUIFromGesture (LLMultiGesture *gesture)
void saveIfNeeded ()
LLMultiGesture * createGesture ()
LLScrollListItem * addStep (const std::string &step_name)

Static Protected Member Functions

static void onLoadComplete (LLVFS *vfs, const LLUUID &asset_uuid, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status)
static void onSaveComplete (const LLUUID &asset_uuid, void *user_data, S32 status, LLExtStat ext_status)
static void handleSaveChangesDialog (S32 option, void *userdata)
static void updateLabel (LLScrollListItem *item)
static void onCommitSetDirty (LLUICtrl *ctrl, void *data)
static void onCommitLibrary (LLUICtrl *ctrl, void *data)
static void onCommitStep (LLUICtrl *ctrl, void *data)
static void onCommitAnimation (LLUICtrl *ctrl, void *data)
static void onCommitSound (LLUICtrl *ctrl, void *data)
static void onCommitChat (LLUICtrl *ctrl, void *data)
static void onCommitWait (LLUICtrl *ctrl, void *data)
static void onCommitWaitTime (LLUICtrl *ctrl, void *data)
static void onCommitAnimationTrigger (LLUICtrl *ctrl, void *data)
static void onKeystrokeCommit (LLLineEditor *caller, void *data)
static void onClickAdd (void *data)
static void onClickUp (void *data)
static void onClickDown (void *data)
static void onClickDelete (void *data)
static void onCommitActive (LLUICtrl *ctrl, void *data)
static void onClickSave (void *data)
static void onClickPreview (void *data)
static void onDonePreview (LLMultiGesture *gesture, void *data)

Protected Attributes

LLLineEditor * mTriggerEditor
LLTextBox * mReplaceText
LLLineEditor * mReplaceEditor
LLComboBox * mModifierCombo
LLComboBox * mKeyCombo
LLScrollListCtrl * mLibraryList
LLButton * mAddBtn
LLButton * mUpBtn
LLButton * mDownBtn
LLButton * mDeleteBtn
LLScrollListCtrl * mStepList
LLTextBox * mOptionsText
LLRadioGroup * mAnimationRadio
LLComboBox * mAnimationCombo
LLComboBox * mSoundCombo
LLLineEditor * mChatEditor
LLCheckBoxCtrl * mWaitAnimCheck
LLCheckBoxCtrl * mWaitTimeCheck
LLLineEditor * mWaitTimeEditor
LLCheckBoxCtrl * mActiveCheck
LLButton * mSaveBtn
LLButton * mPreviewBtn
LLMultiGesture * mPreviewGesture
BOOL mDirty

Detailed Description

Definition at line 48 of file llpreviewgesture.h.


Constructor & Destructor Documentation

LLPreviewGesture::LLPreviewGesture (  )  [protected]

Definition at line 351 of file llpreviewgesture.cpp.

Referenced by show().

LLPreviewGesture::~LLPreviewGesture (  )  [protected, virtual]

Definition at line 375 of file llpreviewgesture.cpp.

References LLScrollListCtrl::getAllData(), mStepList, and NULL.


Member Function Documentation

void LLPreviewGesture::addAnimations (  )  [protected]

Definition at line 582 of file llpreviewgesture.cpp.

References LLComboBox::add(), ADD_BOTTOM, LLAssetType::AT_ANIMATION, LLPanel::childGetText(), LLInventoryModel::collectDescendentsIf(), count, LLInventoryModel::EXCLUDE_TRASH, gAgent, LLAgent::getGroupID(), LLAgent::getID(), LLAgent::getInventoryRootID(), gInventory, gUserAnimStates, gUserAnimStatesCount, i, mAnimationCombo, LLAnimStateEntry::mID, LLPanel::mLabel, LLUUID::null, PERM_ITEM_UNRESTRICTED, LLComboBox::removeall(), and S32.

Referenced by postBuild(), and refresh().

void LLPreviewGesture::addKeys (  )  [protected]

Definition at line 568 of file llpreviewgesture.cpp.

References LLComboBox::add(), ADD_BOTTOM, KEY_F12, KEY_F2, mKeyCombo, NONE_LABEL, LLComboBox::setCurrentByIndex(), and LLKeyboard::stringFromKey().

Referenced by postBuild().

void LLPreviewGesture::addModifiers (  )  [protected]

Definition at line 558 of file llpreviewgesture.cpp.

References LLComboBox::add(), ADD_BOTTOM, CTRL_LABEL, mModifierCombo, NONE_LABEL, LLComboBox::setCurrentByIndex(), and SHIFT_LABEL.

Referenced by postBuild().

void LLPreviewGesture::addSounds (  )  [protected]

Definition at line 638 of file llpreviewgesture.cpp.

References LLComboBox::add(), ADD_BOTTOM, LLAssetType::AT_SOUND, LLPanel::childGetText(), LLInventoryModel::collectDescendentsIf(), count, LLInventoryModel::EXCLUDE_TRASH, gAgent, LLAgent::getGroupID(), LLAgent::getID(), LLAgent::getInventoryRootID(), gInventory, i, mSoundCombo, LLUUID::null, PERM_ITEM_UNRESTRICTED, LLComboBox::removeall(), and S32.

Referenced by postBuild(), and refresh().

LLScrollListItem * LLPreviewGesture::addStep ( const std::string &  step_name  )  [protected]

Definition at line 1613 of file llpreviewgesture.cpp.

References LLScrollListCtrl::addElement(), LLStringBase< char >::compareInsensitive(), LLScrollListCtrl::deselectAllItems(), LLGestureStep::getLabel(), llendl, llerrs, mLibraryList, mStepList, NULL, LLScrollListItem::setSelected(), LLScrollListItem::setUserdata(), and TRUE.

Referenced by handleDragAndDrop(), and initDefaultGesture().

BOOL LLPreviewGesture::canClose (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 278 of file llpreviewgesture.cpp.

References LLViewerWindow::alertXml(), FALSE, gViewerWindow, handleSaveChangesDialog(), mDirty, LLPreview::mForceClose, and TRUE.

LLMultiGesture * LLPreviewGesture::createGesture (  )  [protected]

Definition at line 1290 of file llpreviewgesture.cpp.

References CTRL_LABEL, LLScrollListCtrl::getAllData(), LLComboBox::getCurrentIndex(), LLComboBox::getSimple(), LLLineEditor::getText(), LLGestureStep::getType(), KEY_NONE, LLKeyboard::keyFromString(), MASK_CONTROL, MASK_NONE, MASK_SHIFT, LLMultiGesture::mKey, mKeyCombo, LLMultiGesture::mMask, mModifierCombo, mReplaceEditor, LLMultiGesture::mReplaceText, mStepList, LLMultiGesture::mSteps, LLMultiGesture::mTrigger, mTriggerEditor, SHIFT_LABEL, STEP_ANIMATION, STEP_CHAT, STEP_SOUND, and STEP_WAIT.

Referenced by saveIfNeeded().

BOOL LLPreviewGesture::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void *  cargo_data,
EAcceptance *  accept,
LLString &  tooltip_msg 
) [virtual]

Reimplemented from LLView.

Definition at line 203 of file llpreviewgesture.cpp.

References ACCEPT_NO, ACCEPT_YES_COPY_MULTI, addStep(), DAD_ANIMATION, DAD_SOUND, LLInventoryItem::getAssetUUID(), LLInventoryModel::getItem(), LLPermissions::getMaskBase(), LLInventoryObject::getName(), LLInventoryItem::getPermissions(), LLScrollListItem::getUserdata(), LLInventoryObject::getUUID(), gInventory, LLGestureStepAnimation::mAnimAssetID, LLGestureStepAnimation::mAnimName, mDirty, LLGestureStepSound::mSoundAssetID, LLGestureStepSound::mSoundName, NULL, PERM_ITEM_UNRESTRICTED, refresh(), TRUE, and updateLabel().

BOOL LLPreviewGesture::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLPanel.

Definition at line 187 of file llpreviewgesture.cpp.

References LLView::getEnabled(), LLView::getVisible(), LLPanel::handleKeyHere(), MASK_CONTROL, saveIfNeeded(), and TRUE.

void LLPreviewGesture::handleSaveChangesDialog ( S32  option,
void *  userdata 
) [static, protected]

Definition at line 325 of file llpreviewgesture.cpp.

References app_abort_quit(), FALSE, gGestureManager, onClickSave(), LLGestureManager::stopGesture(), and TRUE.

Referenced by canClose().

void LLPreviewGesture::init ( const LLUUID &  item_id,
const LLUUID &  object_id 
) [protected]

Definition at line 684 of file llpreviewgesture.cpp.

References LLPreview::setItemID(), and LLPreview::setObjectID().

void LLPreviewGesture::initDefaultGesture (  )  [protected]

Definition at line 848 of file llpreviewgesture.cpp.

References addStep(), ANIM_AGENT_HELLO, LLScrollListItem::getUserdata(), LLGestureStepAnimation::mAnimAssetID, LLGestureStepAnimation::mAnimName, LLGestureStepChat::mChatText, mDirty, LLGestureStepWait::mFlags, mStepList, LLScrollListCtrl::selectFirstItem(), TRUE, updateLabel(), and WAIT_FLAG_ALL_ANIM.

Referenced by loadAsset().

void LLPreviewGesture::loadAsset (  )  [protected, virtual]

Reimplemented from LLPreview.

Definition at line 875 of file llpreviewgesture.cpp.

References LLAssetType::AT_GESTURE, gAssetStorage, LLAssetStorage::getAssetData(), LLInventoryItem::getAssetUUID(), LLPreview::getItem(), initDefaultGesture(), LLUUID::isNull(), LLPreview::mAssetStatus, LLPreview::mItemUUID, onLoadComplete(), LLPreview::PREVIEW_ASSET_LOADING, refresh(), and TRUE.

void LLPreviewGesture::loadUIFromGesture ( LLMultiGesture *  gesture  )  [protected]

Definition at line 982 of file llpreviewgesture.cpp.

References LLScrollListCtrl::addElement(), count, CTRL_LABEL, i, KEY_NONE, MASK_CONTROL, MASK_NONE, MASK_SHIFT, LLMultiGesture::mKey, mKeyCombo, LLMultiGesture::mMask, mModifierCombo, mReplaceEditor, LLMultiGesture::mReplaceText, mStepList, LLMultiGesture::mSteps, LLMultiGesture::mTrigger, mTriggerEditor, NONE_LABEL, NULL, S32, LLComboBox::setCurrentByIndex(), LLComboBox::setSimple(), LLLineEditor::setText(), LLScrollListItem::setUserdata(), SHIFT_LABEL, STEP_ANIMATION, STEP_CHAT, STEP_SOUND, STEP_WAIT, and LLKeyboard::stringFromKey().

void LLPreviewGesture::onClickAdd ( void *  data  )  [static, protected]

Definition at line 1597 of file llpreviewgesture.cpp.

References LLScrollListItem::getColumn(), LLScrollListCell::getText(), and TRUE.

Referenced by postBuild().

void LLPreviewGesture::onClickDelete ( void *  data  )  [static, protected]

Definition at line 1686 of file llpreviewgesture.cpp.

References LLScrollListItem::getUserdata(), NULL, S32, and TRUE.

Referenced by postBuild().

void LLPreviewGesture::onClickDown ( void *  data  )  [static, protected]

Definition at line 1669 of file llpreviewgesture.cpp.

References count, S32, and TRUE.

Referenced by postBuild().

void LLPreviewGesture::onClickPreview ( void *  data  )  [static, protected]

Definition at line 1737 of file llpreviewgesture.cpp.

References gGestureManager, onDonePreview(), LLGestureManager::playGesture(), and LLGestureManager::stopGesture().

Referenced by postBuild().

void LLPreviewGesture::onClickSave ( void *  data  )  [static, protected]

Definition at line 1730 of file llpreviewgesture.cpp.

Referenced by handleSaveChangesDialog(), and postBuild().

void LLPreviewGesture::onClickUp ( void *  data  )  [static, protected]

Definition at line 1655 of file llpreviewgesture.cpp.

References S32, and TRUE.

Referenced by postBuild().

void LLPreviewGesture::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 296 of file llpreviewgesture.cpp.

References gGestureManager, mPreviewGesture, LLFloater::onClose(), and LLGestureManager::stopGesture().

void LLPreviewGesture::onCommitActive ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1706 of file llpreviewgesture.cpp.

References LLGestureManager::activateGesture(), LLGestureManager::deactivateGesture(), LLInventoryModel::getItem(), gGestureManager, gInventory, LLGestureManager::isGestureActive(), LLInventoryModel::notifyObservers(), and LLInventoryModel::updateItem().

Referenced by postBuild().

void LLPreviewGesture::onCommitAnimation ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1424 of file llpreviewgesture.cpp.

References LLGestureStep::getType(), LLScrollListItem::getUserdata(), STEP_ANIMATION, TRUE, and updateLabel().

Referenced by postBuild().

void LLPreviewGesture::onCommitAnimationTrigger ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1458 of file llpreviewgesture.cpp.

References ANIM_FLAG_STOP, LLGestureStep::getType(), LLScrollListItem::getUserdata(), STEP_ANIMATION, TRUE, and updateLabel().

Referenced by postBuild().

void LLPreviewGesture::onCommitChat ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1515 of file llpreviewgesture.cpp.

References LLGestureStep::getType(), LLScrollListItem::getUserdata(), LLGestureStepChat::mChatText, LLGestureStepChat::mFlags, STEP_CHAT, TRUE, and updateLabel().

Referenced by postBuild().

void LLPreviewGesture::onCommitLibrary ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1397 of file llpreviewgesture.cpp.

Referenced by postBuild().

void LLPreviewGesture::onCommitSetDirty ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1389 of file llpreviewgesture.cpp.

References TRUE.

Referenced by onKeystrokeCommit(), and postBuild().

void LLPreviewGesture::onCommitSound ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1489 of file llpreviewgesture.cpp.

References LLGestureStep::getType(), LLScrollListItem::getUserdata(), STEP_SOUND, TRUE, and updateLabel().

Referenced by postBuild().

void LLPreviewGesture::onCommitStep ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1411 of file llpreviewgesture.cpp.

Referenced by postBuild().

void LLPreviewGesture::onCommitWait ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1537 of file llpreviewgesture.cpp.

References f, LLGestureStep::getType(), LLScrollListItem::getUserdata(), LLGestureStepWait::mFlags, LLGestureStepWait::mWaitSeconds, STEP_WAIT, TRUE, updateLabel(), LLLocale::USER_LOCALE, WAIT_FLAG_ALL_ANIM, and WAIT_FLAG_TIME.

Referenced by onCommitWaitTime(), and postBuild().

void LLPreviewGesture::onCommitWaitTime ( LLUICtrl *  ctrl,
void *  data 
) [static, protected]

Definition at line 1573 of file llpreviewgesture.cpp.

References LLGestureStep::getType(), LLScrollListItem::getUserdata(), onCommitWait(), STEP_WAIT, and TRUE.

Referenced by postBuild().

void LLPreviewGesture::onDonePreview ( LLMultiGesture *  gesture,
void *  data 
) [static, protected]

Definition at line 1769 of file llpreviewgesture.cpp.

References NULL.

Referenced by onClickPreview().

void LLPreviewGesture::onKeystrokeCommit ( LLLineEditor *  caller,
void *  data 
) [static, protected]

Definition at line 1589 of file llpreviewgesture.cpp.

References onCommitSetDirty().

Referenced by postBuild().

void LLPreviewGesture::onLoadComplete ( LLVFS *  vfs,
const LLUUID &  asset_uuid,
LLAssetType::EType  type,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

Definition at line 908 of file llpreviewgesture.cpp.

References LLMultiGesture::deserialize(), FALSE, LLPreview::find(), LLVFile::getSize(), gViewerStats, LLViewerStats::incStat(), LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, LL_ERR_FILE_EMPTY, llendl, llwarns, NULL, LLPreview::PREVIEW_ASSET_ERROR, LLPreview::PREVIEW_ASSET_LOADED, LLVFile::read(), LLVFile::READ, S32, LLNotifyBox::showXml(), size, and LLViewerStats::ST_DOWNLOAD_FAILED.

Referenced by loadAsset().

void LLPreviewGesture::onSaveComplete ( const LLUUID &  asset_uuid,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

Definition at line 1222 of file llpreviewgesture.cpp.

References LLViewerWindow::alertXml(), LLFloater::close(), dialog_refresh_all(), FALSE, LLPreview::find(), LLViewerObjectList::findObject(), LLAssetStorage::getErrorString(), LLViewerObject::getInventoryObject(), LLInventoryModel::getItem(), gInventory, gObjectList, gViewerWindow, LLUUID::isNull(), llendl, llwarns, LLPreview::mCloseAfterSave, LLSaveInfo::mDesc, LLSaveInfo::mItemUUID, LLSaveInfo::mObjectUUID, LLSaveInfo::mTransactionID, LLInventoryModel::notifyObservers(), NULL, LLInventoryItem::setAssetUUID(), LLInventoryItem::setDescription(), LLViewerInventoryItem::setTransactionID(), TASK_INVENTORY_ITEM_KEY, LLViewerObject::updateInventory(), and LLInventoryModel::updateItem().

Referenced by saveIfNeeded().

void LLPreviewGesture::onUpdateSucceeded (  )  [virtual]

Definition at line 303 of file llpreviewgesture.cpp.

References refresh().

Referenced by LLUpdateAgentInventoryResponder::uploadComplete().

BOOL LLPreviewGesture::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 390 of file llpreviewgesture.cpp.

References addAnimations(), addKeys(), addModifiers(), addSounds(), LLPanel::childSetCommitCallback(), LLPanel::childSetPrevalidate(), LLPanel::childSetText(), FALSE, LLUICtrlFactory::getButtonByName(), LLUICtrlFactory::getCheckBoxByName(), LLUICtrlFactory::getComboBoxByName(), LLInventoryItem::getDescription(), LLPreview::getItem(), LLUICtrlFactory::getLineEditorByName(), LLUICtrlFactory::getRadioGroupByName(), LLUICtrlFactory::getScrollListByName(), LLUICtrlFactory::getTextBoxByName(), list, mActiveCheck, mAddBtn, mAnimationCombo, mAnimationRadio, mChatEditor, mDeleteBtn, mDownBtn, mKeyCombo, mLibraryList, mModifierCombo, mOptionsText, mPreviewBtn, mReplaceEditor, mReplaceText, mSaveBtn, mSoundCombo, mStepList, mTriggerEditor, mUpBtn, mWaitAnimCheck, mWaitTimeCheck, mWaitTimeEditor, onClickAdd(), onClickDelete(), onClickDown(), onClickPreview(), onClickSave(), onClickUp(), onCommitActive(), onCommitAnimation(), onCommitAnimationTrigger(), onCommitChat(), onCommitLibrary(), onCommitSetDirty(), onCommitSound(), onCommitStep(), onCommitWait(), onCommitWaitTime(), onKeystrokeCommit(), LLPreview::onText(), LLLineEditor::prevalidateFloat(), LLLineEditor::prevalidatePrintableNotPipe(), LLTextBox::setBorderVisible(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLUICtrl::setCommitCallback(), LLLineEditor::setCommitOnFocusLost(), LLLineEditor::setEnabled(), LLView::setEnabled(), LLLineEditor::setIgnoreTab(), LLLineEditor::setKeystrokeCallback(), LLLineEditor::setPrevalidate(), LLView::setVisible(), and TRUE.

void LLPreviewGesture::refresh (  )  [protected, virtual]

Reimplemented from LLPanel.

Definition at line 692 of file llpreviewgesture.cpp.

References addAnimations(), addSounds(), LLPermissions::allowModifyBy(), ANIM_FLAG_STOP, LLPanel::childGetText(), LLPanel::childSetEnabled(), FALSE, gAgent, LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getFirstSelectedIndex(), LLAgent::getID(), LLPreview::getItem(), LLScrollListCtrl::getItemCount(), LLInventoryItem::getPermissions(), LLLineEditor::getText(), LLGestureStep::getType(), LLScrollListItem::getUserdata(), gGestureManager, LLViewerInventoryItem::isComplete(), LLGestureManager::isGestureActive(), llformat(), mActiveCheck, mAddBtn, LLGestureStepAnimation::mAnimAssetID, mAnimationCombo, mAnimationRadio, mChatEditor, LLGestureStepChat::mChatText, mDeleteBtn, mDirty, mDownBtn, LLGestureStepWait::mFlags, LLGestureStepAnimation::mFlags, LLPreview::mItemUUID, mKeyCombo, mLibraryList, mModifierCombo, modifiable, mOptionsText, mPreviewBtn, mPreviewGesture, mReplaceEditor, mReplaceText, mSaveBtn, LLGestureStepSound::mSoundAssetID, mSoundCombo, mStepList, mTriggerEditor, mUpBtn, mWaitAnimCheck, LLGestureStepWait::mWaitSeconds, mWaitTimeCheck, mWaitTimeEditor, NULL, S32, LLCheckBoxCtrl::set(), LLComboBox::setCurrentByID(), LLCheckBoxCtrl::setEnabled(), LLRadioGroup::setEnabled(), LLScrollListCtrl::setEnabled(), LLComboBox::setEnabled(), LLView::setEnabled(), LLLineEditor::setEnabled(), LLRadioGroup::setSelectedIndex(), LLTextBox::setText(), LLLineEditor::setText(), LLView::setVisible(), STEP_ANIMATION, STEP_CHAT, STEP_SOUND, STEP_WAIT, TRUE, type, WAIT_FLAG_ALL_ANIM, and WAIT_FLAG_TIME.

Referenced by handleDragAndDrop(), loadAsset(), onUpdateSucceeded(), saveIfNeeded(), and setMinimized().

void LLPreviewGesture::saveIfNeeded (  )  [protected]

Definition at line 1095 of file llpreviewgesture.cpp.

References LLViewerWindow::alertXml(), LLVFile::APPEND, LLAssetType::AT_GESTURE, createGesture(), FALSE, gAgent, gAssetStorage, LLUUID::generate(), LLViewerRegion::getCapability(), LLDataPackerAsciiBuffer::getCurrentSize(), LLPreview::getItem(), LLUICtrlFactory::getLineEditorByName(), LLMultiGesture::getMaxSerialSize(), LLAgent::getRegion(), LLAgent::getSecureSessionID(), LLLineEditor::getText(), gGestureManager, gInventory, gVFS, gViewerWindow, LLGestureManager::isGestureActive(), LLUUID::isNull(), llendl, llwarns, LLTransactionID::makeAssetID(), mDirty, LLPreview::mItemUUID, LLPreview::mObjectUUID, LLInventoryModel::notifyObservers(), NULL, onSaveComplete(), LLHTTPClient::post(), refresh(), LLGestureManager::replaceGesture(), S32, LLMultiGesture::serialize(), LLViewerInventoryItem::setComplete(), LLVFile::setMaxSize(), size, LLAssetStorage::storeAssetData(), TRUE, and LLVFile::write().

Referenced by handleKeyHere().

void LLPreviewGesture::setMinimized ( BOOL  minimize  )  [virtual]

Reimplemented from LLFloater.

Definition at line 309 of file llpreviewgesture.cpp.

References LLFloater::isMinimized(), refresh(), and LLFloater::setMinimized().

LLPreviewGesture * LLPreviewGesture::show ( const std::string &  title,
const LLUUID &  item_id,
const LLUUID &  object_id,
BOOL  take_focus = TRUE 
) [static]

Definition at line 117 of file llpreviewgesture.cpp.

References LLMultiFloater::addFloater(), LLInventoryModel::addObserver(), LLAssetType::AT_ANIMATION, LLAssetType::AT_SOUND, LLUICtrlFactory::buildFloater(), LLViewerInventoryItem::fetchFromServer(), LLPreview::find(), LLInventoryModel::findCategoryUUIDForType(), LLRectBase< Type >::getHeight(), LLView::getRect(), gFloaterView, gInventory, gUICtrlFactory, LLViewerInventoryItem::isComplete(), LLPreviewGesture(), NULL, LLPreview::open(), r, LLFloater::setFocus(), LLInventoryModel::startBackgroundFetch(), and TRUE.

Referenced by GestureShowCallback::fire(), LLFloaterGesture::onClickEdit(), LLTaskGestureBridge::openItem(), and LLGestureBridge::openItem().

void LLPreviewGesture::updateLabel ( LLScrollListItem *  item  )  [static, protected]

Definition at line 1378 of file llpreviewgesture.cpp.

References LLScrollListItem::getColumn(), LLGestureStep::getLabel(), LLScrollListItem::getUserdata(), and LLScrollListText::setText().

Referenced by handleDragAndDrop(), initDefaultGesture(), onCommitAnimation(), onCommitAnimationTrigger(), onCommitChat(), onCommitSound(), and onCommitWait().


Member Data Documentation

LLCheckBoxCtrl* LLPreviewGesture::mActiveCheck [protected]

Definition at line 165 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLButton* LLPreviewGesture::mAddBtn [protected]

Definition at line 149 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLComboBox* LLPreviewGesture::mAnimationCombo [protected]

Definition at line 158 of file llpreviewgesture.h.

Referenced by addAnimations(), postBuild(), and refresh().

LLRadioGroup* LLPreviewGesture::mAnimationRadio [protected]

Definition at line 157 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLLineEditor* LLPreviewGesture::mChatEditor [protected]

Definition at line 160 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLButton* LLPreviewGesture::mDeleteBtn [protected]

Definition at line 152 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

BOOL LLPreviewGesture::mDirty [protected]

Definition at line 170 of file llpreviewgesture.h.

Referenced by canClose(), handleDragAndDrop(), initDefaultGesture(), refresh(), and saveIfNeeded().

LLButton* LLPreviewGesture::mDownBtn [protected]

Definition at line 151 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLComboBox* LLPreviewGesture::mKeyCombo [protected]

Definition at line 146 of file llpreviewgesture.h.

Referenced by addKeys(), createGesture(), loadUIFromGesture(), postBuild(), and refresh().

LLScrollListCtrl* LLPreviewGesture::mLibraryList [protected]

Definition at line 148 of file llpreviewgesture.h.

Referenced by addStep(), postBuild(), and refresh().

LLComboBox* LLPreviewGesture::mModifierCombo [protected]

Definition at line 145 of file llpreviewgesture.h.

Referenced by addModifiers(), createGesture(), loadUIFromGesture(), postBuild(), and refresh().

LLTextBox* LLPreviewGesture::mOptionsText [protected]

Definition at line 156 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLButton* LLPreviewGesture::mPreviewBtn [protected]

Definition at line 167 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLMultiGesture* LLPreviewGesture::mPreviewGesture [protected]

Definition at line 169 of file llpreviewgesture.h.

Referenced by onClose(), and refresh().

LLLineEditor* LLPreviewGesture::mReplaceEditor [protected]

Definition at line 144 of file llpreviewgesture.h.

Referenced by createGesture(), loadUIFromGesture(), postBuild(), and refresh().

LLTextBox* LLPreviewGesture::mReplaceText [protected]

Definition at line 143 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLButton* LLPreviewGesture::mSaveBtn [protected]

Definition at line 166 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLComboBox* LLPreviewGesture::mSoundCombo [protected]

Definition at line 159 of file llpreviewgesture.h.

Referenced by addSounds(), postBuild(), and refresh().

LLScrollListCtrl* LLPreviewGesture::mStepList [protected]

Definition at line 153 of file llpreviewgesture.h.

Referenced by addStep(), createGesture(), initDefaultGesture(), loadUIFromGesture(), postBuild(), refresh(), and ~LLPreviewGesture().

LLLineEditor* LLPreviewGesture::mTriggerEditor [protected]

Definition at line 142 of file llpreviewgesture.h.

Referenced by createGesture(), loadUIFromGesture(), postBuild(), and refresh().

LLButton* LLPreviewGesture::mUpBtn [protected]

Definition at line 150 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLCheckBoxCtrl* LLPreviewGesture::mWaitAnimCheck [protected]

Definition at line 161 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLCheckBoxCtrl* LLPreviewGesture::mWaitTimeCheck [protected]

Definition at line 162 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

LLLineEditor* LLPreviewGesture::mWaitTimeEditor [protected]

Definition at line 163 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().


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