#include <lldebugmessagebox.h>
Inheritance diagram for LLDebugVarMessageBox:
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 52 of file lldebugmessagebox.cpp.
References LLView::addChild(), f, 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] |
void LLDebugVarMessageBox::draw | ( | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 219 of file lldebugmessagebox.cpp.
References clamp_rescale(), LLFloater::draw(), f, LLFrameTimer::getElapsedSeconds(), 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.
Definition at line 207 of file lldebugmessagebox.cpp.
References mAnimate, mAnimateButton, and LLButton::setToggleState().
Referenced by LLDebugVarMessageBox().
void LLDebugVarMessageBox::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 214 of file lldebugmessagebox.cpp.
References FALSE, and LLFloater::setVisible().
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 137 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.
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, | |
S32 * | var, | |||
S32 | max_value = 255 , |
|||
S32 | increment = 1 | |||
) | [static] |
Definition at line 120 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.
void LLDebugVarMessageBox::show | ( | const std::string & | title, | |
F32 * | var, | |||
F32 | max_value = 100.f , |
|||
F32 | increment = 0.1f | |||
) | [static] |
Definition at line 103 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.
LLDebugVarMessageBox * LLDebugVarMessageBox::show | ( | const std::string & | title, | |
EDebugVarType | var_type, | |||
void * | var | |||
) | [static, protected] |
Definition at line 162 of file lldebugmessagebox.cpp.
References LLView::addChild(), gFloaterView, LLDebugVarMessageBox(), mTitle, LLFloater::open(), LLView::reshape(), and sInstances.
Referenced by show().
Definition at line 180 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.
BOOL LLDebugVarMessageBox::mAnimate [protected] |
LLButton* LLDebugVarMessageBox::mAnimateButton [protected] |
Definition at line 87 of file lldebugmessagebox.h.
Referenced by LLDebugVarMessageBox(), and onAnimateClicked().
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().
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().
void* LLDebugVarMessageBox::mVarData [protected] |
EDebugVarType LLDebugVarMessageBox::mVarType [protected] |
std::map< LLString, LLDebugVarMessageBox * > LLDebugVarMessageBox::sInstances [static, protected] |
---------------------------------------------------------------------------- Class LLDebugVarMessageBox ----------------------------------------------------------------------------
Definition at line 92 of file lldebugmessagebox.h.
Referenced by show(), and ~LLDebugVarMessageBox().