LLDebugVarMessageBox Class Reference

#include <lldebugmessagebox.h>

Inheritance diagram for LLDebugVarMessageBox:

Inheritance graph
[legend]
Collaboration diagram for LLDebugVarMessageBox:

Collaboration graph
[legend]

List of all members.

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 LLDebugVarMessageBoxshow (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
LLSliderCtrlmSlider1
LLSliderCtrlmSlider2
LLSliderCtrlmSlider3
LLButtonmAnimateButton
LLTextBoxmText
LLString mTitle
BOOL mAnimate

Static Protected Attributes

static std::map< LLString,
LLDebugVarMessageBox * > 
sInstances


Detailed Description

Definition at line 61 of file lldebugmessagebox.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

LLDebugVarMessageBox::~LLDebugVarMessageBox (  )  [protected]

Definition at line 97 of file lldebugmessagebox.cpp.

References mTitle, and sInstances.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLDebugVarMessageBox::show ( const std::string &  title,
F32 var,
F32  max_value = 100.f,
F32  increment = 0.1f 
) [static]

void LLDebugVarMessageBox::show ( const std::string &  title,
S32 var,
S32  max_value = 255,
S32  increment = 1 
) [static]

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]

void LLDebugVarMessageBox::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 213 of file lldebugmessagebox.cpp.

References FALSE, and LLFloater::setVisible().

Here is the call graph for this function:

void LLDebugVarMessageBox::draw ( void   )  [virtual]


Member Data Documentation

Definition at line 82 of file lldebugmessagebox.h.

Referenced by draw(), and slider_changed().

void* LLDebugVarMessageBox::mVarData [protected]

Definition at line 83 of file lldebugmessagebox.h.

Referenced by draw(), and slider_changed().

Definition at line 84 of file lldebugmessagebox.h.

Referenced by draw(), LLDebugVarMessageBox(), show(), and slider_changed().

Definition at line 85 of file lldebugmessagebox.h.

Referenced by draw(), LLDebugVarMessageBox(), show(), and slider_changed().

Definition at line 86 of file lldebugmessagebox.h.

Referenced by draw(), LLDebugVarMessageBox(), show(), and slider_changed().

Definition at line 87 of file lldebugmessagebox.h.

Referenced by LLDebugVarMessageBox(), and onAnimateClicked().

Definition at line 88 of file lldebugmessagebox.h.

Referenced by draw(), and LLDebugVarMessageBox().

Definition at line 89 of file lldebugmessagebox.h.

Referenced by show(), and ~LLDebugVarMessageBox().

Definition at line 90 of file lldebugmessagebox.h.

Referenced by draw(), and onAnimateClicked().

---------------------------------------------------------------------------- Class LLDebugVarMessageBox ----------------------------------------------------------------------------

Definition at line 92 of file lldebugmessagebox.h.

Referenced by show(), and ~LLDebugVarMessageBox().


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

Generated on Fri May 16 08:43:41 2008 for SecondLife by  doxygen 1.5.5