#include <llfloaterhtmlhelp.h>
Public Member Functions | |
LLFloaterMediaBrowser (const LLSD &media_data) | |
BOOL | postBuild () |
void | onClose (bool app_quitting) |
void | onLocationChange (const EventType &eventIn) |
void | draw () |
void | openMedia (const std::string &media_url) |
void | buildURLHistory () |
Static Public Member Functions | |
static LLFloaterMediaBrowser * | showInstance (const LLSD &id) |
static void | onEnterAddress (LLUICtrl *ctrl, void *user_data) |
static void | onClickRefresh (void *user_data) |
static void | onClickBack (void *user_data) |
static void | onClickForward (void *user_data) |
static void | onClickGo (void *user_data) |
static void | onClickClose (void *user_data) |
static void | onClickOpenWebBrowser (void *user_data) |
static void | onClickAssign (void *user_data) |
Private Attributes | |
LLWebBrowserCtrl * | mBrowser |
LLComboBox * | mAddressCombo |
std::string | mCurrentURL |
Friends | |
class | LLUISingleton< LLFloaterMediaBrowser, VisibilityPolicy< LLFloater > > |
Definition at line 52 of file llfloaterhtmlhelp.h.
LLFloaterMediaBrowser::LLFloaterMediaBrowser | ( | const LLSD & | media_data | ) |
Definition at line 53 of file llfloaterhtmlhelp.cpp.
References LLUICtrlFactory::buildFloater(), and LLSingleton< LLUICtrlFactory >::getInstance().
BOOL LLFloaterMediaBrowser::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 70 of file llfloaterhtmlhelp.cpp.
References LLWebBrowserCtrl::addObserver(), buildURLHistory(), LLPanel::childSetAction(), mAddressCombo, mBrowser, onClickAssign(), onClickBack(), onClickClose(), onClickForward(), onClickGo(), onClickOpenWebBrowser(), onClickRefresh(), onEnterAddress(), LLUICtrl::setCallbackUserData(), LLUICtrl::setCommitCallback(), and TRUE.
void LLFloaterMediaBrowser::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 114 of file llfloaterhtmlhelp.cpp.
References LLFloater::destroy().
void LLFloaterMediaBrowser::onLocationChange | ( | const EventType & | eventIn | ) | [virtual] |
Reimplemented from LLWebBrowserCtrlObserver.
Definition at line 120 of file llfloaterhtmlhelp.cpp.
References LLComboBox::add(), ADD_SORTED, LLURLHistory::addURL(), LLWebBrowserCtrl::canNavigateBack(), LLWebBrowserCtrl::canNavigateForward(), LLPanel::childSetEnabled(), LLWebBrowserCtrlEvent::getStringValue(), mAddressCombo, mBrowser, mCurrentURL, LLComboBox::remove(), LLURLHistory::removeURL(), LLCtrlSelectionInterface::selectByValue(), and TRUE.
void LLFloaterMediaBrowser::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 58 of file llfloaterhtmlhelp.cpp.
References LLSD::asString(), LLPanel::childSetEnabled(), LLPanel::childSetVisible(), LLFloater::draw(), LLViewerParcelMgr::getAgentParcel(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLComboBox::getValue(), GP_LAND_CHANGE_MEDIA, LLViewerParcelMgr::isParcelModifiableByAgent(), and mAddressCombo.
void LLFloaterMediaBrowser::openMedia | ( | const std::string & | media_url | ) |
Definition at line 240 of file llfloaterhtmlhelp.cpp.
References mBrowser, LLWebBrowserCtrl::navigateTo(), and LLWebBrowserCtrl::setHomePageUrl().
Referenced by showInstance().
void LLFloaterMediaBrowser::buildURLHistory | ( | ) |
Definition at line 91 of file llfloaterhtmlhelp.cpp.
References LLCtrlListInterface::addSimpleElement(), LLSD::beginArray(), LLPanel::childGetListInterface(), LLSD::endArray(), LLURLHistory::getURLHistory(), LLCtrlSelectionInterface::OP_DELETE, and LLCtrlSelectionInterface::operateOnAll().
Referenced by postBuild().
LLFloaterMediaBrowser * LLFloaterMediaBrowser::showInstance | ( | const LLSD & | id | ) | [static] |
Reimplemented from LLUIFactory< LLFloaterMediaBrowser, LLUISingleton< LLFloaterMediaBrowser, VisibilityPolicy< LLFloater > >, VisibilityPolicy< LLFloater > >.
Definition at line 150 of file llfloaterhtmlhelp.cpp.
References LLSD::asString(), and openMedia().
Referenced by LLWeb::loadURL().
void LLFloaterMediaBrowser::onEnterAddress | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static] |
Definition at line 159 of file llfloaterhtmlhelp.cpp.
Referenced by postBuild().
void LLFloaterMediaBrowser::onClickRefresh | ( | void * | user_data | ) | [static] |
Definition at line 166 of file llfloaterhtmlhelp.cpp.
Referenced by postBuild().
void LLFloaterMediaBrowser::onClickBack | ( | void * | user_data | ) | [static] |
Definition at line 183 of file llfloaterhtmlhelp.cpp.
Referenced by postBuild().
void LLFloaterMediaBrowser::onClickForward | ( | void * | user_data | ) | [static] |
Definition at line 175 of file llfloaterhtmlhelp.cpp.
Referenced by postBuild().
void LLFloaterMediaBrowser::onClickGo | ( | void * | user_data | ) | [static] |
Definition at line 191 of file llfloaterhtmlhelp.cpp.
Referenced by postBuild().
void LLFloaterMediaBrowser::onClickClose | ( | void * | user_data | ) | [static] |
Reimplemented from LLFloater.
Definition at line 199 of file llfloaterhtmlhelp.cpp.
Referenced by postBuild().
void LLFloaterMediaBrowser::onClickOpenWebBrowser | ( | void * | user_data | ) | [static] |
Definition at line 207 of file llfloaterhtmlhelp.cpp.
References LLWeb::loadURLExternal().
Referenced by postBuild().
void LLFloaterMediaBrowser::onClickAssign | ( | void * | user_data | ) | [static] |
Definition at line 217 of file llfloaterhtmlhelp.cpp.
References LLViewerParcelMgr::getAgentParcel(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLViewerParcelMgr::sendParcelPropertiesUpdate(), LLParcel::setMediaType(), LLParcel::setMediaURL(), LLStringBase< char >::trim(), and LLViewerParcelMedia::update().
Referenced by postBuild().
friend class LLUISingleton< LLFloaterMediaBrowser, VisibilityPolicy< LLFloater > > [friend] |
Definition at line 54 of file llfloaterhtmlhelp.h.
LLWebBrowserCtrl* LLFloaterMediaBrowser::mBrowser [private] |
Definition at line 78 of file llfloaterhtmlhelp.h.
Referenced by onLocationChange(), openMedia(), and postBuild().
LLComboBox* LLFloaterMediaBrowser::mAddressCombo [private] |
Definition at line 79 of file llfloaterhtmlhelp.h.
Referenced by draw(), onLocationChange(), and postBuild().
std::string LLFloaterMediaBrowser::mCurrentURL [private] |