#include <llfloaterurlentry.h>
Public Member Functions | |
void | updateFromLandMediaPanel () |
void | headerFetchComplete (U32 status, const std::string &mime_type) |
bool | addURLToCombobox (const std::string &media_url) |
Static Public Member Functions | |
static LLHandle< LLFloater > | show (LLHandle< LLPanel > panel_land_media_handle) |
Private Member Functions | |
LLFloaterURLEntry (LLHandle< LLPanel > parent) | |
~LLFloaterURLEntry () | |
void | buildURLHistory () |
Static Private Member Functions | |
static void | onBtnOK (void *) |
static void | onBtnCancel (void *) |
static void | onBtnClear (void *) |
static void | callback_clear_url_list (S32 option, void *userdata) |
Private Attributes | |
LLComboBox * | mMediaURLEdit |
LLHandle< LLPanel > | mPanelLandMediaHandle |
Definition at line 41 of file llfloaterurlentry.h.
Definition at line 87 of file llfloaterurlentry.cpp.
References LLUICtrlFactory::buildFloater(), buildURLHistory(), LLPanel::childSetAction(), LLPanel::childSetEnabled(), LLSingleton< LLUICtrlFactory >::getInstance(), LLURLHistory::getURLHistory(), mMediaURLEdit, onBtnCancel(), onBtnClear(), onBtnOK(), LLPanel::setDefaultBtn(), and LLSD::size().
Referenced by show().
LLFloaterURLEntry::~LLFloaterURLEntry | ( | ) | [private] |
LLHandle< LLFloater > LLFloaterURLEntry::show | ( | LLHandle< LLPanel > | panel_land_media_handle | ) | [static] |
Definition at line 161 of file llfloaterurlentry.cpp.
References LLFloater::getHandle(), LLFloaterURLEntry(), LLFloater::open(), and updateFromLandMediaPanel().
Referenced by LLPanelLandMedia::onSetBtn().
void LLFloaterURLEntry::updateFromLandMediaPanel | ( | ) |
Definition at line 175 of file llfloaterurlentry.cpp.
References addURLToCombobox(), LLHandle< T >::get(), LLPanelLandMedia::getMediaURL(), and mPanelLandMediaHandle.
Referenced by LLPanelLandMedia::refresh(), and show().
void LLFloaterURLEntry::headerFetchComplete | ( | U32 | status, | |
const std::string & | mime_type | |||
) |
Definition at line 145 of file llfloaterurlentry.cpp.
References LLSD::asString(), LLPanel::childSetVisible(), LLFloater::close(), LLWindow::decBusyCount(), LLHandle< T >::get(), LLComboBox::getValue(), LLView::getWindow(), mMediaURLEdit, mPanelLandMediaHandle, LLPanelLandMedia::setMediaType(), and LLPanelLandMedia::setMediaURL().
Referenced by LLMediaTypeResponder::completeAny().
bool LLFloaterURLEntry::addURLToCombobox | ( | const std::string & | media_url | ) |
Definition at line 185 of file llfloaterurlentry.cpp.
References LLComboBox::add(), mMediaURLEdit, and LLComboBox::setSimple().
Referenced by updateFromLandMediaPanel().
void LLFloaterURLEntry::buildURLHistory | ( | ) | [private] |
Definition at line 124 of file llfloaterurlentry.cpp.
References LLCtrlListInterface::addSimpleElement(), LLSD::beginArray(), LLPanel::childGetListInterface(), LLSD::endArray(), LLURLHistory::getURLHistory(), LLCtrlSelectionInterface::OP_DELETE, and LLCtrlSelectionInterface::operateOnAll().
Referenced by LLFloaterURLEntry().
void LLFloaterURLEntry::onBtnOK | ( | void * | userdata | ) | [static, private] |
Definition at line 202 of file llfloaterurlentry.cpp.
References LLURLHistory::addURL(), LLHTTPClient::getHeaderOnly(), LLView::getWindow(), LLWindow::incBusyCount(), LLURLHistory::removeURL(), LLURI::scheme(), and LLStringBase< char >::trim().
Referenced by LLFloaterURLEntry().
void LLFloaterURLEntry::onBtnCancel | ( | void * | userdata | ) | [static, private] |
Definition at line 253 of file llfloaterurlentry.cpp.
Referenced by LLFloaterURLEntry().
void LLFloaterURLEntry::onBtnClear | ( | void * | userdata | ) | [static, private] |
Definition at line 263 of file llfloaterurlentry.cpp.
References LLViewerWindow::alertXml(), callback_clear_url_list(), and gViewerWindow.
Referenced by LLFloaterURLEntry().
void LLFloaterURLEntry::callback_clear_url_list | ( | S32 | option, | |
void * | userdata | |||
) | [static, private] |
Definition at line 268 of file llfloaterurlentry.cpp.
References LLURLHistory::clear(), LLCtrlSelectionInterface::OP_DELETE, and LLCtrlSelectionInterface::operateOnAll().
Referenced by onBtnClear().
LLComboBox* LLFloaterURLEntry::mMediaURLEdit [private] |
Definition at line 60 of file llfloaterurlentry.h.
Referenced by addURLToCombobox(), headerFetchComplete(), and LLFloaterURLEntry().
Definition at line 61 of file llfloaterurlentry.h.
Referenced by headerFetchComplete(), and updateFromLandMediaPanel().