#include <llpaneldisplay.h>
Inheritance diagram for LLPanelDisplay:
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 |
Definition at line 45 of file llpaneldisplay.h.
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().
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.
Referenced by onCommitAutoDetectAspect(), and postBuild().
Definition at line 248 of file llpaneldisplay.cpp.
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().
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().
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().
friend class LLPreferenceCore [friend] |
Definition at line 48 of file llpaneldisplay.h.
F32 LLPanelDisplay::mAspectRatio [protected] |
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] |
BOOL LLPanelDisplay::mFirstPersonAvatarVisible [protected] |
BOOL LLPanelDisplay::mFSAutoDetectAspect [protected] |
F32 LLPanelDisplay::mRenderFarClip [protected] |
BOOL LLPanelDisplay::mUIAutoScale [protected] |
F32 LLPanelDisplay::mUIScaleFactor [protected] |