#include <lloverlaybar.h>
Public Member Functions | |
LLOverlayBar () | |
~LLOverlayBar () | |
void | refresh () |
void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE) |
BOOL | postBuild () |
void | layoutButtons () |
BOOL | musicPlaying () |
Static Public Member Functions | |
static void | onClickIMReceived (void *data) |
static void | onClickSetNotBusy (void *data) |
static void | onClickReleaseKeys (void *data) |
static void | onClickMouselook (void *data) |
static void | onClickStandUp (void *data) |
static void | onClickResetView (void *data) |
static void | toggleMediaPlay (void *) |
static void | toggleMusicPlay (void *) |
static void | musicPause (void *) |
static void | musicStop (void *) |
static void | mediaStop (void *) |
static void | toggleAudioVolumeFloater (void *) |
Protected Types | |
enum | { STOPPED = 0, PLAYING = 1, PAUSED = 2 } |
Protected Member Functions | |
void | enableMediaButtons () |
Static Protected Member Functions | |
static void * | createMediaRemote (void *userdata) |
static void * | createVoiceRemote (void *userdata) |
static void * | createChatBar (void *userdata) |
Protected Attributes | |
LLMediaRemoteCtrl * | mMediaRemote |
LLVoiceRemoteCtrl * | mVoiceRemote |
bool | mBuilt |
S32 | mMusicState |
Definition at line 53 of file lloverlaybar.h.
anonymous enum [protected] |
LLOverlayBar::LLOverlayBar | ( | ) |
Definition at line 100 of file lloverlaybar.cpp.
References LLUICtrlFactory::buildPanel(), createChatBar(), createMediaRemote(), createVoiceRemote(), FALSE, LLSingleton< LLUICtrlFactory >::getInstance(), mBuilt, LLUICtrl::setIsChrome(), LLView::setMouseOpaque(), and TRUE.
LLOverlayBar::~LLOverlayBar | ( | ) |
Definition at line 135 of file lloverlaybar.cpp.
void LLOverlayBar::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 189 of file lloverlaybar.cpp.
References LLAgent::anyControlGrabbed(), LLAgent::cameraMouselook(), LLPanel::childSetVisible(), CONTROL_ML_LBUTTON_DOWN_INDEX, CONTROL_ML_LBUTTON_UP_INDEX, FALSE, gAgent, LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLAgent::getBusy(), LLIMMgr::getIMReceived(), LLView::getVisible(), gIMMgr, gSavedSettings, LLAgent::isControlGrabbed(), layoutButtons(), LLVOAvatar::mIsSitting, mMediaRemote, LLView::moveChildToBackOfTabGroup(), mVoiceRemote, LLView::sendChildToFront(), LLView::setVisible(), TRUE, and LLVoiceClient::voiceEnabled().
Referenced by LLViewerWindow::handlePerFrameHover().
Reimplemented from LLView.
Definition at line 141 of file lloverlaybar.cpp.
References layoutButtons(), mBuilt, and LLView::reshape().
BOOL LLOverlayBar::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 119 of file lloverlaybar.cpp.
References LLPanel::childSetAction(), LLPanel::childSetVisible(), LLControlGroup::getBOOL(), gSavedSettings, layoutButtons(), mBuilt, onClickIMReceived(), onClickMouselook(), onClickReleaseKeys(), onClickSetNotBusy(), onClickStandUp(), LLView::setFocusRoot(), and TRUE.
void LLOverlayBar::layoutButtons | ( | ) |
Definition at line 151 of file lloverlaybar.cpp.
References LLViewQuery::addPreFilter(), LLPanel::getChildView(), LLRectBase< Type >::getHeight(), LLSingleton< LLEnabledFilter >::getInstance(), LLView::getRect(), LLControlGroup::getS32(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gSavedSettings, llclamp(), lltrunc(), r, S32, LLRectBase< Type >::setOriginAndSize(), and LLView::setRect().
Referenced by LLMediaRemoteCtrl::onClickExpandBtn(), LLVoiceRemoteCtrl::onClickPopupBtn(), postBuild(), refresh(), and reshape().
BOOL LLOverlayBar::musicPlaying | ( | ) | [inline] |
Definition at line 67 of file lloverlaybar.h.
References mMusicState, and PLAYING.
Referenced by LLMediaRemoteCtrl::enableMediaButtons().
void LLOverlayBar::onClickIMReceived | ( | void * | data | ) | [static] |
Definition at line 285 of file lloverlaybar.cpp.
References gIMMgr, LLIMMgr::setFloaterOpen(), and TRUE.
Referenced by postBuild().
void LLOverlayBar::onClickSetNotBusy | ( | void * | data | ) | [static] |
Definition at line 292 of file lloverlaybar.cpp.
References LLAgent::clearBusy(), and gAgent.
Referenced by postBuild().
void LLOverlayBar::onClickReleaseKeys | ( | void * | data | ) | [static] |
Definition at line 299 of file lloverlaybar.cpp.
References LLAgent::forceReleaseControls(), and gAgent.
Referenced by postBuild().
void LLOverlayBar::onClickMouselook | ( | void * | data | ) | [static] |
Definition at line 311 of file lloverlaybar.cpp.
References LLAgent::changeCameraToMouselook(), and gAgent.
Referenced by postBuild().
void LLOverlayBar::onClickStandUp | ( | void * | data | ) | [static] |
Definition at line 317 of file lloverlaybar.cpp.
References AGENT_CONTROL_STAND_UP, LLSelectMgr::deselectAllForStandingUp(), gAgent, LLSingleton< LLSelectMgr >::getInstance(), and LLAgent::setControlFlags().
Referenced by postBuild().
void LLOverlayBar::onClickResetView | ( | void * | data | ) | [static] |
Definition at line 305 of file lloverlaybar.cpp.
References handle_reset_view().
void LLOverlayBar::toggleMediaPlay | ( | void * | ) | [static] |
Definition at line 336 of file lloverlaybar.cpp.
References LLViewerParcelMgr::getAgentParcel(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLViewerMedia::isMediaPaused(), LLViewerMedia::isMediaPlaying(), LLViewerParcelMedia::pause(), LLViewerParcelMedia::play(), and LLViewerParcelMedia::start().
Referenced by LLMediaRemoteCtrl::postBuild().
void LLOverlayBar::toggleMusicPlay | ( | void * | ) | [static] |
Definition at line 363 of file lloverlaybar.cpp.
References gAudiop, LLViewerParcelMgr::getAgentParcel(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLParcel::getMusicURL(), mMusicState, PLAYING, LLAudioEngine::startInternetStream(), LLAudioEngine::stopInternetStream(), and STOPPED.
Referenced by LLMediaRemoteCtrl::postBuild().
static void LLOverlayBar::musicPause | ( | void * | ) | [static] |
static void LLOverlayBar::musicStop | ( | void * | ) | [static] |
void LLOverlayBar::mediaStop | ( | void * | ) | [static] |
Definition at line 327 of file lloverlaybar.cpp.
References LLViewerParcelMedia::stop().
Referenced by LLMediaRemoteCtrl::postBuild().
static void LLOverlayBar::toggleAudioVolumeFloater | ( | void * | ) | [static] |
void * LLOverlayBar::createMediaRemote | ( | void * | userdata | ) | [static, protected] |
Definition at line 80 of file lloverlaybar.cpp.
Referenced by LLOverlayBar().
void * LLOverlayBar::createVoiceRemote | ( | void * | userdata | ) | [static, protected] |
Definition at line 87 of file lloverlaybar.cpp.
Referenced by LLOverlayBar().
void * LLOverlayBar::createChatBar | ( | void * | userdata | ) | [static, protected] |
Definition at line 94 of file lloverlaybar.cpp.
References gChatBar.
Referenced by LLOverlayBar().
void LLOverlayBar::enableMediaButtons | ( | ) | [protected] |
LLMediaRemoteCtrl* LLOverlayBar::mMediaRemote [protected] |
LLVoiceRemoteCtrl* LLOverlayBar::mVoiceRemote [protected] |
bool LLOverlayBar::mBuilt [protected] |
Definition at line 95 of file lloverlaybar.h.
Referenced by LLOverlayBar(), postBuild(), and reshape().
S32 LLOverlayBar::mMusicState [protected] |