LLPanelDisplay Class Reference

#include <llpaneldisplay.h>

Inheritance diagram for LLPanelDisplay:

Inheritance graph
[legend]
Collaboration diagram for LLPanelDisplay:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLPanelDisplay ()
virtual ~LLPanelDisplay ()
virtual BOOL postBuild ()
void refresh ()
void refreshEnabledState ()
void disableUnavailableSettings ()
void setHiddenGraphicsState (bool isHidden)
void apply ()
void applyResolution ()
void applyWindowSize ()
void cancel ()

Protected Member Functions

void initWindowSizeControls ()
bool extractWindowSizeFromString (const char *sInput, U32 &width, U32 &height)

Static Protected Member Functions

static void setGraphicsSettings (LLControlGroup &group)
static void createGroup ()
static void onChangeQuality (LLUICtrl *ctrl, void *data)
static void onChangeCustom (LLUICtrl *ctrl, void *data)
static void onOpenHelp (void *data)
static void onOpenHardwareSettings (void *data)
static void onCommitAutoDetectAspect (LLUICtrl *ctrl, void *data)
static void onKeystrokeAspectRatio (LLLineEditor *caller, void *user_data)
static void onSelectAspectRatio (LLUICtrl *, void *)
static void onCommitWindowedMode (LLUICtrl *ctrl, void *data)
static void onApplyResolution (LLUICtrl *ctrl, void *data)
static void updateSliderText (LLUICtrl *ctrl, void *user_data)
static void updateMeterText (LLUICtrl *ctrl, void *user_data)
static void setHardwareDefaults (void *data)
 callback for defaults
static void onVertexShaderEnable (LLUICtrl *, void *)
static void fractionFromDecimal (F32 decimal_val, S32 &numerator, S32 &denominator)

Protected Attributes

LLComboBoxmCtrlFullScreen
LLCheckBoxCtrlmCtrlAutoDetectAspect
LLComboBoxmCtrlAspectRatio
LLCheckBoxCtrlmCtrlWindowed
LLComboBoxmCtrlWindowSize
LLSliderCtrlmCtrlSliderQuality
 performance radio group
LLCheckBoxCtrlmCtrlCustomSettings
LLViewBordermGraphicsBorder
LLSliderCtrlmCtrlDrawDistance
LLSliderCtrlmCtrlLODFactor
LLSliderCtrlmCtrlFlexFactor
LLSliderCtrlmCtrlTreeFactor
LLSliderCtrlmCtrlAvatarFactor
LLSliderCtrlmCtrlTerrainFactor
LLSliderCtrlmCtrlSkyFactor
LLSliderCtrlmCtrlMaxParticle
LLSliderCtrlmCtrlPostProcess
LLCheckBoxCtrlmCtrlBumpShiny
LLCheckBoxCtrlmCtrlReflections
LLCheckBoxCtrlmCtrlWindLight
LLCheckBoxCtrlmCtrlAvatarVP
LLCheckBoxCtrlmCtrlShaderEnable
LLCheckBoxCtrlmCtrlAvatarImpostors
LLCheckBoxCtrlmCtrlAvatarCloth
LLRadioGroupmRadioLightingDetail2
LLRadioGroupmRadioTerrainDetail
LLRadioGroupmRadioReflectionDetail
LLTextBoxmAspectRatioLabel1
LLTextBoxmDisplayResLabel
LLTextEditormFullScreenInfo
LLTextBoxmWindowSizeLabel
LLTextBoxmShaderText
LLTextBoxmReflectionText
LLTextBoxmAvatarText
LLTextBoxmTerrainText
LLTextBoxmLightingText
LLTextBoxmDrawDistanceMeterText1
LLTextBoxmDrawDistanceMeterText2
LLTextBoxmMeshDetailText
LLTextBoxmLODFactorText
LLTextBoxmFlexFactorText
LLTextBoxmTreeFactorText
LLTextBoxmAvatarFactorText
LLTextBoxmTerrainFactorText
LLTextBoxmSkyFactorText
LLTextBoxmPostProcessText
BOOL mFSAutoDetectAspect
F32 mAspectRatio
S32 mQualityPerformance
BOOL mCustomSettings
BOOL mBumpShiny
BOOL mShaderEnable
BOOL mWindLight
BOOL mReflections
BOOL mAvatarVP
S32 mReflectionDetail
BOOL mAvatarImpostors
BOOL mAvatarCloth
S32 mAvatarMode
S32 mLightingDetail
S32 mTerrainDetail
F32 mRenderFarClip
F32 mPrimLOD
F32 mFlexLOD
F32 mTreeLOD
F32 mAvatarLOD
F32 mTerrainLOD
S32 mSkyLOD
S32 mParticleCount
S32 mPostProcess

Friends

class LLPreferenceCore


Detailed Description

Definition at line 58 of file llpaneldisplay.h.


Constructor & Destructor Documentation

LLPanelDisplay::LLPanelDisplay (  ) 

Definition at line 92 of file llpaneldisplay.cpp.

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

Here is the call graph for this function:

LLPanelDisplay::~LLPanelDisplay (  )  [virtual]

Definition at line 357 of file llpaneldisplay.cpp.

References LLComboBox::getItemCount(), i, mCtrlAspectRatio, mCtrlWindowSize, S32, and LLComboBox::setCurrentByIndex().

Here is the call graph for this function:


Member Function Documentation

BOOL LLPanelDisplay::postBuild ( void   )  [virtual]

Reimplemented from LLPanel.

Definition at line 97 of file llpaneldisplay.cpp.

References LLComboBox::add(), ADD_BOTTOM, ADD_TOP, LLPanel::childSetAction(), FALSE, fractionFromDecimal(), LLControlGroup::getBOOL(), LLViewerWindow::getDisplayAspectRatio(), LLControlGroup::getF32(), LLWindow::getSupportedResolutions(), LLViewerWindow::getTargetWindow(), LLPanel::getUIString(), LLViewerWindow::getWindow(), gSavedSettings, gViewerWindow, i, initWindowSizeControls(), llformat(), mAspectRatio, mAspectRatioLabel1, mAvatarFactorText, mAvatarText, mCtrlAspectRatio, mCtrlAutoDetectAspect, mCtrlAvatarCloth, mCtrlAvatarFactor, mCtrlAvatarImpostors, mCtrlAvatarVP, mCtrlBumpShiny, mCtrlCustomSettings, mCtrlDrawDistance, mCtrlFlexFactor, mCtrlFullScreen, mCtrlLODFactor, mCtrlMaxParticle, mCtrlPostProcess, mCtrlReflections, mCtrlShaderEnable, mCtrlSkyFactor, mCtrlSliderQuality, mCtrlTerrainFactor, mCtrlTreeFactor, mCtrlWindLight, mCtrlWindowed, mDisplayResLabel, mDrawDistanceMeterText1, mDrawDistanceMeterText2, mFlexFactorText, mFullScreenInfo, mGraphicsBorder, mLightingText, mLODFactorText, mMeshDetailText, mPostProcessText, mRadioLightingDetail2, mRadioReflectionDetail, mRadioTerrainDetail, mReflectionText, mShaderText, mSkyFactorText, mTerrainFactorText, mTerrainText, mTreeFactorText, NULL, onChangeCustom(), onChangeQuality(), onCommitAutoDetectAspect(), onCommitWindowedMode(), onKeystrokeAspectRatio(), onOpenHardwareSettings(), onOpenHelp(), onSelectAspectRatio(), onVertexShaderEnable(), refresh(), S32, LLCheckBoxCtrl::set(), LLUIString::setArg(), LLUICtrl::setCallbackUserData(), LLUICtrl::setCommitCallback(), LLComboBox::setCurrentByIndex(), setHardwareDefaults(), LLSliderCtrl::setSliderMouseUpCallback(), LLComboBox::setTextEntryCallback(), LLView::setVisible(), TRUE, updateMeterText(), and updateSliderText().

Here is the call graph for this function:

void LLPanelDisplay::refresh (  )  [virtual]

void LLPanelDisplay::refreshEnabledState (  ) 

void LLPanelDisplay::disableUnavailableSettings (  ) 

Definition at line 503 of file llpaneldisplay.cpp.

References FALSE, LLSingleton< LLFeatureManager >::getInstance(), mCtrlAvatarCloth, mCtrlAvatarImpostors, mCtrlAvatarVP, mCtrlReflections, mCtrlShaderEnable, mCtrlWindLight, LLCheckBoxCtrl::setEnabled(), and LLCheckBoxCtrl::setValue().

Referenced by refreshEnabledState().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::setHiddenGraphicsState ( bool  isHidden  ) 

void LLPanelDisplay::apply (  ) 

Definition at line 695 of file llpaneldisplay.cpp.

References applyResolution(), applyWindowSize(), LLCheckBoxCtrl::get(), and mCtrlWindowed.

Referenced by LLPreferenceCore::apply().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::applyResolution (  ) 

void LLPanelDisplay::applyWindowSize (  ) 

Definition at line 882 of file llpaneldisplay.cpp.

References LLSD::asString(), extractWindowSizeFromString(), LLComboBox::getCurrentIndex(), LLComboBox::getValue(), LLView::getVisible(), mCtrlWindowSize, and LLViewerWindow::movieSize().

Referenced by apply().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::cancel (  ) 

void LLPanelDisplay::initWindowSizeControls (  )  [protected]

Definition at line 326 of file llpaneldisplay.cpp.

References ADD_TOP, extractWindowSizeFromString(), LLPanel::getUIString(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gViewerWindow, i, llformat(), mCtrlWindowSize, mWindowSizeLabel, S32, and LLUIString::setArg().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLPanelDisplay::extractWindowSizeFromString ( const char *  sInput,
U32 width,
U32 height 
) [protected]

Definition at line 866 of file llpaneldisplay.cpp.

Referenced by applyWindowSize(), and initWindowSizeControls().

Here is the caller graph for this function:

static void LLPanelDisplay::setGraphicsSettings ( LLControlGroup group  )  [static, protected]

static void LLPanelDisplay::createGroup (  )  [static, protected]

void LLPanelDisplay::onChangeQuality ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 706 of file llpaneldisplay.cpp.

References LLSingleton< LLFeatureManager >::getInstance(), LLSliderCtrl::getValueF32(), NULL, refresh(), LLFloaterPreference::refreshEnabledGraphics(), and LLFeatureManager::setGraphicsLevel().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onChangeCustom ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 723 of file llpaneldisplay.cpp.

References LLFloaterPreference::refreshEnabledGraphics().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onOpenHelp ( void *  data  )  [static, protected]

Definition at line 728 of file llpaneldisplay.cpp.

References LLFloater::addDependentFloater(), LLViewerWindow::alertXml(), LLFloaterView::getParentFloater(), gFloaterView, and gViewerWindow.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onOpenHardwareSettings ( void *  data  )  [static, protected]

Definition at line 744 of file llpaneldisplay.cpp.

References LLFloaterHardwareSettings::show().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onCommitAutoDetectAspect ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 904 of file llpaneldisplay.cpp.

References fractionFromDecimal(), LLWindow::getNativeAspectRatio(), gSavedSettings, gViewerWindow, llformat(), mCtrlAspectRatio, LLViewerWindow::mWindow, S32, LLControlGroup::setF32(), LLComboBox::setLabel(), and LLWindow::setNativeAspectRatio().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onKeystrokeAspectRatio ( LLLineEditor caller,
void *  user_data 
) [static, protected]

Definition at line 938 of file llpaneldisplay.cpp.

References FALSE, mCtrlAutoDetectAspect, and LLCheckBoxCtrl::set().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onSelectAspectRatio ( LLUICtrl ,
void *  user_data 
) [static, protected]

Definition at line 946 of file llpaneldisplay.cpp.

References FALSE, mCtrlAutoDetectAspect, and LLCheckBoxCtrl::set().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onCommitWindowedMode ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 896 of file llpaneldisplay.cpp.

References refresh().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onApplyResolution ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 749 of file llpaneldisplay.cpp.

void LLPanelDisplay::updateSliderText ( LLUICtrl ctrl,
void *  user_data 
) [static, protected]

Definition at line 981 of file llpaneldisplay.cpp.

References LLSliderCtrl::getMaxValue(), LLSliderCtrl::getMinValue(), LLSliderCtrl::getValueF32(), llassert, NULL, and LLTextBox::setText().

Referenced by postBuild(), and refresh().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::updateMeterText ( LLUICtrl ctrl,
void *  user_data 
) [static, protected]

Definition at line 1012 of file llpaneldisplay.cpp.

References LLView::getChild(), LLSliderCtrl::getValueF32(), and LLView::setVisible().

Referenced by postBuild(), and setHiddenGraphicsState().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::setHardwareDefaults ( void *  data  )  [static, protected]

callback for defaults

Definition at line 975 of file llpaneldisplay.cpp.

References LLFeatureManager::applyRecommendedSettings(), LLSingleton< LLFeatureManager >::getInstance(), and LLFloaterPreference::refreshEnabledGraphics().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::onVertexShaderEnable ( LLUICtrl self,
void *  data 
) [static, protected]

Definition at line 970 of file llpaneldisplay.cpp.

References LLFloaterPreference::refreshEnabledGraphics().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelDisplay::fractionFromDecimal ( F32  decimal_val,
S32 numerator,
S32 denominator 
) [static, protected]

Definition at line 954 of file llpaneldisplay.cpp.

References llround().

Referenced by onCommitAutoDetectAspect(), and postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLPreferenceCore [friend]

Definition at line 61 of file llpaneldisplay.h.


Member Data Documentation

Definition at line 83 of file llpaneldisplay.h.

Referenced by applyResolution(), postBuild(), and refreshEnabledState().

Definition at line 87 of file llpaneldisplay.h.

Referenced by apply(), applyResolution(), postBuild(), and refreshEnabledState().

Definition at line 88 of file llpaneldisplay.h.

Referenced by applyWindowSize(), initWindowSizeControls(), and ~LLPanelDisplay().

performance radio group

Definition at line 91 of file llpaneldisplay.h.

Referenced by postBuild().

Definition at line 92 of file llpaneldisplay.h.

Referenced by postBuild().

Definition at line 95 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 97 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 98 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 99 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 100 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 101 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 102 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 103 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), refreshEnabledState(), and setHiddenGraphicsState().

Definition at line 104 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 105 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 107 of file llpaneldisplay.h.

Referenced by postBuild(), refreshEnabledState(), and setHiddenGraphicsState().

Definition at line 112 of file llpaneldisplay.h.

Referenced by disableUnavailableSettings(), postBuild(), and setHiddenGraphicsState().

Definition at line 114 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 116 of file llpaneldisplay.h.

Referenced by postBuild(), refreshEnabledState(), and setHiddenGraphicsState().

Definition at line 117 of file llpaneldisplay.h.

Referenced by postBuild(), refreshEnabledState(), and setHiddenGraphicsState().

Definition at line 119 of file llpaneldisplay.h.

Referenced by postBuild(), and refreshEnabledState().

Definition at line 120 of file llpaneldisplay.h.

Referenced by postBuild(), and refreshEnabledState().

Definition at line 121 of file llpaneldisplay.h.

Referenced by postBuild(), and refreshEnabledState().

Definition at line 122 of file llpaneldisplay.h.

Referenced by initWindowSizeControls(), and refreshEnabledState().

Definition at line 124 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 125 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 126 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 127 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 128 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 129 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 130 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 132 of file llpaneldisplay.h.

Referenced by postBuild(), and setHiddenGraphicsState().

Definition at line 133 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 134 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 135 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 136 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 137 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 138 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), refreshEnabledState(), and setHiddenGraphicsState().

Definition at line 139 of file llpaneldisplay.h.

Referenced by postBuild(), refresh(), and setHiddenGraphicsState().

Definition at line 141 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 142 of file llpaneldisplay.h.

Referenced by applyResolution(), cancel(), and postBuild().

Definition at line 146 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 147 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 149 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 150 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 151 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 152 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 153 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 155 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 157 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 158 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 159 of file llpaneldisplay.h.

Definition at line 160 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 161 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 163 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 164 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 165 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 166 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 167 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 168 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 169 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 170 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

Definition at line 171 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().


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

Generated on Fri May 16 08:56:09 2008 for SecondLife by  doxygen 1.5.5