summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatereditextdaycycle.h
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-05-18 13:33:49 -0700
committerRider Linden <rider@lindenlab.com>2018-05-18 13:33:49 -0700
commit9dc8df35c0ae24ed8a1d8329c7b0ac0f71d239bf (patch)
tree24d7a43af758fb7de0fa8406cc729a6803b7ed54 /indra/newview/llfloatereditextdaycycle.h
parent4c1a633c232880f4ac6e01807f1084e5d5c68b1e (diff)
parente4973e0f92b524e7f9c2d10745f4c5e3a8557284 (diff)
Merge
Diffstat (limited to 'indra/newview/llfloatereditextdaycycle.h')
-rw-r--r--indra/newview/llfloatereditextdaycycle.h69
1 files changed, 21 insertions, 48 deletions
diff --git a/indra/newview/llfloatereditextdaycycle.h b/indra/newview/llfloatereditextdaycycle.h
index 3185644df9..3cc41e6248 100644
--- a/indra/newview/llfloatereditextdaycycle.h
+++ b/indra/newview/llfloatereditextdaycycle.h
@@ -37,6 +37,7 @@ class LLLineEditor;
class LLMultiSliderCtrl;
class LLTextBox;
class LLTimeCtrl;
+//class LLFlyoutComboBtnCtrl;
typedef std::shared_ptr<LLSettingsBase> LLSettingsBasePtr_t;
@@ -59,15 +60,14 @@ public:
typedef boost::signals2::connection connection_t;
LLFloaterEditExtDayCycle(const LLSD &key);
+ ~LLFloaterEditExtDayCycle();
+
+ void openFloater(LLSettingsDay::ptr_t settings, S64Seconds daylength = S64Seconds(0), S64Seconds dayoffset = S64Seconds(0));
BOOL postBuild();
- void onOpen(const LLSD& key);
+ void onOpen(const LLSD& key);
void onClose(bool app_quitting);
-
- /*TEMP*/
- void onUpload();
-
void onVisibilityChange(BOOL new_visibility);
// /*virtual*/ void draw();
@@ -86,8 +86,10 @@ private:
//
// /// refresh the sky presets combobox
+// void onButtonApply(LLUICtrl *ctrl, const LLSD &data);
void onBtnSave();
void onBtnCancel();
+ void onBtnUpload();
void onAddTrack();
void onRemoveTrack();
void onCommitName(class LLLineEditor* caller, void* user_data);
@@ -96,13 +98,15 @@ private:
void onFrameSliderCallback(); /// a frame moved or frame selection changed
void selectTrack(U32 track_index);
+ void clearTabs();
void updateTabs();
- void updateSkyTabs();
- void updateWaterTabs();
+ void updateWaterTabs(const LLSettingsWaterPtr_t &p_water);
+ void updateSkyTabs(const LLSettingsSkyPtr_t &p_sky);
+ void updateButtons();
void updateSlider(); //track to slider
+ void updateTimeAndLabel();
void addSliderFrame(const F32 frame, LLSettingsBase::ptr_t setting);
void removeCurrentSliderFrame();
- //void updateTrack(); // slider->track, todo: better name
// **RIDER**
void loadInventoryItem(const LLUUID &inventoryId);
@@ -114,41 +118,6 @@ private:
// **RIDER**
-// /// refresh the day cycle combobox
-// void refreshDayCyclesList();
-//
-// /// add a slider to the track
-//
-// void initCallbacks();
-// // LLWLParamKey getSelectedDayCycle();
-// bool isNewDay() const;
-// void dumpTrack();
-// void enableEditing(bool enable);
-// void reset();
-// void saveRegionDayCycle();
-//
-// void setApplyProgress(bool started);
-// bool getApplyProgress() const;
-//
-// void onKeyTimeChanged(); /// a key frame's time changed
-// void onAddKey(); /// new key added on slider
-// void onDeleteKey(); /// a key frame deleted
-//
-// void onRegionSettingsChange();
-// void onRegionChange();
-// void onRegionSettingsApplied(bool success);
-// void onRegionInfoUpdate();
-//
-// void onDayCycleNameEdited();
-// void onDayCycleSelected();
-//
-// bool onSaveAnswer(const LLSD& notification, const LLSD& response);
-// void onSaveConfirmed();
-//
-// void onDayCycleListChange();
-// void onSkyPresetListChange();
-//
-// static std::string getRegionName();
LLSettingsDay::ptr_t mEditDay;
S64Seconds mDayLength;
@@ -156,11 +125,11 @@ private:
U32 mCurrentTrack;
std::string mLastFrameSlider;
- LLButton* mSaveButton;
- LLButton* mCancelButton;
+ LLButton* mSaveButton;
+ LLButton* mCancelButton;
LLButton* mUploadButton;
-
- edit_commit_signal_t mCommitSignal;
+ LLButton* mAddFrameButton;
+ LLButton* mDeleteFrameButton;
LLMultiSliderCtrl* mTimeSlider;
LLMultiSliderCtrl* mFramesSlider;
@@ -174,10 +143,14 @@ private:
LLEnvironment::EnvSelection_t mEditingEnv;
// **RIDER**
+// LLFlyoutComboBtnCtrl * mFlyoutControl; // not a View!
+
+ edit_commit_signal_t mCommitSignal;
+
// map of sliders to parameters
typedef std::pair<F32, LLSettingsBase::ptr_t> framedata_t;
typedef std::map<std::string, framedata_t> keymap_t;
- keymap_t mSliderKeyMap;
+ keymap_t mSliderKeyMap; //slider keys[old_frames], shadows mFramesSlider
};
#endif // LL_LLFloaterEditExtDayCycle_H