LLPanelLogin Class Reference

#include <llpanellogin.h>

Inheritance diagram for LLPanelLogin:

Inheritance graph
[legend]
Collaboration diagram for LLPanelLogin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelLogin (const LLRect &rect, BOOL show_server, void(*callback)(S32 option, void *user_data), void *callback_data)
 ~LLPanelLogin ()
virtual BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
virtual void draw ()
virtual void setFocus (BOOL b)
void setSiteIsAlive (bool alive)

Static Public Member Functions

static void show (const LLRect &rect, BOOL show_server, void(*callback)(S32 option, void *user_data), void *callback_data)
static void setFields (const std::string &firstname, const std::string &lastname, const std::string &password, BOOL remember)
static void addServer (const char *server, S32 domain_name)
static void refreshLocation (bool force_visible)
static void getFields (LLString &firstname, LLString &lastname, LLString &password, BOOL &remember)
static BOOL getServer (LLString &server, S32 &domain_name)
static void getLocation (LLString &location)
static void close ()
static void giveFocus ()
static void mungePassword (LLUICtrl *caller, void *user_data)

Static Private Member Functions

static void onClickConnect (void *)
static void onClickNewAccount (void *)
static void newAccountAlertCallback (S32 option, void *)
static void onClickQuit (void *)
static void onClickVersion (void *)
static void onPassKey (LLLineEditor *caller, void *user_data)

Private Attributes

LLPointer< LLViewerImagemLogoImage
void(* mCallback )(S32 option, void *userdata)
voidmCallbackData
std::string mIncomingPassword
std::string mMungedPassword
BOOL mHtmlAvailable

Static Private Attributes

static LLPanelLoginsInstance = NULL
static BOOL sCapslockDidNotification = FALSE

Detailed Description

Definition at line 49 of file llpanellogin.h.


Constructor & Destructor Documentation

LLPanelLogin::LLPanelLogin ( const LLRect rect,
BOOL  show_server,
void(*)(S32 option, void *user_data)  callback,
void callback_data 
)

Definition at line 125 of file llpanellogin.cpp.

References LLComboBox::add(), LLView::addChildAtEnd(), LLIamHereLogin::build(), LLUICtrlFactory::buildPanel(), LLPanel::childGetValue(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetKeystrokeCallback(), LLPanel::childSetPrevalidate(), LLPanel::childSetUserData(), LLPanel::childSetVisible(), FALSE, gChannelName, gDirUtilp, LLHTTPClient::get(), LLControlGroup::getBOOL(), LLRectBase< Type >::getCenterX(), LLRectBase< Type >::getCenterY(), LLUICtrlFactory::getComboBoxByName(), LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), LLRectBase< Type >::getHeight(), LLViewerImageList::getImage(), LLUICtrlFactory::getLineEditorByName(), LLView::getRect(), LLViewerWindow::getRootView(), LLUICtrlFactory::getTextBoxByName(), LLUICtrlFactory::getWebBrowserCtrlByName(), LLRectBase< Type >::getWidth(), gFocusMgr, gHideLinks, gImageList, gResponsePtr, gSavedSettings, gUICtrlFactory, gViewerWindow, LL_PATH_SKINS, LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VERSION_REVISION, LL_VIEWER_BUILD, llendl, llformat(), llwarns, mHtmlAvailable, MIPMAP_FALSE, LLView::mIsFocusRoot, mLogoImage, LLView::mRect, LLRectBase< Type >::mRight, LLURLSimString::mSimString, LLRectBase< Type >::mTop, mungePassword(), LLUUID::null, NULL, onClickConnect(), onClickNewAccount(), onClickQuit(), onClickVersion(), onPassKey(), LLLineEditor::prevalidatePrintableNoSpace(), r, refreshLocation(), LLComboBox::remove(), LLView::reshape(), right, S32, LLPanelGeneral::set_start_location(), LLComboBox::setAllowTextEntry(), LLPanel::setBackgroundOpaque(), LLPanel::setBackgroundVisible(), LLTextBox::setCallbackUserData(), LLRectBase< Type >::setCenterAndSize(), LLTextBox::setClickedCallback(), LLUICtrl::setCommitCallback(), LLComboBox::setCurrentByIndex(), LLPanel::setDefaultBtn(), LLFocusMgr::setDefaultKeyboardFocus(), LLLineEditor::setDrawAsterixes(), LLView::setRect(), LLTextBox::setText(), LLComboBox::setTextEntry(), LLFloaterPreference::show(), LLURLSimString::sInstance, sInstance, and TRUE.

Referenced by show().

LLPanelLogin::~LLPanelLogin (  ) 

Definition at line 355 of file llpanellogin.cpp.

References LLViewerImageList::deleteImage(), gImageList, gResponsePtr, mLogoImage, NULL, and sInstance.


Member Function Documentation

void LLPanelLogin::addServer ( const char *  server,
S32  domain_name 
) [static]

Definition at line 591 of file llpanellogin.cpp.

References LLComboBox::add(), LLUICtrlFactory::getComboBoxByName(), llendl, llwarns, LLComboBox::setCurrentByIndex(), and sInstance.

Referenced by login_show().

void LLPanelLogin::close (  )  [static]

Definition at line 710 of file llpanellogin.cpp.

References LLViewerWindow::getRootView(), gFocusMgr, gViewerWindow, NULL, LLView::removeChild(), LLFocusMgr::setDefaultKeyboardFocus(), and sInstance.

Referenced by idle_startup(), login_callback(), and login_done().

void LLPanelLogin::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 368 of file llpanellogin.cpp.

References LLPanel::childSetVisible(), LLPanel::draw(), f, LLRectBase< Type >::getHeight(), LLViewerWindow::getTargetWindow(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gl_draw_scaled_image(), gl_rect_2d(), glPopMatrix, glTranslatef, gViewerWindow, height, mHtmlAvailable, mLogoImage, LLView::mRect, S32, and width.

void LLPanelLogin::getFields ( LLString firstname,
LLString lastname,
LLString password,
BOOL remember 
) [static]

Definition at line 608 of file llpanellogin.cpp.

References LLPanel::childGetText(), LLPanel::childGetValue(), llendl, llwarns, mMungedPassword, sInstance, and LLStringBase< char >::trim().

Referenced by idle_startup(), and login_callback().

void LLPanelLogin::getLocation ( LLString location  )  [static]

Definition at line 665 of file llpanellogin.cpp.

References LLSD::asString(), LLUICtrlFactory::getComboBoxByName(), LLComboBox::getValue(), llendl, llwarns, and sInstance.

Referenced by idle_startup().

BOOL LLPanelLogin::getServer ( LLString server,
S32 domain_name 
) [static]

Definition at line 629 of file llpanellogin.cpp.

References LLSD::asInteger(), LLSD::asString(), FALSE, LLUICtrlFactory::getComboBoxByName(), LLComboBox::getValue(), gUserServerName, LLComboBox::isDirty(), llendl, llwarns, S32, sInstance, LLSD::type(), LLSD::TypeInteger, and USERSERVER_OTHER.

Referenced by idle_startup().

void LLPanelLogin::giveFocus (  )  [static]

Definition at line 498 of file llpanellogin.cpp.

References LLPanel::childGetText(), first, LLUICtrlFactory::getLineEditorByName(), NULL, LLLineEditor::selectAll(), LLLineEditor::setFocus(), sInstance, and TRUE.

Referenced by first_run_dialog_callback(), idle_startup(), login_alert_done(), login_alert_status(), and setFocus().

BOOL LLPanelLogin::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLPanel.

Definition at line 421 of file llpanellogin.cpp.

References FALSE, LLView::getEnabled(), LLView::getVisible(), gFloaterProject, gViewerWindow, LLPanel::handleKeyHere(), KEY_F1, KEY_F2, KEY_RETURN, llendl, llinfos, MASK_ALT, MASK_CONTROL, MASK_NONE, NULL, LLFloaterTOS::show(), LLFloaterNetwork2080::show(), LLFloaterPreference::show(), LLModalDialog::startModal(), LLViewerWindow::toggleFullscreen(), LLFloaterTOS::TOS_TOS, and TRUE.

void LLPanelLogin::mungePassword ( LLUICtrl caller,
void user_data 
) [static]

Definition at line 339 of file llpanellogin.cpp.

References LLLineEditor::getText(), and MD5HEX_STR_SIZE.

Referenced by LLPanelLogin().

void LLPanelLogin::newAccountAlertCallback ( S32  option,
void  
) [static, private]

Definition at line 770 of file llpanellogin.cpp.

References CREATE_ACCOUNT_URL, llendl, llinfos, LLWeb::loadURL(), setFocus(), sInstance, and TRUE.

Referenced by onClickNewAccount().

void LLPanelLogin::onClickConnect ( void  )  [static, private]

Definition at line 729 of file llpanellogin.cpp.

References LLPanel::childGetText(), FALSE, first, LLUICtrlFactory::getComboBoxByName(), gResponsePtr, gSavedSettings, mCallback, NULL, onClickNewAccount(), S32, setFocus(), LLControlGroup::setString(), sInstance, and USERSERVER_NONE.

Referenced by LLPanelLogin().

void LLPanelLogin::onClickNewAccount ( void  )  [static, private]

Definition at line 785 of file llpanellogin.cpp.

References LLViewerWindow::alertXml(), gHideLinks, gViewerWindow, and newAccountAlertCallback().

Referenced by LLPanelLogin(), and onClickConnect().

void LLPanelLogin::onClickQuit ( void  )  [static, private]

Definition at line 800 of file llpanellogin.cpp.

References gResponsePtr, mCallback, mCallbackData, and sInstance.

Referenced by LLPanelLogin().

void LLPanelLogin::onClickVersion ( void  )  [static, private]

Definition at line 814 of file llpanellogin.cpp.

References NULL, and LLFloaterAbout::show().

Referenced by LLPanelLogin().

void LLPanelLogin::onPassKey ( LLLineEditor caller,
void user_data 
) [static, private]

Definition at line 820 of file llpanellogin.cpp.

References FALSE, LLKeyboard::getKeyDown(), gKeyboard, KEY_CAPSLOCK, sCapslockDidNotification, LLNotifyBox::showXml(), and TRUE.

Referenced by LLPanelLogin().

void LLPanelLogin::refreshLocation ( bool  force_visible  )  [static]

Definition at line 681 of file llpanellogin.cpp.

References LLPanel::childSetVisible(), LLControlGroup::getBOOL(), LLUICtrlFactory::getComboBoxByName(), gSavedSettings, LLURLSimString::mSimString, LLComboBox::setCurrentByIndex(), LLComboBox::setTextEntry(), LLURLSimString::sInstance, sInstance, and TRUE.

Referenced by LLPanelGeneral::clickShowStartLocation(), LLURLDispatcherImpl::dispatchRegion(), LLPanelLogin(), and LLURLSimString::setString().

void LLPanelLogin::setFields ( const std::string &  firstname,
const std::string &  lastname,
const std::string &  password,
BOOL  remember 
) [static]

Definition at line 550 of file llpanellogin.cpp.

References LLPanel::childSetText(), LLPanel::childSetValue(), llendl, llwarns, MD5HEX_STR_SIZE, mIncomingPassword, mMungedPassword, and sInstance.

Referenced by idle_startup().

void LLPanelLogin::setFocus ( BOOL  b  )  [virtual]

Reimplemented from LLPanel.

Definition at line 482 of file llpanellogin.cpp.

References giveFocus(), LLUICtrl::hasFocus(), and LLPanel::setFocus().

Referenced by newAccountAlertCallback(), onClickConnect(), and show().

void LLPanelLogin::setSiteIsAlive ( bool  alive  ) 

Definition at line 306 of file llpanellogin.cpp.

References LLPanel::childGetValue(), FALSE, LLUICtrlFactory::getWebBrowserCtrlByName(), mHtmlAvailable, and TRUE.

Referenced by LLIamHereLogin::error(), and LLIamHereLogin::result().

void LLPanelLogin::show ( const LLRect rect,
BOOL  show_server,
void(*)(S32 option, void *user_data)  callback,
void callback_data 
) [static]

Definition at line 532 of file llpanellogin.cpp.

References LLFocusMgr::getKeyboardFocus(), gFocusMgr, LLPanelLogin(), LLFocusMgr::setDefaultKeyboardFocus(), setFocus(), sInstance, and TRUE.

Referenced by login_show().


Member Data Documentation

void(* LLPanelLogin::mCallback)(S32 option, void *userdata) [private]

Referenced by onClickConnect(), and onClickQuit().

void* LLPanelLogin::mCallbackData [private]

Definition at line 97 of file llpanellogin.h.

Referenced by onClickQuit().

BOOL LLPanelLogin::mHtmlAvailable [private]

Definition at line 104 of file llpanellogin.h.

Referenced by draw(), LLPanelLogin(), and setSiteIsAlive().

std::string LLPanelLogin::mIncomingPassword [private]

Definition at line 99 of file llpanellogin.h.

Referenced by setFields().

LLPointer<LLViewerImage> LLPanelLogin::mLogoImage [private]

Definition at line 94 of file llpanellogin.h.

Referenced by draw(), LLPanelLogin(), and ~LLPanelLogin().

std::string LLPanelLogin::mMungedPassword [private]

Definition at line 100 of file llpanellogin.h.

Referenced by getFields(), and setFields().

BOOL LLPanelLogin::sCapslockDidNotification = FALSE [static, private]

Definition at line 103 of file llpanellogin.h.

Referenced by onPassKey().

LLPanelLogin * LLPanelLogin::sInstance = NULL [static, private]

Definition at line 102 of file llpanellogin.h.

Referenced by addServer(), close(), getFields(), getLocation(), getServer(), giveFocus(), LLPanelLogin(), newAccountAlertCallback(), onClickConnect(), onClickQuit(), refreshLocation(), setFields(), show(), and ~LLPanelLogin().


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