#include <llpaneldirfind.h>
Public Member Functions | |
LLPanelDirFind (const std::string &name, LLFloaterDirectory *floater, const std::string &browser_name) | |
~LLPanelDirFind () | |
void | draw () |
BOOL | postBuild () |
void | onVisibilityChange (BOOL new_visibility) |
virtual void | search (const std::string &search_text)=0 |
virtual void | navigateToDefaultPage () |
void | focus () |
Static Public Member Functions | |
static std::string | buildSearchURL (const std::string &search_text, const std::string &collection, bool mature_in) |
static std::string | getSearchURLSuffix (bool mature_in) |
Protected Attributes | |
LLWebBrowserCtrl * | mWebBrowser |
std::string | mBrowserName |
Private Member Functions | |
void | onNavigateBegin (const EventType &eventIn) |
void | onNavigateComplete (const EventType &eventIn) |
void | onLocationChange (const EventType &eventIn) |
Static Private Member Functions | |
static void | onClickBack (void *data) |
static void | onClickForward (void *data) |
static void | onClickHome (void *data) |
static void | onClickSearch (void *data) |
static void | onCommitSearch (LLUICtrl *, void *data) |
Definition at line 46 of file llpaneldirfind.h.
LLPanelDirFind::LLPanelDirFind | ( | const std::string & | name, | |
LLFloaterDirectory * | floater, | |||
const std::string & | browser_name | |||
) |
Definition at line 88 of file llpaneldirfind.cpp.
LLPanelDirFind::~LLPanelDirFind | ( | ) |
Definition at line 137 of file llpaneldirfind.cpp.
References mWebBrowser, and LLWebBrowserCtrl::remObserver().
void LLPanelDirFind::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanelDirBrowser.
Definition at line 144 of file llpaneldirfind.cpp.
References LLWebBrowserCtrl::canNavigateBack(), LLWebBrowserCtrl::canNavigateForward(), LLPanel::childSetEnabled(), LLPanelDirBrowser::draw(), and mWebBrowser.
BOOL LLPanelDirFind::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanelDirBrowser.
Definition at line 95 of file llpaneldirfind.cpp.
References LLWebBrowserCtrl::addObserver(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetValue(), LLPanel::childSetVisible(), gAgent, LLPanel::getString(), LLView::hasChild(), LLAgent::isTeen(), mBrowserName, mWebBrowser, navigateToDefaultPage(), onClickBack(), onClickForward(), onClickHome(), onClickSearch(), onCommitSearch(), LLPanelDirBrowser::postBuild(), LLWebBrowserCtrl::set404RedirectUrl(), LLWebBrowserCtrl::setOpenAppSLURLs(), LLWebBrowserCtrl::setOpenInExternalBrowser(), LLWebBrowserCtrl::setOpenInInternalBrowser(), and TRUE.
void LLPanelDirFind::onVisibilityChange | ( | BOOL | new_visibility | ) | [virtual] |
Reimplemented from LLPanelDirBrowser.
Definition at line 162 of file llpaneldirfind.cpp.
References LLFloaterDirectory::hideAllDetailPanels(), LLPanelDirBrowser::mFloaterDirectory, and LLView::onVisibilityChange().
virtual void LLPanelDirFind::search | ( | const std::string & | search_text | ) | [pure virtual] |
Implemented in LLPanelDirFindAll, LLPanelDirGroups, LLPanelDirPlaces, and LLPanelDirPopular.
void LLPanelDirFind::navigateToDefaultPage | ( | ) | [virtual] |
Definition at line 197 of file llpaneldirfind.cpp.
References LLSD::asBoolean(), LLPanel::childGetValue(), getSearchURLSuffix(), LLPanel::getString(), llendl, llinfos, mWebBrowser, and LLWebBrowserCtrl::navigateTo().
Referenced by postBuild(), LLPanelDirPlaces::search(), LLPanelDirGroups::search(), and LLPanelDirFindAll::search().
void LLPanelDirFind::focus | ( | ) |
Definition at line 192 of file llpaneldirfind.cpp.
References LLPanel::childSetFocus().
Referenced by LLPanelDirFindAllInterface::focus().
std::string LLPanelDirFind::buildSearchURL | ( | const std::string & | search_text, | |
const std::string & | collection, | |||
bool | mature_in | |||
) | [static] |
Definition at line 211 of file llpaneldirfind.cpp.
References LLURI::escape(), getSearchURLSuffix(), LLControlGroup::getString(), gSavedSettings, llendl, and llinfos.
Referenced by LLPanelDirPlaces::search(), LLPanelDirGroups::search(), and LLPanelDirFindAll::search().
std::string LLPanelDirFind::getSearchURLSuffix | ( | bool | mature_in | ) | [static] |
Definition at line 252 of file llpaneldirfind.cpp.
References LLURI::escape(), gAgent, LLViewerRegion::getName(), LLAgent::getPositionAgent(), LLAgent::getRegion(), LLAgent::getSessionID(), LLUUID::getString(), LLControlGroup::getString(), gSavedSettings, LLAgent::isTeen(), llformat(), LLVector3::mV, LLUI::sConfigGroup, VX, VY, and VZ.
Referenced by buildSearchURL(), and navigateToDefaultPage().
void LLPanelDirFind::onClickBack | ( | void * | data | ) | [static, private] |
Definition at line 323 of file llpaneldirfind.cpp.
Referenced by postBuild().
void LLPanelDirFind::onClickForward | ( | void * | data | ) | [static, private] |
Definition at line 333 of file llpaneldirfind.cpp.
Referenced by postBuild().
void LLPanelDirFind::onClickHome | ( | void * | data | ) | [static, private] |
Definition at line 343 of file llpaneldirfind.cpp.
Referenced by postBuild().
void LLPanelDirFind::onClickSearch | ( | void * | data | ) | [static, private] |
Definition at line 359 of file llpaneldirfind.cpp.
References LLFloaterDirectory::sNewSearchCount.
Referenced by onCommitSearch(), and postBuild().
void LLPanelDirFind::onCommitSearch | ( | LLUICtrl * | , | |
void * | data | |||
) | [static, private] |
Definition at line 353 of file llpaneldirfind.cpp.
References onClickSearch().
Referenced by postBuild().
void LLPanelDirFind::onNavigateBegin | ( | const EventType & | eventIn | ) | [private, virtual] |
Reimplemented from LLWebBrowserCtrlObserver.
Definition at line 368 of file llpaneldirfind.cpp.
References LLPanel::childSetText(), and LLPanel::getString().
void LLPanelDirFind::onNavigateComplete | ( | const EventType & | eventIn | ) | [private, virtual] |
Reimplemented from LLWebBrowserCtrlObserver.
Definition at line 373 of file llpaneldirfind.cpp.
References LLPanel::childSetText(), and LLPanel::getString().
void LLPanelDirFind::onLocationChange | ( | const EventType & | eventIn | ) | [private, virtual] |
Reimplemented from LLWebBrowserCtrlObserver.
Definition at line 378 of file llpaneldirfind.cpp.
References LLWebBrowserCtrlEvent::getStringValue(), llendl, and llinfos.
LLWebBrowserCtrl* LLPanelDirFind::mWebBrowser [protected] |
Definition at line 82 of file llpaneldirfind.h.
Referenced by draw(), navigateToDefaultPage(), postBuild(), LLPanelDirPlaces::search(), LLPanelDirGroups::search(), LLPanelDirFindAll::search(), and ~LLPanelDirFind().
std::string LLPanelDirFind::mBrowserName [protected] |