LLFloaterPreference Class Reference

#include <llfloaterpreference.h>

Inheritance diagram for LLFloaterPreference:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterPreference:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFloaterPreference ()
 ~LLFloaterPreference ()
void apply ()
void cancel ()
virtual BOOL postBuild ()

Static Public Member Functions

static void show (void *)
static void updateUserInfo (const char *visibility, BOOL im_via_email, const char *email)

Protected Member Functions

void draw ()

Static Protected Member Functions

static void onClickAbout (void *)
static void onBtnOK (void *)
static void onBtnCancel (void *)
static void onBtnApply (void *)

Protected Attributes

LLPreferenceCoremPreferenceCore
LLButtonmAboutBtn
LLButtonmOKBtn
LLButtonmCancelBtn
LLButtonmApplyBtn

Static Protected Attributes

static LLFloaterPreferencesInstance = NULL

Detailed Description

Definition at line 101 of file llfloaterpreference.h.


Constructor & Destructor Documentation

LLFloaterPreference::LLFloaterPreference (  ) 

Definition at line 325 of file llfloaterpreference.cpp.

References LLUICtrlFactory::buildFloater(), and gUICtrlFactory.

Referenced by show().

LLFloaterPreference::~LLFloaterPreference (  ) 

Definition at line 366 of file llfloaterpreference.cpp.

References mPreferenceCore, NULL, and sInstance.


Member Function Documentation

void LLFloaterPreference::apply (  ) 

Definition at line 382 of file llfloaterpreference.cpp.

References LLPreferenceCore::apply(), and mPreferenceCore.

Referenced by onBtnApply(), and onBtnOK().

void LLFloaterPreference::cancel (  ) 

Definition at line 388 of file llfloaterpreference.cpp.

References LLPreferenceCore::cancel(), and mPreferenceCore.

Referenced by onBtnCancel().

void LLFloaterPreference::draw (  )  [protected, virtual]

Reimplemented from LLFloater.

Definition at line 373 of file llfloaterpreference.cpp.

References LLFloater::draw(), and LLView::getVisible().

void LLFloaterPreference::onBtnApply ( void  )  [static, protected]

Definition at line 458 of file llfloaterpreference.cpp.

References apply(), LLFocusMgr::getKeyboardFocus(), gFocusMgr, LLUICtrl::hasFocus(), and LLUICtrl::onCommit().

Referenced by postBuild().

void LLFloaterPreference::onBtnCancel ( void  )  [static, protected]

Definition at line 474 of file llfloaterpreference.cpp.

References cancel(), LLFloater::close(), LLFocusMgr::getKeyboardFocus(), gFocusMgr, LLUICtrl::hasFocus(), and LLUICtrl::onCommit().

Referenced by postBuild().

void LLFloaterPreference::onBtnOK ( void  )  [static, protected]

Definition at line 425 of file llfloaterpreference.cpp.

References apply(), LLFloater::canClose(), LLFloater::close(), CRASH_SETTINGS_FILE, FALSE, gCrashSettings, gDirUtilp, LLDir::getExpandedFilename(), LLFocusMgr::getKeyboardFocus(), gFocusMgr, gSavedSettings, gSettingsFileName, LLUICtrl::hasFocus(), LL_PATH_USER_SETTINGS, llendl, llinfos, LLUICtrl::onCommit(), LLControlGroup::saveToFile(), and TRUE.

Referenced by postBuild().

void LLFloaterPreference::onClickAbout ( void  )  [static, protected]

Definition at line 418 of file llfloaterpreference.cpp.

References NULL, and LLFloaterAbout::show().

Referenced by postBuild().

BOOL LLFloaterPreference::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 330 of file llfloaterpreference.cpp.

References LLPanel::checkRequirements(), FALSE, LLUICtrlFactory::getButtonByName(), LLPanel::getChildByName(), LLUICtrlFactory::getTabContainerByName(), mAboutBtn, mApplyBtn, mCancelBtn, mOKBtn, mPreferenceCore, onBtnApply(), onBtnCancel(), onBtnOK(), onClickAbout(), LLPanel::requires(), LLButton::setClickedCallback(), sInstance, TRUE, WIDGET_TYPE_BUTTON, and WIDGET_TYPE_TAB_CONTAINER.

void LLFloaterPreference::show ( void  )  [static]

Definition at line 395 of file llfloaterpreference.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_UserInfoRequest, LLMessageSystem::addUUIDFast(), LLFloater::center(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLUUID::isNull(), LLFloaterPreference(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLFloater::open(), LLAgent::sendReliableMessage(), and sInstance.

Referenced by LLShowFloater::handleEvent(), LLPanelLogin::handleKeyHere(), and LLPanelLogin::LLPanelLogin().

void LLFloaterPreference::updateUserInfo ( const char *  visibility,
BOOL  im_via_email,
const char *  email 
) [static]

Definition at line 491 of file llfloaterpreference.cpp.

References mPreferenceCore, LLPreferenceCore::setPersonalInfo(), and sInstance.

Referenced by process_user_info_reply().


Member Data Documentation

LLButton* LLFloaterPreference::mAboutBtn [protected]

Definition at line 123 of file llfloaterpreference.h.

Referenced by postBuild().

LLButton* LLFloaterPreference::mApplyBtn [protected]

Definition at line 126 of file llfloaterpreference.h.

Referenced by postBuild().

LLButton* LLFloaterPreference::mCancelBtn [protected]

Definition at line 125 of file llfloaterpreference.h.

Referenced by postBuild().

LLButton* LLFloaterPreference::mOKBtn [protected]

Definition at line 124 of file llfloaterpreference.h.

Referenced by postBuild().

LLPreferenceCore* LLFloaterPreference::mPreferenceCore [protected]

Definition at line 119 of file llfloaterpreference.h.

Referenced by apply(), cancel(), postBuild(), updateUserInfo(), and ~LLFloaterPreference().

LLFloaterPreference * LLFloaterPreference::sInstance = NULL [static, protected]

Definition at line 133 of file llfloaterpreference.h.

Referenced by postBuild(), show(), updateUserInfo(), and ~LLFloaterPreference().


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