#include <llfloatergesture.h>
Public Member Functions | |
LLFloaterGesture () | |
virtual | ~LLFloaterGesture () |
virtual BOOL | postBuild () |
Static Public Member Functions | |
static void | show () |
static void | toggleVisibility () |
static void | refreshAll () |
Protected Member Functions | |
void | buildGestureList () |
Static Protected Member Functions | |
static void | onClickInventory (void *data) |
static void | onClickEdit (void *data) |
static void | onClickPlay (void *data) |
static void | onClickNew (void *data) |
static void | onCommitList (LLUICtrl *ctrl, void *data) |
Protected Attributes | |
LLUUID | mSelectedID |
Static Protected Attributes | |
static LLFloaterGesture * | sInstance = NULL |
static LLFloaterGestureObserver * | sObserver = NULL |
static LLFloaterGestureInventoryObserver * | sInventoryObserver |
Definition at line 54 of file llfloatergesture.h.
LLFloaterGesture::LLFloaterGesture | ( | ) |
Definition at line 82 of file llfloatergesture.cpp.
References LLGestureManager::addObserver(), gGestureManager, sInstance, and sObserver.
Referenced by show().
LLFloaterGesture::~LLFloaterGesture | ( | ) | [virtual] |
Definition at line 92 of file llfloatergesture.cpp.
References LLView::getRect(), gGestureManager, gSavedSettings, NULL, LLGestureManager::removeObserver(), LLControlGroup::setRect(), sInstance, and sObserver.
BOOL LLFloaterGesture::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 106 of file llfloatergesture.cpp.
References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), LLPanel::childSetVisible(), LLFloater::getTitle(), onClickEdit(), onClickInventory(), onClickNew(), onClickPlay(), onCommitList(), LLPanel::setDefaultBtn(), LLFloater::setTitle(), and TRUE.
void LLFloaterGesture::show | ( | ) | [static] |
Definition at line 136 of file llfloatergesture.cpp.
References LLUICtrlFactory::buildFloater(), LLRectBase< Type >::getHeight(), LLSingleton< LLUICtrlFactory >::getInstance(), LLControlGroup::getRect(), LLRectBase< Type >::getWidth(), gSavedSettings, LLFloaterGesture(), NULL, LLUUID::null, onCommitList(), LLFloater::open(), LLCtrlSelectionInterface::selectFirstItem(), sInstance, LLCtrlListInterface::sortByColumn(), and TRUE.
Referenced by toggleVisibility().
void LLFloaterGesture::toggleVisibility | ( | ) | [static] |
Definition at line 174 of file llfloatergesture.cpp.
References LLFloater::close(), LLView::getVisible(), show(), and sInstance.
Referenced by LLShowFloater::handleEvent().
void LLFloaterGesture::refreshAll | ( | ) | [static] |
Definition at line 187 of file llfloatergesture.cpp.
References buildGestureList(), LLPanel::childGetListInterface(), LLPanel::childGetScrollInterface(), LLUUID::isNull(), mSelectedID, NULL, onCommitList(), LLCtrlScrollInterface::scrollToShowSelected(), LLCtrlSelectionInterface::selectFirstItem(), LLCtrlSelectionInterface::setCurrentByID(), and sInstance.
Referenced by LLFloaterGestureObserver::changed(), and LLGestureInventoryFetchObserver::done().
void LLFloaterGesture::buildGestureList | ( | ) | [protected] |
Definition at line 218 of file llfloatergesture.cpp.
References ADD_BOTTOM, LLCtrlListInterface::addElement(), LLPanel::childGetListInterface(), LLInventoryModel::getItem(), LLInventoryObject::getName(), gGestureManager, gInventory, KEY_NONE, LLGestureManager::mActive, MASK_ALT, MASK_CONTROL, MASK_SHIFT, LLMultiGesture::mKey, LLMultiGesture::mMask, LLMultiGesture::mPlaying, LLMultiGesture::mTrigger, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::operateOnAll(), and LLKeyboard::stringFromKey().
Referenced by refreshAll().
void LLFloaterGesture::onClickInventory | ( | void * | data | ) | [static, protected] |
Definition at line 324 of file llfloatergesture.cpp.
References LLCtrlSelectionInterface::getCurrentID(), LLInventoryView::getPanel(), tut::inv(), LLInventoryPanel::setSelection(), LLInventoryView::showAgentInventory(), and TRUE.
Referenced by postBuild().
void LLFloaterGesture::onClickEdit | ( | void * | data | ) | [static, protected] |
Reimplemented from LLFloater.
Definition at line 384 of file llfloatergesture.cpp.
References LLFloaterView::findNeighboringPosition(), LLCtrlSelectionInterface::getCurrentID(), LLFloater::getHost(), LLInventoryModel::getItem(), LLInventoryObject::getName(), gFloaterView, gInventory, LLUUID::null, LLView::setRect(), and LLPreviewGesture::show().
Referenced by postBuild().
void LLFloaterGesture::onClickPlay | ( | void * | data | ) | [static, protected] |
Definition at line 338 of file llfloatergesture.cpp.
References LLCtrlSelectionInterface::getCurrentID(), gGestureManager, LLGestureManager::isGesturePlaying(), LLGestureManager::playGesture(), and LLGestureManager::stopGesture().
Referenced by postBuild().
void LLFloaterGesture::onClickNew | ( | void * | data | ) | [static, protected] |
Definition at line 372 of file llfloatergesture.cpp.
References LLAssetType::AT_GESTURE, create_inventory_item(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), LLInventoryType::IT_GESTURE, NOT_WEARABLE, LLUUID::null, PERM_MOVE, PERM_TRANSFER, and LLTransactionID::tnull.
Referenced by postBuild().
void LLFloaterGesture::onCommitList | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 406 of file llfloatergesture.cpp.
References gGestureManager, and LLGestureManager::isGesturePlaying().
Referenced by postBuild(), refreshAll(), and show().
LLUUID LLFloaterGesture::mSelectedID [protected] |
LLFloaterGesture * LLFloaterGesture::sInstance = NULL [static, protected] |
Definition at line 81 of file llfloatergesture.h.
Referenced by LLFloaterGesture(), refreshAll(), show(), toggleVisibility(), and ~LLFloaterGesture().
LLFloaterGestureObserver * LLFloaterGesture::sObserver = NULL [static, protected] |
Definition at line 82 of file llfloatergesture.h.
Referenced by LLFloaterGesture(), and ~LLFloaterGesture().
LLFloaterGestureInventoryObserver* LLFloaterGesture::sInventoryObserver [static, protected] |
Definition at line 83 of file llfloatergesture.h.