/indra/newview/llfloaterenvironmentsettings.h
C++ Header | 71 lines | 33 code | 13 blank | 25 comment | 0 complexity | 34a22003e016d8ceaf4ea5ded1387506 MD5 | raw file
Possible License(s): LGPL-2.1
1/** 2 * @file llfloaterenvironmentsettings.h 3 * @brief LLFloaterEnvironmentSettings class definition 4 * 5 * $LicenseInfo:firstyear=2011&license=viewerlgpl$ 6 * Second Life Viewer Source Code 7 * Copyright (C) 2011, Linden Research, Inc. 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; 12 * version 2.1 of the License only. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 * 23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA 24 * $/LicenseInfo$ 25 */ 26 27#ifndef LL_LLFLOATERENVIRONMENTSETTINGS_H 28#define LL_LLFLOATERENVIRONMENTSETTINGS_H 29 30#include "llfloater.h" 31 32class LLComboBox; 33class LLRadioGroup; 34 35class LLFloaterEnvironmentSettings : public LLFloater 36{ 37 LOG_CLASS(LLFloaterEnvironmentSettings); 38 39public: 40 LLFloaterEnvironmentSettings(const LLSD &key); 41 /*virtual*/ BOOL postBuild(); 42 /*virtual*/ void onOpen(const LLSD& key); 43 44private: 45 void onSwitchRegionSettings(); 46 void onSwitchDayCycle(); 47 48 void onSelectWaterPreset(); 49 void onSelectSkyPreset(); 50 void onSelectDayCyclePreset(); 51 52 void onBtnOK(); 53 void onBtnCancel(); 54 55 void refresh(); /// update controls with user prefs 56 void apply(); 57 void cancel(); 58 59 void populateWaterPresetsList(); 60 void populateSkyPresetsList(); 61 void populateDayCyclePresetsList(); 62 63 LLRadioGroup* mRegionSettingsRadioGroup; 64 LLRadioGroup* mDayCycleSettingsRadioGroup; 65 66 LLComboBox* mWaterPresetCombo; 67 LLComboBox* mSkyPresetCombo; 68 LLComboBox* mDayCyclePresetCombo; 69}; 70 71#endif // LL_LLFLOATERENVIRONMENTSETTINGS_H