#include <llfloaterhardwaresettings.h>
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 LLFloaterHardwareSettings * | instance () |
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 | |
LLSliderCtrl * | mCtrlVideoCardMem |
BOOL | mUseVBO |
BOOL | mUseAniso |
U32 | mFSAASamples |
F32 | mGamma |
S32 | mVideoCardMem |
F32 | mFogRatio |
BOOL | mProbeHardwareOnStartup |
Static Private Attributes | |
static LLFloaterHardwareSettings * | sHardwareSettings = NULL |
Friends | |
class | LLPreferenceCore |
Definition at line 40 of file llfloaterhardwaresettings.h.
LLFloaterHardwareSettings::LLFloaterHardwareSettings | ( | ) |
Definition at line 50 of file llfloaterhardwaresettings.cpp.
References LLUICtrlFactory::buildFloater(), LLSingleton< LLUICtrlFactory >::getInstance(), and initCallbacks().
Referenced by instance().
LLFloaterHardwareSettings::~LLFloaterHardwareSettings | ( | ) | [virtual] |
Definition at line 58 of file llfloaterhardwaresettings.cpp.
BOOL LLFloaterHardwareSettings::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 154 of file llfloaterhardwaresettings.cpp.
References LLPanel::childSetAction(), onBtnOK(), refresh(), and TRUE.
void LLFloaterHardwareSettings::initCallbacks | ( | void | ) |
initialize all the callbacks for the menu
Definition at line 68 of file llfloaterhardwaresettings.cpp.
Referenced by LLFloaterHardwareSettings().
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().
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.
void LLFloaterHardwareSettings::onBtnOK | ( | void * | userdata | ) | [static] |
OK button.
Definition at line 209 of file llfloaterhardwaresettings.cpp.
References apply(), and LLFloater::close().
Referenced by postBuild().
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().
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.
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().
void LLFloaterHardwareSettings::apply | ( | ) |
Apply the changed values.
Definition at line 164 of file llfloaterhardwaresettings.cpp.
References LLSD::asInteger(), LLViewerWindow::changeDisplaySettings(), LLPanel::childGetValue(), LLControlGroup::getBOOL(), LLWindow::getFullscreen(), LLWindow::getSize(), LLStartUp::getStartupState(), LLControlGroup::getU32(), LLViewerWindow::getWindow(), gSavedSettings, gViewerWindow, refresh(), LLViewerWindow::restartDisplay(), LLControlGroup::setU32(), LLImageGL::sGlobalUseAnisotropic, and STATE_STARTED.
Referenced by LLPreferenceCore::apply(), and onBtnOK().
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().
void LLFloaterHardwareSettings::refreshEnabledState | ( | ) |
refresh the enabled values
Definition at line 90 of file llfloaterhardwaresettings.cpp.
References LLPipeline::canUseWindLightShaders(), LLPanel::childSetEnabled(), LLPanel::childSetMaxValue(), LLPanel::childSetMinValue(), FALSE, LLSingleton< LLFeatureManager >::getInstance(), LLViewerImageList::getMaxVideoRamSetting(), LLViewerImageList::getMinVideoRamSetting(), gGLManager, gPipeline, LLGLManager::mHasVertexBufferObject, and S32.
Referenced by refresh(), and LLPreferenceCore::refreshEnabledGraphics().
friend class LLPreferenceCore [friend] |
Definition at line 42 of file llfloaterhardwaresettings.h.
LLSliderCtrl* LLFloaterHardwareSettings::mCtrlVideoCardMem [protected] |
Definition at line 87 of file llfloaterhardwaresettings.h.
BOOL LLFloaterHardwareSettings::mUseVBO [protected] |
BOOL LLFloaterHardwareSettings::mUseAniso [protected] |
U32 LLFloaterHardwareSettings::mFSAASamples [protected] |
F32 LLFloaterHardwareSettings::mGamma [protected] |
S32 LLFloaterHardwareSettings::mVideoCardMem [protected] |
F32 LLFloaterHardwareSettings::mFogRatio [protected] |
LLFloaterHardwareSettings * LLFloaterHardwareSettings::sHardwareSettings = NULL [static, private] |
Definition at line 99 of file llfloaterhardwaresettings.h.
Referenced by instance(), isOpen(), and onClose().