LLFloaterWater Class Reference

Menuing system for all of windlight's functionality. More...

#include <llfloaterwater.h>

Inheritance diagram for LLFloaterWater:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterWater:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFloaterWater ()
virtual ~LLFloaterWater ()
void initCallbacks (void)
 initialize all
void initHelpBtn (const char *name, const char *xml_alert)
virtual void onClose (bool app_quitting)
 stuff to do on exit
void syncMenu ()
 sync up sliders with parameters

Static Public Member Functions

static LLFloaterWaterinstance ()
 one and one instance only
static void onClickHelp (void *data)
static void newPromptCallback (S32 option, const LLString &text, void *userData)
static void onColorControlRMoved (LLUICtrl *ctrl, void *userData)
 general purpose callbacks for dealing with color controllers
static void onColorControlGMoved (LLUICtrl *ctrl, void *userData)
static void onColorControlBMoved (LLUICtrl *ctrl, void *userData)
static void onColorControlAMoved (LLUICtrl *ctrl, void *userData)
static void onColorControlIMoved (LLUICtrl *ctrl, void *userData)
static void onVector3ControlXMoved (LLUICtrl *ctrl, void *userData)
static void onVector3ControlYMoved (LLUICtrl *ctrl, void *userData)
static void onVector3ControlZMoved (LLUICtrl *ctrl, void *userData)
static void onVector2ControlXMoved (LLUICtrl *ctrl, void *userData)
static void onVector2ControlYMoved (LLUICtrl *ctrl, void *userData)
static void onFloatControlMoved (LLUICtrl *ctrl, void *userData)
static void onExpFloatControlMoved (LLUICtrl *ctrl, void *userData)
static void onWaterFogColorMoved (LLUICtrl *ctrl, void *userData)
static void onBoolToggle (LLUICtrl *ctrl, void *userData)
static void onNormalMapPicked (LLUICtrl *ctrl, void *userData)
 handle if they choose a new normal map
static void onNewPreset (void *userData)
 when user hits the load preset button
static void onSavePreset (void *userData)
 when user hits the save preset button
static void saveAlertCallback (S32 option, void *userdata)
 prompts a user when overwriting a preset
static void onDeletePreset (void *userData)
 when user hits the save preset button
static void deleteAlertCallback (S32 option, void *userdata)
 prompts a user when overwriting a preset
static void onChangePresetName (LLUICtrl *ctrl, void *userData)
 what to do when you change the preset name
static void show ()
 show off our menu
static bool isOpen ()
 return if the menu exists or not

Static Private Attributes

static LLFloaterWatersWaterMenu = NULL
static std::set< std::string > sDefaultPresets


Detailed Description

Menuing system for all of windlight's functionality.

Definition at line 49 of file llfloaterwater.h.


Constructor & Destructor Documentation

LLFloaterWater::LLFloaterWater (  ) 

LLFloaterWater::~LLFloaterWater (  )  [virtual]

Definition at line 103 of file llfloaterwater.cpp.


Member Function Documentation

void LLFloaterWater::initCallbacks ( void   ) 

LLFloaterWater * LLFloaterWater::instance ( void   )  [static]

one and one instance only

Definition at line 298 of file llfloaterwater.cpp.

References LLFloaterWater(), LLFloater::open(), LLFloater::setFocus(), sWaterMenu, and TRUE.

Referenced by LLWorldWaterSettings::handleEvent(), onClickHelp(), show(), and LLWaterParamManager::update().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onClickHelp ( void *  data  )  [static]

Definition at line 174 of file llfloaterwater.cpp.

References LLFloater::addDependentFloater(), LLViewerWindow::alertXml(), LLFloaterView::getParentFloater(), gFloaterView, gViewerWindow, and instance().

Referenced by initHelpBtn().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::initHelpBtn ( const char *  name,
const char *  xml_alert 
)

Definition at line 190 of file llfloaterwater.cpp.

References LLPanel::childSetAction(), and onClickHelp().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::newPromptCallback ( S32  option,
const LLString text,
void *  userData 
) [static]

Definition at line 195 of file llfloaterwater.cpp.

References LLComboBox::add(), LLViewerWindow::alertXml(), LLView::getChild(), gViewerWindow, LLWaterParamManager::instance(), LLComboBox::setSelectedByValue(), LLComboBox::sortByName(), and sWaterMenu.

Referenced by onNewPreset().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onColorControlRMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

void LLFloaterWater::onColorControlGMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

void LLFloaterWater::onColorControlBMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

void LLFloaterWater::onColorControlAMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 477 of file llfloaterwater.cpp.

References LLSliderCtrl::getValueF32(), LLWaterParamManager::instance(), WaterColorControl::mA, LLWaterParamManager::propagateParameters(), and WaterColorControl::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onColorControlIMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

void LLFloaterWater::onVector3ControlXMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 338 of file llfloaterwater.cpp.

References LLSliderCtrl::getValueF32(), LLWaterParamManager::instance(), WaterVector3Control::mX, LLWaterParamManager::propagateParameters(), and WaterVector3Control::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onVector3ControlYMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 351 of file llfloaterwater.cpp.

References LLSliderCtrl::getValueF32(), LLWaterParamManager::instance(), WaterVector3Control::mY, LLWaterParamManager::propagateParameters(), and WaterVector3Control::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onVector3ControlZMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 364 of file llfloaterwater.cpp.

References LLSliderCtrl::getValueF32(), LLWaterParamManager::instance(), WaterVector3Control::mZ, LLWaterParamManager::propagateParameters(), and WaterVector3Control::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onVector2ControlXMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 378 of file llfloaterwater.cpp.

References LLSliderCtrl::getValueF32(), LLWaterParamManager::instance(), WaterVector2Control::mX, LLWaterParamManager::propagateParameters(), and WaterVector2Control::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onVector2ControlYMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 391 of file llfloaterwater.cpp.

References LLSliderCtrl::getValueF32(), LLWaterParamManager::instance(), WaterVector2Control::mY, LLWaterParamManager::propagateParameters(), and WaterVector2Control::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onFloatControlMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 563 of file llfloaterwater.cpp.

References LLSliderCtrl::getValueF32(), LLWaterParamManager::instance(), WaterFloatControl::mMult, WaterFloatControl::mX, LLWaterParamManager::propagateParameters(), and WaterFloatControl::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onExpFloatControlMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 550 of file llfloaterwater.cpp.

References LLSliderCtrl::getValueF32(), LLWaterParamManager::instance(), WaterExpFloatControl::mExp, LLWaterParamManager::propagateParameters(), LLWaterParamManager::setDensitySliderValue(), and WaterExpFloatControl::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onWaterFogColorMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 573 of file llfloaterwater.cpp.

References LLColorSwatchCtrl::get(), LLWaterParamManager::instance(), LLWaterParamManager::propagateParameters(), and WaterColorControl::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onBoolToggle ( LLUICtrl ctrl,
void *  userData 
) [static]

Definition at line 583 of file llfloaterwater.cpp.

References LLCheckBoxCtrl::get().

Here is the call graph for this function:

void LLFloaterWater::onNormalMapPicked ( LLUICtrl ctrl,
void *  userData 
) [static]

handle if they choose a new normal map

Definition at line 591 of file llfloaterwater.cpp.

References LLTextureCtrl::getImageAssetID(), LLWaterParamManager::instance(), and LLWaterParamManager::setNormalMapID().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onNewPreset ( void *  userData  )  [static]

when user hits the load preset button

Definition at line 598 of file llfloaterwater.cpp.

References LLViewerWindow::alertXmlEditText(), gViewerWindow, newPromptCallback(), and NULL.

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onSavePreset ( void *  userData  )  [static]

when user hits the save preset button

Definition at line 604 of file llfloaterwater.cpp.

References LLViewerWindow::alertXml(), LLControlGroup::getBOOL(), LLView::getChild(), LLComboBox::getSelectedItemLabel(), gSavedSettings, gViewerWindow, LLWaterParamManager::instance(), LLWaterParamManager::mCurParams, LLWaterParamSet::mName, saveAlertCallback(), sDefaultPresets, and sWaterMenu.

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::saveAlertCallback ( S32  option,
void *  userdata 
) [static]

prompts a user when overwriting a preset

Definition at line 630 of file llfloaterwater.cpp.

References LLWaterParamManager::instance(), LLWaterParamManager::mCurParams, LLWaterParamSet::mName, LLWaterParamManager::savePreset(), and LLWaterParamManager::setParamSet().

Referenced by onSavePreset().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::onDeletePreset ( void *  userData  )  [static]

when user hits the save preset button

Definition at line 647 of file llfloaterwater.cpp.

References LLViewerWindow::alertXml(), LLSD::asString(), deleteAlertCallback(), LLView::getChild(), LLComboBox::getSelectedValue(), gViewerWindow, and sWaterMenu.

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::deleteAlertCallback ( S32  option,
void *  userdata 
) [static]

void LLFloaterWater::onChangePresetName ( LLUICtrl ctrl,
void *  userData 
) [static]

what to do when you change the preset name

Definition at line 717 of file llfloaterwater.cpp.

References LLSD::asString(), LLComboBox::getSelectedValue(), LLComboBox::getSimple(), LLWaterParamManager::instance(), LLWaterParamManager::loadPreset(), sWaterMenu, and syncMenu().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWater::show (  )  [static]

show off our menu

Definition at line 308 of file llfloaterwater.cpp.

References instance(), LLFloater::open(), and syncMenu().

Referenced by LLWorldWaterSettings::handleEvent(), and LLFloaterEnvSettings::onOpenAdvancedWater().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLFloaterWater::isOpen ( void   )  [static]

return if the menu exists or not

Definition at line 320 of file llfloaterwater.cpp.

References NULL, and sWaterMenu.

Referenced by LLWorldWaterSettings::handleEvent(), and LLWaterParamManager::update().

Here is the caller graph for this function:

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

stuff to do on exit

Reimplemented from LLFloater.

Definition at line 329 of file llfloaterwater.cpp.

References FALSE, LLFloater::setVisible(), and sWaterMenu.

Here is the call graph for this function:

void LLFloaterWater::syncMenu (  ) 


Member Data Documentation

LLFloaterWater * LLFloaterWater::sWaterMenu = NULL [static, private]

std::set< std::string > LLFloaterWater::sDefaultPresets [static, private]

Definition at line 129 of file llfloaterwater.h.

Referenced by deleteAlertCallback(), LLFloaterWater(), and onSavePreset().


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

Generated on Fri May 16 08:47:02 2008 for SecondLife by  doxygen 1.5.5