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 apply ()
void applyResolution ()
void cancel ()

Static Protected Member Functions

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 fractionFromDecimal (F32 decimal_val, S32 &numerator, S32 &denominator)

Protected Attributes

LLComboBox * mCtrlFullScreen
LLCheckBoxCtrl * mCtrlWindowed
LLCheckBoxCtrl * mCtrlAutoDetectAspect
LLComboBox * mCtrlAspectRatio
BOOL mFSAutoDetectAspect
F32 mUIScaleFactor
BOOL mUIAutoScale
BOOL mFirstPersonAvatarVisible
F32 mRenderFarClip
F32 mAspectRatio

Friends

class LLPreferenceCore

Detailed Description

Definition at line 45 of file llpaneldisplay.h.


Constructor & Destructor Documentation

LLPanelDisplay::LLPanelDisplay (  ) 

Definition at line 86 of file llpaneldisplay.cpp.

References LLUICtrlFactory::buildPanel(), and gUICtrlFactory.

LLPanelDisplay::~LLPanelDisplay (  )  [virtual]

Definition at line 208 of file llpaneldisplay.cpp.

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


Member Function Documentation

void LLPanelDisplay::apply (  ) 

Definition at line 243 of file llpaneldisplay.cpp.

References applyResolution().

Referenced by LLPreferenceCore::apply().

void LLPanelDisplay::applyResolution (  ) 

Definition at line 253 of file llpaneldisplay.cpp.

References ASPECT_RATIO_STR_LEN, LLSD::asReal(), LLViewerWindow::changeDisplaySettings(), f, FALSE, gCamera, LLCheckBoxCtrl::get(), LLControlGroup::getBOOL(), LLComboBox::getCurrentIndex(), LLViewerWindow::getDisplayAspectRatio(), LLControlGroup::getS32(), LLComboBox::getSimple(), LLStartUp::getStartupState(), LLWindow::getSupportedResolutions(), LLViewerWindow::getTargetWindow(), LLComboBox::getValue(), LLViewerWindow::getWindow(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gSavedSettings, gViewerWindow, gWorldPointer, llclamp(), llendl, llerrs, mAspectRatio, mCtrlAspectRatio, mCtrlFullScreen, mCtrlWindowed, LLWindow::LLWindowResolution::mHeight, NULL, refresh(), LLViewerWindow::reshape(), S32, send_agent_update(), LLCamera::setAspect(), LLControlGroup::setF32(), LLWindow::setNativeAspectRatio(), STATE_STARTED, TRUE, and LLLocale::USER_LOCALE.

Referenced by apply().

void LLPanelDisplay::cancel (  ) 

Definition at line 234 of file llpaneldisplay.cpp.

References gSavedSettings, mFirstPersonAvatarVisible, mFSAutoDetectAspect, mRenderFarClip, mUIAutoScale, mUIScaleFactor, LLControlGroup::setBOOL(), and LLControlGroup::setF32().

Referenced by LLPreferenceCore::cancel().

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

Definition at line 430 of file llpaneldisplay.cpp.

References f, and llround().

Referenced by onCommitAutoDetectAspect(), and postBuild().

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

Definition at line 248 of file llpaneldisplay.cpp.

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

Definition at line 385 of file llpaneldisplay.cpp.

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

Referenced by postBuild().

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

Definition at line 368 of file llpaneldisplay.cpp.

References FALSE, mCtrlFullScreen, LLComboBox::setEnabled(), and TRUE.

Referenced by postBuild().

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

Definition at line 414 of file llpaneldisplay.cpp.

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

Referenced by postBuild().

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

Definition at line 422 of file llpaneldisplay.cpp.

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

Referenced by postBuild().

BOOL LLPanelDisplay::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 91 of file llpaneldisplay.cpp.

References LLComboBox::add(), ADD_BOTTOM, ADD_TOP, LLPanel::checkRequirements(), LLPanel::childGetText(), FALSE, fractionFromDecimal(), LLControlGroup::getBOOL(), LLUICtrlFactory::getCheckBoxByName(), LLUICtrlFactory::getComboBoxByName(), LLViewerWindow::getDisplayAspectRatio(), LLControlGroup::getF32(), LLWindow::getSupportedResolutions(), LLViewerWindow::getTargetWindow(), LLViewerWindow::getWindow(), gSavedSettings, gViewerWindow, i, llformat(), mAspectRatio, mCtrlAspectRatio, mCtrlAutoDetectAspect, mCtrlFullScreen, mCtrlWindowed, onCommitAutoDetectAspect(), onCommitWindowedMode(), onKeystrokeAspectRatio(), onSelectAspectRatio(), refresh(), LLPanel::requires(), S32, LLCheckBoxCtrl::set(), LLUIString::setArg(), LLUICtrl::setCallbackUserData(), LLUICtrl::setCommitCallback(), LLComboBox::setCurrentByIndex(), LLComboBox::setEnabled(), LLComboBox::setTextEntryCallback(), TRUE, WIDGET_TYPE_CHECKBOX, WIDGET_TYPE_COMBO_BOX, WIDGET_TYPE_SLIDER, WIDGET_TYPE_SPINNER, and WIDGET_TYPE_TEXT_BOX.

void LLPanelDisplay::refresh (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 217 of file llpaneldisplay.cpp.

References LLControlGroup::getBOOL(), LLControlGroup::getF32(), gSavedSettings, mFirstPersonAvatarVisible, mFSAutoDetectAspect, mRenderFarClip, mUIAutoScale, mUIScaleFactor, and LLPanel::refresh().

Referenced by applyResolution(), and postBuild().


Friends And Related Function Documentation

friend class LLPreferenceCore [friend]

Definition at line 48 of file llpaneldisplay.h.


Member Data Documentation

F32 LLPanelDisplay::mAspectRatio [protected]

Definition at line 71 of file llpaneldisplay.h.

Referenced by applyResolution(), and postBuild().

LLComboBox* LLPanelDisplay::mCtrlAspectRatio [protected]

Definition at line 64 of file llpaneldisplay.h.

Referenced by applyResolution(), onCommitAutoDetectAspect(), postBuild(), and ~LLPanelDisplay().

LLCheckBoxCtrl* LLPanelDisplay::mCtrlAutoDetectAspect [protected]

Definition at line 63 of file llpaneldisplay.h.

Referenced by onKeystrokeAspectRatio(), onSelectAspectRatio(), and postBuild().

LLComboBox* LLPanelDisplay::mCtrlFullScreen [protected]

Definition at line 61 of file llpaneldisplay.h.

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

LLCheckBoxCtrl* LLPanelDisplay::mCtrlWindowed [protected]

Definition at line 62 of file llpaneldisplay.h.

Referenced by applyResolution(), and postBuild().

BOOL LLPanelDisplay::mFirstPersonAvatarVisible [protected]

Definition at line 69 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

BOOL LLPanelDisplay::mFSAutoDetectAspect [protected]

Definition at line 66 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

F32 LLPanelDisplay::mRenderFarClip [protected]

Definition at line 70 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

BOOL LLPanelDisplay::mUIAutoScale [protected]

Definition at line 68 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().

F32 LLPanelDisplay::mUIScaleFactor [protected]

Definition at line 67 of file llpaneldisplay.h.

Referenced by cancel(), and refresh().


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