#include <lldebugmessagebox.h>


Public Member Functions | |
| virtual void | onClose (bool app_quitting) |
| virtual void | draw () |
Static Public Member Functions | |
| static void | show (const std::string &title, F32 *var, F32 max_value=100.f, F32 increment=0.1f) |
| static void | show (const std::string &title, S32 *var, S32 max_value=255, S32 increment=1) |
| static void | show (const std::string &title, LLVector2 *var, LLVector2 max_value=LLVector2(100.f, 100.f), LLVector2 increment=LLVector2(0.1f, 0.1f)) |
| static void | show (const std::string &title, LLVector3 *var, LLVector3 max_value=LLVector3(100.f, 100.f, 100.f), LLVector3 increment=LLVector3(0.1f, 0.1f, 0.1f)) |
Protected Member Functions | |
| LLDebugVarMessageBox (const std::string &title, EDebugVarType var_type, void *var) | |
| ~LLDebugVarMessageBox () | |
Static Protected Member Functions | |
| static LLDebugVarMessageBox * | show (const std::string &title, EDebugVarType var_type, void *var) |
| static void | slider_changed (LLUICtrl *ctrl, void *user_data) |
| static void | onAnimateClicked (void *user_data) |
Protected Attributes | |
| EDebugVarType | mVarType |
| void * | mVarData |
| LLSliderCtrl * | mSlider1 |
| LLSliderCtrl * | mSlider2 |
| LLSliderCtrl * | mSlider3 |
| LLButton * | mAnimateButton |
| LLTextBox * | mText |
| LLString | mTitle |
| BOOL | mAnimate |
Static Protected Attributes | |
| static std::map< LLString, LLDebugVarMessageBox * > | sInstances |
Definition at line 61 of file lldebugmessagebox.h.
| LLDebugVarMessageBox::LLDebugVarMessageBox | ( | const std::string & | title, | |
| EDebugVarType | var_type, | |||
| void * | var | |||
| ) | [protected] |
Definition at line 51 of file lldebugmessagebox.cpp.
References LLView::addChild(), FALSE, llendl, llwarns, mAnimateButton, mSlider1, mSlider2, mSlider3, mText, NULL, onAnimateClicked(), S32, LLPanel::setDefaultBtn(), LLSliderCtrl::setPrecision(), TRUE, VAR_TYPE_F32, VAR_TYPE_S32, VAR_TYPE_VEC3, VX, VY, and VZ.
Referenced by show().


| LLDebugVarMessageBox::~LLDebugVarMessageBox | ( | ) | [protected] |
| LLDebugVarMessageBox * LLDebugVarMessageBox::show | ( | const std::string & | title, | |
| EDebugVarType | var_type, | |||
| void * | var | |||
| ) | [static, protected] |
Definition at line 161 of file lldebugmessagebox.cpp.
References LLView::addChild(), gFloaterView, LLDebugVarMessageBox(), mTitle, LLFloater::open(), LLFloater::reshape(), and sInstances.
Referenced by show().


| void LLDebugVarMessageBox::slider_changed | ( | LLUICtrl * | ctrl, | |
| void * | user_data | |||
| ) | [static, protected] |
Definition at line 179 of file lldebugmessagebox.cpp.
References LLSD::asInteger(), LLSD::asReal(), LLSliderCtrl::getValue(), llendl, llwarns, mSlider1, mSlider2, mSlider3, mVarData, mVarType, S32, LLVector3::setVec(), VAR_TYPE_F32, VAR_TYPE_S32, and VAR_TYPE_VEC3.
Referenced by draw(), and show().


| void LLDebugVarMessageBox::onAnimateClicked | ( | void * | user_data | ) | [static, protected] |
Definition at line 206 of file lldebugmessagebox.cpp.
References mAnimate, mAnimateButton, and LLButton::setToggleState().
Referenced by LLDebugVarMessageBox().


| void LLDebugVarMessageBox::show | ( | const std::string & | title, | |
| F32 * | var, | |||
| F32 | max_value = 100.f, |
|||
| F32 | increment = 0.1f | |||
| ) | [static] |
Definition at line 102 of file lldebugmessagebox.cpp.
References LLFocusMgr::childHasKeyboardFocus(), gFocusMgr, llabs(), mSlider1, LLUICtrl::setCallbackUserData(), LLUICtrl::setCommitCallback(), LLSliderCtrl::setIncrement(), LLSliderCtrl::setMaxValue(), LLSliderCtrl::setMinValue(), LLSliderCtrl::setValue(), show(), slider_changed(), and VAR_TYPE_F32.

| void LLDebugVarMessageBox::show | ( | const std::string & | title, | |
| S32 * | var, | |||
| S32 | max_value = 255, |
|||
| S32 | increment = 1 | |||
| ) | [static] |
Definition at line 119 of file lldebugmessagebox.cpp.
References LLFocusMgr::childHasKeyboardFocus(), gFocusMgr, llabs(), mSlider1, LLUICtrl::setCallbackUserData(), LLUICtrl::setCommitCallback(), LLSliderCtrl::setIncrement(), LLSliderCtrl::setMaxValue(), LLSliderCtrl::setMinValue(), LLSliderCtrl::setValue(), show(), slider_changed(), and VAR_TYPE_S32.

| static void LLDebugVarMessageBox::show | ( | const std::string & | title, | |
| LLVector2 * | var, | |||
| LLVector2 | max_value = LLVector2(100.f, 100.f), |
|||
| LLVector2 | increment = LLVector2(0.1f, 0.1f) | |||
| ) | [static] |
| void LLDebugVarMessageBox::show | ( | const std::string & | title, | |
| LLVector3 * | var, | |||
| LLVector3 | max_value = LLVector3(100.f, 100.f, 100.f), |
|||
| LLVector3 | increment = LLVector3(0.1f, 0.1f, 0.1f) | |||
| ) | [static] |
Definition at line 136 of file lldebugmessagebox.cpp.
References LLVector3::abs(), mSlider1, mSlider2, mSlider3, LLVector3::mV, LLUICtrl::setCallbackUserData(), LLUICtrl::setCommitCallback(), LLSliderCtrl::setIncrement(), LLSliderCtrl::setMaxValue(), LLSliderCtrl::setMinValue(), show(), slider_changed(), VAR_TYPE_VEC3, and VX.

| void LLDebugVarMessageBox::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 213 of file lldebugmessagebox.cpp.
References FALSE, and LLFloater::setVisible().

| void LLDebugVarMessageBox::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 218 of file lldebugmessagebox.cpp.
References clamp_rescale(), LLFloater::draw(), LLFrameTimer::getElapsedSeconds(), LLSliderCtrl::getMaxValue(), llendl, llformat(), llwarns, mAnimate, mSlider1, mSlider2, mSlider3, mText, LLVector3::mV, mVarData, mVarType, S32, LLTextBox::setText(), LLSliderCtrl::setValue(), slider_changed(), VAR_TYPE_F32, VAR_TYPE_S32, VAR_TYPE_VEC3, VX, VY, and VZ.

EDebugVarType LLDebugVarMessageBox::mVarType [protected] |
void* LLDebugVarMessageBox::mVarData [protected] |
LLSliderCtrl* LLDebugVarMessageBox::mSlider1 [protected] |
Definition at line 84 of file lldebugmessagebox.h.
Referenced by draw(), LLDebugVarMessageBox(), show(), and slider_changed().
LLSliderCtrl* LLDebugVarMessageBox::mSlider2 [protected] |
Definition at line 85 of file lldebugmessagebox.h.
Referenced by draw(), LLDebugVarMessageBox(), show(), and slider_changed().
LLSliderCtrl* LLDebugVarMessageBox::mSlider3 [protected] |
Definition at line 86 of file lldebugmessagebox.h.
Referenced by draw(), LLDebugVarMessageBox(), show(), and slider_changed().
LLButton* LLDebugVarMessageBox::mAnimateButton [protected] |
Definition at line 87 of file lldebugmessagebox.h.
Referenced by LLDebugVarMessageBox(), and onAnimateClicked().
LLTextBox* LLDebugVarMessageBox::mText [protected] |
Definition at line 88 of file lldebugmessagebox.h.
Referenced by draw(), and LLDebugVarMessageBox().
LLString LLDebugVarMessageBox::mTitle [protected] |
Definition at line 89 of file lldebugmessagebox.h.
Referenced by show(), and ~LLDebugVarMessageBox().
BOOL LLDebugVarMessageBox::mAnimate [protected] |
std::map< LLString, LLDebugVarMessageBox * > LLDebugVarMessageBox::sInstances [static, protected] |
---------------------------------------------------------------------------- Class LLDebugVarMessageBox ----------------------------------------------------------------------------
Definition at line 92 of file lldebugmessagebox.h.
Referenced by show(), and ~LLDebugVarMessageBox().
1.5.5