LLFloaterEnvSettings Class Reference

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

#include <llfloaterenvsettings.h>

Inheritance diagram for LLFloaterEnvSettings:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterEnvSettings:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFloaterEnvSettings ()
virtual ~LLFloaterEnvSettings ()
void initCallbacks (void)
 initialize all the callbacks for the menu
virtual void onClose (bool app_quitting)
 stuff to do on exit
void syncMenu ()
 sync up sliders with parameters
LLString timeToString (F32 curTime)
 convert the present time to a digital clock time

Static Public Member Functions

static LLFloaterEnvSettingsinstance ()
 one and one instance only
static void onClickHelp (void *data)
 callback for the menus help button
static void onChangeDayTime (LLUICtrl *ctrl, void *userData)
 handle if time of day is changed
static void onChangeCloudCoverage (LLUICtrl *ctrl, void *userData)
 handle if cloud coverage is changed
static void onChangeWaterFogDensity (LLUICtrl *ctrl, void *userData)
 handle change in water fog density
static void onChangeUnderWaterFogMod (LLUICtrl *ctrl, void *userData)
 handle change in under water fog density
static void onChangeWaterColor (LLUICtrl *ctrl, void *userData)
 handle change in water fog color
static void onOpenAdvancedSky (void *userData)
 open the advanced sky settings menu
static void onOpenAdvancedWater (void *userData)
 open the advanced water settings menu
static void onUseEstateTime (void *userData)
 sync time with the server
static void show ()
 show off our menu
static bool isOpen ()
 return if the menu exists or not

Static Private Attributes

static LLFloaterEnvSettingssEnvSettings = NULL


Detailed Description

Menuing system for all of windlight's functionality.

Definition at line 43 of file llfloaterenvsettings.h.


Constructor & Destructor Documentation

LLFloaterEnvSettings::LLFloaterEnvSettings (  ) 

Definition at line 56 of file llfloaterenvsettings.cpp.

References LLUICtrlFactory::buildFloater(), LLSingleton< LLUICtrlFactory >::getInstance(), and initCallbacks().

Referenced by instance().

Here is the call graph for this function:

Here is the caller graph for this function:

LLFloaterEnvSettings::~LLFloaterEnvSettings (  )  [virtual]

Definition at line 64 of file llfloaterenvsettings.cpp.


Member Function Documentation

void LLFloaterEnvSettings::initCallbacks ( void   ) 

initialize all the callbacks for the menu

Definition at line 84 of file llfloaterenvsettings.cpp.

References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLWaterParamManager::instance(), NULL, onChangeCloudCoverage(), onChangeDayTime(), onChangeWaterColor(), onChangeWaterFogDensity(), onClickHelp(), onOpenAdvancedSky(), onOpenAdvancedWater(), and onUseEstateTime().

Referenced by LLFloaterEnvSettings().

Here is the call graph for this function:

Here is the caller graph for this function:

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

one and one instance only

Definition at line 181 of file llfloaterenvsettings.cpp.

References LLFloaterEnvSettings(), LLFloater::open(), sEnvSettings, LLFloater::setFocus(), and TRUE.

Referenced by LLWorldEnvSettings::handleEvent(), show(), and LLWLParamManager::update().

Here is the call graph for this function:

Here is the caller graph for this function:

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

callback for the menus help button

Definition at line 68 of file llfloaterenvsettings.cpp.

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

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterEnvSettings::onChangeDayTime ( LLUICtrl ctrl,
void *  userData 
) [static]

handle if time of day is changed

Definition at line 222 of file llfloaterenvsettings.cpp.

References LLView::getChild(), LLSliderCtrl::getValueF32(), LLWLParamManager::instance(), LLWLParamManager::mAnimator, LLWLAnimator::mIsRunning, LLWLAnimator::mUseLindenTime, sEnvSettings, LLWLAnimator::setDayTime(), and LLWLAnimator::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterEnvSettings::onChangeCloudCoverage ( LLUICtrl ctrl,
void *  userData 
) [static]

handle if cloud coverage is changed

Definition at line 242 of file llfloaterenvsettings.cpp.

References LLView::getChild(), LLSliderCtrl::getValueF32(), LLWLParamManager::instance(), LLWLParamManager::mCurParams, sEnvSettings, and LLWLParamSet::set().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterEnvSettings::onChangeWaterFogDensity ( LLUICtrl ctrl,
void *  userData 
) [static]

handle change in water fog density

Definition at line 255 of file llfloaterenvsettings.cpp.

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

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

static void LLFloaterEnvSettings::onChangeUnderWaterFogMod ( LLUICtrl ctrl,
void *  userData 
) [static]

handle change in under water fog density

void LLFloaterEnvSettings::onChangeWaterColor ( LLUICtrl ctrl,
void *  userData 
) [static]

handle change in water fog color

Definition at line 275 of file llfloaterenvsettings.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 LLFloaterEnvSettings::onOpenAdvancedSky ( void *  userData  )  [static]

open the advanced sky settings menu

Definition at line 286 of file llfloaterenvsettings.cpp.

References LLFloaterWindLight::show().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterEnvSettings::onOpenAdvancedWater ( void *  userData  )  [static]

open the advanced water settings menu

Definition at line 291 of file llfloaterenvsettings.cpp.

References LLFloaterWater::show().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterEnvSettings::onUseEstateTime ( void *  userData  )  [static]

sync time with the server

Definition at line 297 of file llfloaterenvsettings.cpp.

References LLView::getChild(), LLWLParamManager::instance(), LLFloaterWindLight::instance(), LLFloaterWindLight::isOpen(), LLWLParamManager::mAnimator, LLWLAnimator::mIsRunning, LLWLAnimator::mUseLindenTime, and LLCtrlSelectionInterface::selectByValue().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterEnvSettings::show (  )  [static]

show off our menu

Definition at line 191 of file llfloaterenvsettings.cpp.

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

Referenced by LLWorldEnvSettings::handleEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLFloaterEnvSettings::isOpen ( void   )  [static]

return if the menu exists or not

Definition at line 203 of file llfloaterenvsettings.cpp.

References NULL, and sEnvSettings.

Referenced by LLWorldEnvSettings::handleEvent(), and LLWLParamManager::update().

Here is the caller graph for this function:

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

stuff to do on exit

Reimplemented from LLFloater.

Definition at line 213 of file llfloaterenvsettings.cpp.

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

Here is the call graph for this function:

void LLFloaterEnvSettings::syncMenu (  ) 

LLString LLFloaterEnvSettings::timeToString ( F32  curTime  ) 

convert the present time to a digital clock time

Definition at line 311 of file llfloaterenvsettings.cpp.

References llround(), and S32.

Referenced by syncMenu().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


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

Generated on Fri May 16 08:45:33 2008 for SecondLife by  doxygen 1.5.5