#include <llfloaterenvsettings.h>
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 LLFloaterEnvSettings * | instance () |
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 LLFloaterEnvSettings * | sEnvSettings = NULL |
Definition at line 43 of file llfloaterenvsettings.h.
LLFloaterEnvSettings::LLFloaterEnvSettings | ( | ) |
Definition at line 56 of file llfloaterenvsettings.cpp.
References LLUICtrlFactory::buildFloater(), LLSingleton< LLUICtrlFactory >::getInstance(), and initCallbacks().
Referenced by instance().
LLFloaterEnvSettings::~LLFloaterEnvSettings | ( | ) | [virtual] |
Definition at line 64 of file llfloaterenvsettings.cpp.
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
void LLFloaterEnvSettings::syncMenu | ( | ) |
sync up sliders with parameters
Definition at line 106 of file llfloaterenvsettings.cpp.
References LLPipeline::canUseVertexShaders(), LLPipeline::canUseWindLightShaders(), LLPanel::childDisable(), LLPanel::childEnable(), LLPanel::childSetValue(), LLView::getChild(), LLWLAnimator::getDayTime(), gPipeline, LLWaterParamManager::instance(), LLWLParamManager::instance(), LLWLParamManager::mAnimator, LLColor4::mV, sEnvSettings, LLColorSwatchCtrl::set(), LLSliderCtrl::setValue(), LLTextBox::setValue(), and timeToString().
Referenced by show(), and LLWLParamManager::update().
convert the present time to a digital clock time
Definition at line 311 of file llfloaterenvsettings.cpp.
References llround(), and S32.
Referenced by syncMenu().
LLFloaterEnvSettings * LLFloaterEnvSettings::sEnvSettings = NULL [static, private] |
Definition at line 102 of file llfloaterenvsettings.h.
Referenced by instance(), isOpen(), onChangeCloudCoverage(), onChangeDayTime(), onChangeWaterFogDensity(), onClose(), and syncMenu().