LLFloaterDayCycle Class Reference

#include <llfloaterdaycycle.h>

Inheritance diagram for LLFloaterDayCycle:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterDayCycle:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFloaterDayCycle ()
virtual ~LLFloaterDayCycle ()
void initHelpBtn (const char *name, const char *xml_alert)
void initCallbacks (void)
 initialize all
void deletePreset (LLString &presetName)
 delete any and all reference to a preset
virtual void onClose (bool app_quitting)
 stuff to do on exit

Static Public Member Functions

static void onClickHelp (void *data)
 help button stuff
static LLFloaterDayCycleinstance ()
 one and one instance only
static void onTimeSliderMoved (LLUICtrl *ctrl, void *userData)
 on time slider moved
static void onKeyTimeMoved (LLUICtrl *ctrl, void *userData)
 what happens when you move the key frame
static void onKeyTimeChanged (LLUICtrl *ctrl, void *userData)
 what happens when you change the key frame's time
static void onKeyPresetChanged (LLUICtrl *ctrl, void *userData)
 if you change the combo box, change the frame
static void onRunAnimSky (void *userData)
 run this when user says to run the sky animation
static void onStopAnimSky (void *userData)
 run this when user says to stop the sky animation
static void onTimeRateChanged (LLUICtrl *ctrl, void *userData)
 if you change the combo box, change the frame
static void onAddKey (void *userData)
 add a new key on slider
static void onDeleteKey (void *userData)
 delete a key frame
static void onLoadDayCycle (void *userData)
 button to load day
static void onSaveDayCycle (void *userData)
 button to save day
static void onUseLindenTime (void *userData)
 toggle for Linden time
static void show ()
 show off our menu
static bool isOpen ()
 return if the menu exists or not
static void syncMenu ()
 sync up sliders with day cycle structure
static void syncSliderTrack ()
static void syncTrack ()
 makes sure day cycle data structure has what's in menu
static void addSliderKey (F32 time, const LLString &presetName)
 add a slider to the track

Static Private Attributes

static LLFloaterDayCyclesDayCycle = NULL
static std::map< LLString,
LLWLSkyKey
sSliderToKey
static const F32 sHoursPerDay = 24.0f


Detailed Description

Menu for all of windlight's functionality. Menuing system for adjusting the atmospheric settings of the world.

Definition at line 54 of file llfloaterdaycycle.h.


Constructor & Destructor Documentation

LLFloaterDayCycle::LLFloaterDayCycle (  ) 

LLFloaterDayCycle::~LLFloaterDayCycle (  )  [virtual]

Definition at line 94 of file llfloaterdaycycle.cpp.


Member Function Documentation

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

help button stuff

Definition at line 98 of file llfloaterdaycycle.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 LLFloaterDayCycle::initHelpBtn ( const char *  name,
const char *  xml_alert 
)

Definition at line 115 of file llfloaterdaycycle.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 LLFloaterDayCycle::initCallbacks ( void   ) 

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

one and one instance only

Definition at line 237 of file llfloaterdaycycle.cpp.

References LLFloaterDayCycle(), LLFloater::open(), sDayCycle, LLFloater::setFocus(), and TRUE.

Referenced by LLFloaterWindLight::deleteAlertCallback(), LLFloaterWater::deleteAlertCallback(), LLFloaterWindLight::newPromptCallback(), onClickHelp(), show(), and LLWLParamManager::update().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onTimeSliderMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

on time slider moved

get the slider value

Definition at line 352 of file llfloaterdaycycle.cpp.

References LLView::getChild(), LLMultiSliderCtrl::getCurSliderValue(), LLWLParamManager::instance(), LLWLParamManager::mAnimator, LLWLAnimator::mIsRunning, LLWLAnimator::mUseLindenTime, sDayCycle, LLWLAnimator::setDayTime(), sHoursPerDay, and LLWLAnimator::update().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onKeyTimeMoved ( LLUICtrl ctrl,
void *  userData 
) [static]

what happens when you move the key frame

Definition at line 370 of file llfloaterdaycycle.cpp.

References LLView::getChild(), S32, sDayCycle, LLCtrlSelectionInterface::selectByValue(), sSliderToKey, and syncTrack().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onKeyTimeChanged ( LLUICtrl ctrl,
void *  userData 
) [static]

what happens when you change the key frame's time

Definition at line 413 of file llfloaterdaycycle.cpp.

References LLView::getChild(), LLMultiSliderCtrl::getCurSlider(), LLMultiSliderCtrl::getCurSliderValue(), sDayCycle, LLMultiSliderCtrl::setCurSliderValue(), sHoursPerDay, sSliderToKey, syncTrack(), and TRUE.

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onKeyPresetChanged ( LLUICtrl ctrl,
void *  userData 
) [static]

if you change the combo box, change the frame

Definition at line 442 of file llfloaterdaycycle.cpp.

References LLSD::asString(), LLView::getChild(), LLComboBox::getSelectedValue(), sDayCycle, sSliderToKey, and syncTrack().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onRunAnimSky ( void *  userData  )  [static]

run this when user says to run the sky animation

Definition at line 279 of file llfloaterdaycycle.cpp.

References LLView::getChild(), LLMultiSliderCtrl::getValue(), LLWLParamManager::instance(), llassert_always, LLWLParamManager::mAnimator, LLWLAnimator::mUseLindenTime, LLWLParamManager::resetAnimator(), sDayCycle, sHoursPerDay, LLSD::size(), and sSliderToKey.

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onStopAnimSky ( void *  userData  )  [static]

run this when user says to stop the sky animation

Definition at line 304 of file llfloaterdaycycle.cpp.

References LLWLParamManager::instance(), LLWLParamManager::mAnimator, LLWLAnimator::mIsRunning, LLWLAnimator::mUseLindenTime, and sSliderToKey.

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onTimeRateChanged ( LLUICtrl ctrl,
void *  userData 
) [static]

if you change the combo box, change the frame

Definition at line 469 of file llfloaterdaycycle.cpp.

References LLSD::asReal(), LLView::getChild(), LLSpinCtrl::getValue(), LLWLParamManager::instance(), LLWLParamManager::mDay, LLWLDayCycle::mDayRate, sDayCycle, and syncTrack().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onAddKey ( void *  userData  )  [static]

add a new key on slider

Definition at line 497 of file llfloaterdaycycle.cpp.

References addSliderKey(), LLSD::asString(), LLView::getChild(), LLComboBox::getSelectedValue(), llassert_always, sDayCycle, sSliderToKey, and syncTrack().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::deletePreset ( LLString presetName  ) 

delete any and all reference to a preset

delete any reference

Definition at line 542 of file llfloaterdaycycle.cpp.

References LLMultiSliderCtrl::deleteSlider(), LLView::getChild(), sDayCycle, and sSliderToKey.

Here is the call graph for this function:

void LLFloaterDayCycle::onDeleteKey ( void *  userData  )  [static]

delete a key frame

Definition at line 560 of file llfloaterdaycycle.cpp.

References LLView::getChild(), S32, sDayCycle, LLCtrlSelectionInterface::selectByValue(), LLSpinCtrl::set(), sSliderToKey, and syncTrack().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onLoadDayCycle ( void *  userData  )  [static]

void LLFloaterDayCycle::onSaveDayCycle ( void *  userData  )  [static]

button to save day

Definition at line 346 of file llfloaterdaycycle.cpp.

References LLWLParamManager::instance(), LLWLParamManager::mDay, and LLWLDayCycle::saveDayCycle().

Referenced by initCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::onUseLindenTime ( void *  userData  )  [static]

toggle for Linden time

Definition at line 316 of file llfloaterdaycycle.cpp.

References LLView::getChild(), LLWLParamManager::instance(), LLFloaterWindLight::instance(), 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 LLFloaterDayCycle::show (  )  [static]

show off our menu

Definition at line 257 of file llfloaterdaycycle.cpp.

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

Referenced by LLWorldDayCycle::handleEvent(), LLPanelEstateInfo::onClickEditDayCycle(), and LLFloaterWindLight::onOpenDayCycle().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLFloaterDayCycle::isOpen ( void   )  [static]

return if the menu exists or not

Definition at line 248 of file llfloaterdaycycle.cpp.

References NULL, and sDayCycle.

Referenced by LLFloaterWindLight::deleteAlertCallback(), LLFloaterWater::deleteAlertCallback(), LLFloaterWindLight::newPromptCallback(), and LLWLParamManager::update().

Here is the caller graph for this function:

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

stuff to do on exit

Reimplemented from LLFloater.

Definition at line 271 of file llfloaterdaycycle.cpp.

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

Here is the call graph for this function:

void LLFloaterDayCycle::syncMenu (  )  [static]

sync up sliders with day cycle structure

Definition at line 145 of file llfloaterdaycycle.cpp.

References LLPanel::childDisable(), LLPanel::childEnable(), LLView::getChild(), LLWLParamManager::instance(), LLWLParamManager::mDay, LLWLDayCycle::mDayRate, sDayCycle, LLMultiSliderCtrl::setCurSliderValue(), LLSpinCtrl::setValue(), and sHoursPerDay.

Referenced by onLoadDayCycle(), show(), and LLWLParamManager::update().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::syncSliderTrack (  )  [static]

Definition at line 183 of file llfloaterdaycycle.cpp.

References addSliderKey(), LLMultiSliderCtrl::clear(), LLView::getChild(), LLWLParamManager::instance(), LLWLParamManager::mDay, LLWLDayCycle::mTimeMap, sDayCycle, sHoursPerDay, and sSliderToKey.

Referenced by onLoadDayCycle(), and show().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterDayCycle::syncTrack (  )  [static]

void LLFloaterDayCycle::addSliderKey ( F32  time,
const LLString presetName 
) [static]

add a slider to the track

Definition at line 517 of file llfloaterdaycycle.cpp.

References LLMultiSliderCtrl::addSlider(), LLView::getChild(), LLMultiSliderCtrl::getCurSliderValue(), LLMultiSliderCtrl::getValue(), llassert_always, LLStringBase< char >::null, LLWLSkyKey::presetName, sDayCycle, LLSD::size(), sSliderToKey, and LLWLSkyKey::time.

Referenced by onAddKey(), and syncSliderTrack().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

LLFloaterDayCycle * LLFloaterDayCycle::sDayCycle = NULL [static, private]

std::map< LLString, LLWLSkyKey > LLFloaterDayCycle::sSliderToKey [static, private]

const F32 LLFloaterDayCycle::sHoursPerDay = 24.0f [static, private]


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

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