LLFloaterHardwareSettings Class Reference

Menuing system for all of windlight's functionality. More...

#include <llfloaterhardwaresettings.h>

Inheritance diagram for LLFloaterHardwareSettings:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterHardwareSettings:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFloaterHardwareSettings ()
virtual ~LLFloaterHardwareSettings ()
virtual BOOL postBuild ()
void initCallbacks (void)
 initialize all the callbacks for the menu
virtual void onClose (bool app_quitting)
 stuff to do on exit
void refresh ()
 sync up menu with parameters
void apply ()
 Apply the changed values.
void cancel ()
 don't apply the changed values
void refreshEnabledState ()
 refresh the enabled values

Static Public Member Functions

static LLFloaterHardwareSettingsinstance ()
 one and one instance only
static void onClickHelp (void *data)
 callback for the menus help button
static void onBtnOK (void *userdata)
 OK button.
static void show ()
 show off our menu
static bool isOpen ()
 return if the menu exists or not

Protected Attributes

LLSliderCtrlmCtrlVideoCardMem
BOOL mUseVBO
BOOL mUseAniso
U32 mFSAASamples
F32 mGamma
S32 mVideoCardMem
F32 mFogRatio
BOOL mProbeHardwareOnStartup

Static Private Attributes

static LLFloaterHardwareSettingssHardwareSettings = NULL

Friends

class LLPreferenceCore


Detailed Description

Menuing system for all of windlight's functionality.

Definition at line 40 of file llfloaterhardwaresettings.h.


Constructor & Destructor Documentation

LLFloaterHardwareSettings::LLFloaterHardwareSettings (  ) 

Definition at line 50 of file llfloaterhardwaresettings.cpp.

References LLUICtrlFactory::buildFloater(), LLSingleton< LLUICtrlFactory >::getInstance(), and initCallbacks().

Referenced by instance().

Here is the call graph for this function:

Here is the caller graph for this function:

LLFloaterHardwareSettings::~LLFloaterHardwareSettings (  )  [virtual]

Definition at line 58 of file llfloaterhardwaresettings.cpp.


Member Function Documentation

BOOL LLFloaterHardwareSettings::postBuild ( void   )  [virtual]

Reimplemented from LLPanel.

Definition at line 154 of file llfloaterhardwaresettings.cpp.

References LLPanel::childSetAction(), onBtnOK(), refresh(), and TRUE.

Here is the call graph for this function:

void LLFloaterHardwareSettings::initCallbacks ( void   ) 

initialize all the callbacks for the menu

Definition at line 68 of file llfloaterhardwaresettings.cpp.

Referenced by LLFloaterHardwareSettings().

Here is the caller graph for this function:

LLFloaterHardwareSettings * LLFloaterHardwareSettings::instance ( void   )  [static]

one and one instance only

Definition at line 111 of file llfloaterhardwaresettings.cpp.

References LLFloater::close(), LLFloaterHardwareSettings(), and sHardwareSettings.

Referenced by LLPreferenceCore::apply(), LLPreferenceCore::cancel(), LLPreferenceCore::refreshEnabledGraphics(), and show().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterHardwareSettings::onClickHelp ( void *  data  )  [static]

callback for the menus help button

Definition at line 62 of file llfloaterhardwaresettings.cpp.

References LLViewerWindow::alertXml(), and gViewerWindow.

Here is the call graph for this function:

void LLFloaterHardwareSettings::onBtnOK ( void *  userdata  )  [static]

OK button.

Definition at line 209 of file llfloaterhardwaresettings.cpp.

References apply(), and LLFloater::close().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterHardwareSettings::show (  )  [static]

show off our menu

Definition at line 120 of file llfloaterhardwaresettings.cpp.

References LLFloater::center(), instance(), LLFloater::open(), and refresh().

Referenced by LLPanelDisplay::onOpenHardwareSettings().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLFloaterHardwareSettings::isOpen ( void   )  [static]

return if the menu exists or not

Definition at line 133 of file llfloaterhardwaresettings.cpp.

References NULL, and sHardwareSettings.

void LLFloaterHardwareSettings::onClose ( bool  app_quitting  )  [virtual]

stuff to do on exit

Reimplemented from LLFloater.

Definition at line 143 of file llfloaterhardwaresettings.cpp.

References FALSE, LLFloater::setVisible(), and sHardwareSettings.

Here is the call graph for this function:

void LLFloaterHardwareSettings::refresh (  )  [virtual]

sync up menu with parameters

Reimplemented from LLPanel.

Definition at line 74 of file llfloaterhardwaresettings.cpp.

References LLPanel::childSetValue(), LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLControlGroup::getS32(), LLControlGroup::getU32(), gSavedSettings, mFogRatio, mFSAASamples, mGamma, mProbeHardwareOnStartup, mUseAniso, mUseVBO, mVideoCardMem, LLPanel::refresh(), and refreshEnabledState().

Referenced by apply(), postBuild(), and show().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterHardwareSettings::apply (  ) 

void LLFloaterHardwareSettings::cancel (  ) 

don't apply the changed values

Definition at line 195 of file llfloaterhardwaresettings.cpp.

References LLFloater::close(), gSavedSettings, mFogRatio, mFSAASamples, mGamma, mProbeHardwareOnStartup, mUseAniso, mUseVBO, mVideoCardMem, LLControlGroup::setBOOL(), LLControlGroup::setF32(), LLControlGroup::setS32(), and LLControlGroup::setU32().

Referenced by LLPreferenceCore::cancel().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterHardwareSettings::refreshEnabledState (  ) 


Friends And Related Function Documentation

friend class LLPreferenceCore [friend]

Definition at line 42 of file llfloaterhardwaresettings.h.


Member Data Documentation

Definition at line 87 of file llfloaterhardwaresettings.h.

Definition at line 89 of file llfloaterhardwaresettings.h.

Referenced by cancel(), and refresh().

Definition at line 90 of file llfloaterhardwaresettings.h.

Referenced by cancel(), and refresh().

Definition at line 91 of file llfloaterhardwaresettings.h.

Referenced by cancel(), and refresh().

Definition at line 92 of file llfloaterhardwaresettings.h.

Referenced by cancel(), and refresh().

Definition at line 93 of file llfloaterhardwaresettings.h.

Referenced by cancel(), and refresh().

Definition at line 94 of file llfloaterhardwaresettings.h.

Referenced by cancel(), and refresh().

Definition at line 95 of file llfloaterhardwaresettings.h.

Referenced by cancel(), and refresh().

Definition at line 99 of file llfloaterhardwaresettings.h.

Referenced by instance(), isOpen(), and onClose().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:45:42 2008 for SecondLife by  doxygen 1.5.5