LLOverlayBar Class Reference

#include <lloverlaybar.h>

Inheritance diagram for LLOverlayBar:

Inheritance graph
[legend]
Collaboration diagram for LLOverlayBar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLOverlayBar (const std::string &name, const LLRect &rect)
 ~LLOverlayBar ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
void refresh ()
void draw ()
void reshape (S32 width, S32 height, BOOL called_from_parent)
void layoutButtons ()
BOOL mediaPlaying ()
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 mediaPlay (void *)
static void mediaPause (void *)
static void mediaStop (void *)
static void musicPlay (void *)
static void musicPause (void *)
static void musicStop (void *)
static void toggleAudioVolumeFloater (void *)
static void enableMediaButtons (LLPanel *panel)
static void enableMusicButtons (LLPanel *panel)

Protected Types

 STOPPED = 0
 PLAYING = 1
 PAUSED = 2
enum  { STOPPED = 0, PLAYING = 1, PAUSED = 2 }

Static Protected Member Functions

static voidcreateMasterRemote (void *userdata)
static voidcreateMusicRemote (void *userdata)
static voidcreateMediaRemote (void *userdata)
static voidcreateVoiceRemote (void *userdata)

Protected Attributes

LLMediaRemoteCtrlmMasterRemote
LLMediaRemoteCtrlmMusicRemote
LLMediaRemoteCtrlmMediaRemote
LLVoiceRemoteCtrlmVoiceRemote
bool mBuilt
BOOL mMediaState
BOOL mMusicState

Detailed Description

Definition at line 53 of file lloverlaybar.h.


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
STOPPED 
PLAYING 
PAUSED 

Definition at line 106 of file lloverlaybar.h.


Constructor & Destructor Documentation

LLOverlayBar::LLOverlayBar ( const std::string &  name,
const LLRect rect 
)

Definition at line 116 of file lloverlaybar.cpp.

References LLUICtrlFactory::buildPanel(), LLPanel::childSetAction(), createMasterRemote(), createMediaRemote(), createMusicRemote(), createVoiceRemote(), FALSE, gUICtrlFactory, layoutButtons(), mBuilt, LLView::mIsFocusRoot, onClickIMReceived(), onClickMouselook(), onClickReleaseKeys(), onClickSetNotBusy(), onClickStandUp(), LLUICtrl::setIsChrome(), LLView::setMouseOpaque(), LLView::setRect(), and TRUE.

LLOverlayBar::~LLOverlayBar (  ) 

Definition at line 152 of file lloverlaybar.cpp.


Member Function Documentation

void * LLOverlayBar::createMasterRemote ( void userdata  )  [static, protected]

Definition at line 76 of file lloverlaybar.cpp.

Referenced by LLOverlayBar().

void * LLOverlayBar::createMediaRemote ( void userdata  )  [static, protected]

Definition at line 86 of file lloverlaybar.cpp.

Referenced by LLOverlayBar().

void * LLOverlayBar::createMusicRemote ( void userdata  )  [static, protected]

Definition at line 96 of file lloverlaybar.cpp.

Referenced by LLOverlayBar().

void * LLOverlayBar::createVoiceRemote ( void userdata  )  [static, protected]

Definition at line 106 of file lloverlaybar.cpp.

Referenced by LLOverlayBar().

void LLOverlayBar::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 253 of file lloverlaybar.cpp.

References LLViewerImage::bindTexture(), LLFocusMgr::childHasKeyboardFocus(), LLPanel::draw(), gBottomPanel, gColors, LLView::getChildList(), LLControlGroup::getColor(), LLImageGL::getHeight(), LLViewerImageList::getImage(), LLControlGroup::getS32(), LLControlGroup::getString(), LLImageGL::getWidth(), gFocusMgr, gImageList, gl_segmented_rect_2d_tex(), glColor4fv, gSavedSettings, gViewerArt, MIPMAP_FALSE, LLColor4::mV, r, ROUNDED_RECT_TOP, S32, LLUUID::set(), and TRUE.

void LLOverlayBar::enableMediaButtons ( LLPanel panel  )  [static]

Definition at line 576 of file lloverlaybar.cpp.

References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), FALSE, LLControlGroup::getBOOL(), LLMediaEngine::getInstance(), gOverlayBar, gSavedSettings, and TRUE.

Referenced by LLMediaRemoteCtrl::draw().

void LLOverlayBar::enableMusicButtons ( LLPanel panel  )  [static]

Definition at line 545 of file lloverlaybar.cpp.

References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), FALSE, gAudiop, LLControlGroup::getBOOL(), gOverlayBar, gSavedSettings, LLAudioEngine::isInternetStreamPlaying(), S32, and TRUE.

Referenced by LLMediaRemoteCtrl::draw().

LLString LLOverlayBar::getWidgetTag (  )  const [virtual]

Reimplemented from LLPanel.

Definition at line 162 of file lloverlaybar.cpp.

References LL_OVERLAY_BAR_TAG.

EWidgetType LLOverlayBar::getWidgetType (  )  const [virtual]

Reimplemented from LLPanel.

Definition at line 157 of file lloverlaybar.cpp.

References WIDGET_TYPE_OVERLAY_BAR.

void LLOverlayBar::layoutButtons (  ) 

Definition at line 178 of file lloverlaybar.cpp.

References count, LLView::getChildCount(), LLView::getChildList(), LLView::getRect(), LLControlGroup::getS32(), LLRectBase< Type >::getWidth(), gSavedSettings, i, llround(), lltrunc(), mMasterRemote, mMediaRemote, mMusicRemote, LLView::mRect, mVoiceRemote, r, right, S32, LLView::setRect(), LLView::updateRect(), and width.

Referenced by LLOverlayBar(), and reshape().

void LLOverlayBar::mediaPause ( void  )  [static]

Definition at line 475 of file lloverlaybar.cpp.

References LLMediaEngine::getInstance(), gOverlayBar, mMediaState, LLMediaEngine::pause(), and PAUSED.

Referenced by LLMediaRemoteCtrl::postBuild().

void LLOverlayBar::mediaPlay ( void  )  [static]

Definition at line 460 of file lloverlaybar.cpp.

References LLMediaEngine::convertImageAndLoadUrl(), LLViewerParcelMgr::getAgentParcel(), LLMediaEngine::getInstance(), gOverlayBar, gParcelMgr, mMediaState, and PLAYING.

Referenced by LLMediaRemoteCtrl::postBuild().

BOOL LLOverlayBar::mediaPlaying (  )  [inline]

Definition at line 70 of file lloverlaybar.h.

References mMediaState, and PLAYING.

void LLOverlayBar::mediaStop ( void  )  [static]

Definition at line 485 of file lloverlaybar.cpp.

References LLMediaEngine::getInstance(), gOverlayBar, mMediaState, LLMediaEngine::stop(), and STOPPED.

Referenced by LLMediaRemoteCtrl::postBuild().

void LLOverlayBar::musicPause ( void  )  [static]

Definition at line 518 of file lloverlaybar.cpp.

References gAudiop, gOverlayBar, mMusicState, PAUSED, and LLAudioEngine::pauseInternetStream().

Referenced by LLMediaRemoteCtrl::postBuild().

void LLOverlayBar::musicPlay ( void  )  [static]

Definition at line 496 of file lloverlaybar.cpp.

References gAudiop, LLViewerParcelMgr::getAgentParcel(), LLParcel::getMusicURL(), gOverlayBar, gParcelMgr, mMusicState, PLAYING, and LLAudioEngine::startInternetStream().

Referenced by callback_start_music(), optionally_start_music(), and LLMediaRemoteCtrl::postBuild().

BOOL LLOverlayBar::musicPlaying (  )  [inline]

Definition at line 71 of file lloverlaybar.h.

References mMusicState, and PLAYING.

Referenced by optionally_start_music().

void LLOverlayBar::musicStop ( void  )  [static]

Definition at line 531 of file lloverlaybar.cpp.

References gAudiop, gOverlayBar, mMusicState, LLAudioEngine::stopInternetStream(), and STOPPED.

Referenced by LLMediaRemoteCtrl::postBuild().

void LLOverlayBar::onClickIMReceived ( void data  )  [static]

Definition at line 418 of file lloverlaybar.cpp.

References gIMMgr, LLIMMgr::setFloaterOpen(), and TRUE.

Referenced by LLOverlayBar().

void LLOverlayBar::onClickMouselook ( void data  )  [static]

Definition at line 444 of file lloverlaybar.cpp.

References LLAgent::changeCameraToMouselook(), and gAgent.

Referenced by LLOverlayBar().

void LLOverlayBar::onClickReleaseKeys ( void data  )  [static]

Definition at line 432 of file lloverlaybar.cpp.

References LLAgent::forceReleaseControls(), and gAgent.

Referenced by LLOverlayBar().

void LLOverlayBar::onClickResetView ( void data  )  [static]

Definition at line 438 of file lloverlaybar.cpp.

References handle_reset_view().

void LLOverlayBar::onClickSetNotBusy ( void data  )  [static]

Definition at line 425 of file lloverlaybar.cpp.

References LLAgent::clearBusy(), and gAgent.

Referenced by LLOverlayBar().

void LLOverlayBar::onClickStandUp ( void data  )  [static]

Definition at line 450 of file lloverlaybar.cpp.

References AGENT_CONTROL_STAND_UP, gAgent, and LLAgent::setControlFlags().

Referenced by LLOverlayBar().

void LLOverlayBar::refresh (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 327 of file lloverlaybar.cpp.

References LLAgent::anyControlGrabbed(), LLAgent::cameraMouselook(), LLPanel::childSetEnabled(), LLPanel::childSetVisible(), CONTROL_ML_LBUTTON_DOWN_INDEX, CONTROL_ML_LBUTTON_UP_INDEX, FALSE, gAgent, gAudiop, LLViewerParcelMgr::getAgentParcel(), LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLAgent::getBusy(), LLIMMgr::getIMReceived(), LLMediaEngine::getInstance(), LLParcel::getMusicURL(), gIMMgr, gParcelMgr, gSavedSettings, LLAgent::isControlGrabbed(), LLVOAvatar::mIsSitting, mMediaRemote, mMusicRemote, mVoiceRemote, LLView::setEnabled(), LLView::setVisible(), TRUE, and LLVoiceClient::voiceEnabled().

Referenced by LLViewerWindow::handlePerFrameHover(), and stop_video().

void LLOverlayBar::reshape ( S32  width,
S32  height,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 168 of file lloverlaybar.cpp.

References layoutButtons(), mBuilt, and LLView::reshape().

void LLOverlayBar::toggleAudioVolumeFloater ( void  )  [static]

Definition at line 611 of file lloverlaybar.cpp.

References LLUIInstanceMgr< T, INSTANCE_ADAPTOR >::toggleInstance().

Referenced by LLMediaRemoteCtrl::postBuild().


Member Data Documentation

bool LLOverlayBar::mBuilt [protected]

Definition at line 105 of file lloverlaybar.h.

Referenced by LLOverlayBar(), and reshape().

LLMediaRemoteCtrl* LLOverlayBar::mMasterRemote [protected]

Definition at line 101 of file lloverlaybar.h.

Referenced by layoutButtons().

LLMediaRemoteCtrl* LLOverlayBar::mMediaRemote [protected]

Definition at line 103 of file lloverlaybar.h.

Referenced by layoutButtons(), and refresh().

BOOL LLOverlayBar::mMediaState [protected]

Definition at line 107 of file lloverlaybar.h.

Referenced by mediaPause(), mediaPlay(), mediaPlaying(), and mediaStop().

LLMediaRemoteCtrl* LLOverlayBar::mMusicRemote [protected]

Definition at line 102 of file lloverlaybar.h.

Referenced by layoutButtons(), and refresh().

BOOL LLOverlayBar::mMusicState [protected]

Definition at line 108 of file lloverlaybar.h.

Referenced by musicPause(), musicPlay(), musicPlaying(), and musicStop().

LLVoiceRemoteCtrl* LLOverlayBar::mVoiceRemote [protected]

Definition at line 104 of file lloverlaybar.h.

Referenced by layoutButtons(), and refresh().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:33 2010 for Second Life Viewer by  doxygen 1.4.7