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)
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 LLPreviewGestureshow (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 ()
LLMultiGesturecreateGesture ()
LLScrollListItemaddStep (const std::string &step_name)
virtual const char * getTitleName () const

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

LLLineEditormTriggerEditor
LLTextBoxmReplaceText
LLLineEditormReplaceEditor
LLComboBoxmModifierCombo
LLComboBoxmKeyCombo
LLScrollListCtrlmLibraryList
LLButtonmAddBtn
LLButtonmUpBtn
LLButtonmDownBtn
LLButtonmDeleteBtn
LLScrollListCtrlmStepList
LLTextBoxmOptionsText
LLRadioGroupmAnimationRadio
LLComboBoxmAnimationCombo
LLComboBoxmSoundCombo
LLLineEditormChatEditor
LLCheckBoxCtrlmWaitAnimCheck
LLCheckBoxCtrlmWaitTimeCheck
LLLineEditormWaitTimeEditor
LLCheckBoxCtrlmActiveCheck
LLButtonmSaveBtn
LLButtonmPreviewBtn
LLMultiGesturemPreviewGesture
BOOL mDirty


Detailed Description

Definition at line 48 of file llpreviewgesture.h.


Constructor & Destructor Documentation

LLPreviewGesture::LLPreviewGesture (  )  [protected]

Definition at line 350 of file llpreviewgesture.cpp.

Referenced by show().

Here is the caller graph for this function:

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

Definition at line 374 of file llpreviewgesture.cpp.

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

Here is the call graph for this function:


Member Function Documentation

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

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

Reimplemented from LLPanel.

Definition at line 189 of file llpreviewgesture.cpp.

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

Here is the call graph for this function:

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

BOOL LLPreviewGesture::postBuild ( void   )  [virtual]

BOOL LLPreviewGesture::canClose (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 277 of file llpreviewgesture.cpp.

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

Here is the call graph for this function:

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

Reimplemented from LLFloater.

Definition at line 308 of file llpreviewgesture.cpp.

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

Here is the call graph for this function:

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

Reimplemented from LLFloater.

Definition at line 295 of file llpreviewgesture.cpp.

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

Here is the call graph for this function:

void LLPreviewGesture::onUpdateSucceeded (  )  [virtual]

Definition at line 302 of file llpreviewgesture.cpp.

References refresh().

Referenced by LLUpdateAgentInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 683 of file llpreviewgesture.cpp.

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

Here is the call graph for this function:

void LLPreviewGesture::addModifiers (  )  [protected]

Definition at line 557 of file llpreviewgesture.cpp.

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

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewGesture::addKeys (  )  [protected]

Definition at line 567 of file llpreviewgesture.cpp.

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

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewGesture::addAnimations (  )  [protected]

void LLPreviewGesture::addSounds (  )  [protected]

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

Reimplemented from LLPanel.

Definition at line 691 of file llpreviewgesture.cpp.

References addAnimations(), addSounds(), LLPermissions::allowModifyBy(), ANIM_FLAG_STOP, LLPanel::childSetEnabled(), FALSE, gAgent, LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getFirstSelectedIndex(), LLAgent::getID(), LLPreview::getItem(), LLScrollListCtrl::getItemCount(), LLInventoryItem::getPermissions(), LLPanel::getString(), 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, WAIT_FLAG_ALL_ANIM, and WAIT_FLAG_TIME.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewGesture::initDefaultGesture (  )  [protected]

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

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

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

void LLPreviewGesture::saveIfNeeded (  )  [protected]

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

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

Definition at line 324 of file llpreviewgesture.cpp.

References LLAppViewer::abortQuit(), FALSE, gGestureManager, LLAppViewer::instance(), onClickSave(), LLGestureManager::stopGesture(), and TRUE.

Referenced by canClose().

Here is the call graph for this function:

Here is the caller graph for this function:

LLMultiGesture * LLPreviewGesture::createGesture (  )  [protected]

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

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

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

Definition at line 1385 of file llpreviewgesture.cpp.

References TRUE.

Referenced by onKeystrokeCommit(), and postBuild().

Here is the caller graph for this function:

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

Definition at line 1393 of file llpreviewgesture.cpp.

Referenced by postBuild().

Here is the caller graph for this function:

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

Definition at line 1407 of file llpreviewgesture.cpp.

Referenced by postBuild().

Here is the caller graph for this function:

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

Definition at line 1420 of file llpreviewgesture.cpp.

References LLGestureStep::getType(), LLScrollListItem::getUserdata(), LLGestureStepAnimation::mAnimAssetID, LLGestureStepAnimation::mAnimName, LLUUID::setNull(), STEP_ANIMATION, TRUE, and updateLabel().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1485 of file llpreviewgesture.cpp.

References LLGestureStep::getType(), LLScrollListItem::getUserdata(), LLGestureStepSound::mFlags, LLGestureStepSound::mSoundAssetID, LLGestureStepSound::mSoundName, STEP_SOUND, TRUE, and updateLabel().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1511 of file llpreviewgesture.cpp.

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

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1533 of file llpreviewgesture.cpp.

References 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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1569 of file llpreviewgesture.cpp.

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

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1454 of file llpreviewgesture.cpp.

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

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1585 of file llpreviewgesture.cpp.

References onCommitSetDirty().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1593 of file llpreviewgesture.cpp.

References LLSD::asString(), LLScrollListItem::getColumn(), LLScrollListCell::getValue(), and TRUE.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1651 of file llpreviewgesture.cpp.

References S32, and TRUE.

Referenced by postBuild().

Here is the caller graph for this function:

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

Definition at line 1665 of file llpreviewgesture.cpp.

References S32, and TRUE.

Referenced by postBuild().

Here is the caller graph for this function:

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

Definition at line 1682 of file llpreviewgesture.cpp.

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

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 1726 of file llpreviewgesture.cpp.

Referenced by handleSaveChangesDialog(), and postBuild().

Here is the caller graph for this function:

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

Definition at line 1733 of file llpreviewgesture.cpp.

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

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1765 of file llpreviewgesture.cpp.

References NULL.

Referenced by onClickPreview().

Here is the caller graph for this function:

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

Reimplemented from LLPreview.

Definition at line 140 of file llpreviewgesture.h.


Member Data Documentation

Definition at line 144 of file llpreviewgesture.h.

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

Definition at line 145 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 146 of file llpreviewgesture.h.

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

Definition at line 148 of file llpreviewgesture.h.

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

Definition at line 150 of file llpreviewgesture.h.

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

Definition at line 151 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 152 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 153 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 154 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 158 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 159 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 160 of file llpreviewgesture.h.

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

Definition at line 161 of file llpreviewgesture.h.

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

Definition at line 162 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 163 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 164 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 165 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 167 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 168 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 169 of file llpreviewgesture.h.

Referenced by postBuild(), and refresh().

Definition at line 171 of file llpreviewgesture.h.

Referenced by onClose(), and refresh().

Reimplemented from LLPreview.

Definition at line 172 of file llpreviewgesture.h.

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


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

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