diff options
author | Jacek Antonelli | 2008-08-15 23:46:01 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:46:01 -0500 |
commit | ae88605f72ef43be7b619b8c1c11a508ebae5057 (patch) | |
tree | f27474fe2d1186124211e2a5b2ad31927a3ab5bc /linden/indra/newview/llfloaterpreference.cpp | |
parent | Second Life viewer sources 1.20.13 (diff) | |
download | meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.zip meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.gz meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.bz2 meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.xz |
Second Life viewer sources 1.20.14
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index ff766a3..b466952 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -132,22 +132,18 @@ S32 pref_min_height() | |||
132 | LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * default_btn) : | 132 | LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * default_btn) : |
133 | mTabContainer(tab_container), | 133 | mTabContainer(tab_container), |
134 | mGeneralPanel(NULL), | 134 | mGeneralPanel(NULL), |
135 | mSkinsPanel(NULL), | ||
136 | mInputPanel(NULL), | 135 | mInputPanel(NULL), |
137 | mNetworkPanel(NULL), | 136 | mNetworkPanel(NULL), |
138 | mDisplayPanel(NULL), | 137 | mDisplayPanel(NULL), |
139 | mAudioPanel(NULL), | 138 | mAudioPanel(NULL), |
140 | mMsgPanel(NULL), | 139 | mMsgPanel(NULL), |
140 | mSkinsPanel(NULL), | ||
141 | mLCDPanel(NULL) | 141 | mLCDPanel(NULL) |
142 | { | 142 | { |
143 | mGeneralPanel = new LLPanelGeneral(); | 143 | mGeneralPanel = new LLPanelGeneral(); |
144 | mTabContainer->addTabPanel(mGeneralPanel, mGeneralPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 144 | mTabContainer->addTabPanel(mGeneralPanel, mGeneralPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
145 | mGeneralPanel->setDefaultBtn(default_btn); | 145 | mGeneralPanel->setDefaultBtn(default_btn); |
146 | 146 | ||
147 | mSkinsPanel = new LLPanelSkins(); | ||
148 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
149 | mSkinsPanel->setDefaultBtn(default_btn); | ||
150 | |||
151 | mInputPanel = new LLPanelInput(); | 147 | mInputPanel = new LLPanelInput(); |
152 | mTabContainer->addTabPanel(mInputPanel, mInputPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 148 | mTabContainer->addTabPanel(mInputPanel, mInputPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
153 | mInputPanel->setDefaultBtn(default_btn); | 149 | mInputPanel->setDefaultBtn(default_btn); |
@@ -197,6 +193,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
197 | mMsgPanel = new LLPanelMsgs(); | 193 | mMsgPanel = new LLPanelMsgs(); |
198 | mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 194 | mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
199 | mMsgPanel->setDefaultBtn(default_btn); | 195 | mMsgPanel->setDefaultBtn(default_btn); |
196 | |||
197 | mSkinsPanel = new LLPanelSkins(); | ||
198 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
199 | mSkinsPanel->setDefaultBtn(default_btn); | ||
200 | 200 | ||
201 | if (!mTabContainer->selectTab(gSavedSettings.getS32("LastPrefTab"))) | 201 | if (!mTabContainer->selectTab(gSavedSettings.getS32("LastPrefTab"))) |
202 | { | 202 | { |
@@ -211,11 +211,6 @@ LLPreferenceCore::~LLPreferenceCore() | |||
211 | delete mGeneralPanel; | 211 | delete mGeneralPanel; |
212 | mGeneralPanel = NULL; | 212 | mGeneralPanel = NULL; |
213 | } | 213 | } |
214 | if (mSkinsPanel) | ||
215 | { | ||
216 | delete mSkinsPanel; | ||
217 | mSkinsPanel = NULL; | ||
218 | } | ||
219 | if (mInputPanel) | 214 | if (mInputPanel) |
220 | { | 215 | { |
221 | delete mInputPanel; | 216 | delete mInputPanel; |
@@ -257,13 +252,18 @@ LLPreferenceCore::~LLPreferenceCore() | |||
257 | delete mWebPanel; | 252 | delete mWebPanel; |
258 | mWebPanel = NULL; | 253 | mWebPanel = NULL; |
259 | } | 254 | } |
255 | if (mSkinsPanel) | ||
256 | { | ||
257 | delete mSkinsPanel; | ||
258 | mSkinsPanel = NULL; | ||
259 | } | ||
260 | |||
260 | } | 261 | } |
261 | 262 | ||
262 | 263 | ||
263 | void LLPreferenceCore::apply() | 264 | void LLPreferenceCore::apply() |
264 | { | 265 | { |
265 | mGeneralPanel->apply(); | 266 | mGeneralPanel->apply(); |
266 | mSkinsPanel->apply(); | ||
267 | mInputPanel->apply(); | 267 | mInputPanel->apply(); |
268 | mNetworkPanel->apply(); | 268 | mNetworkPanel->apply(); |
269 | mDisplayPanel->apply(); | 269 | mDisplayPanel->apply(); |
@@ -271,6 +271,7 @@ void LLPreferenceCore::apply() | |||
271 | mPrefsVoice->apply(); | 271 | mPrefsVoice->apply(); |
272 | mPrefsIM->apply(); | 272 | mPrefsIM->apply(); |
273 | mMsgPanel->apply(); | 273 | mMsgPanel->apply(); |
274 | mSkinsPanel->apply(); | ||
274 | 275 | ||
275 | // hardware menu apply | 276 | // hardware menu apply |
276 | LLFloaterHardwareSettings::instance()->apply(); | 277 | LLFloaterHardwareSettings::instance()->apply(); |
@@ -290,7 +291,6 @@ void LLPreferenceCore::apply() | |||
290 | void LLPreferenceCore::cancel() | 291 | void LLPreferenceCore::cancel() |
291 | { | 292 | { |
292 | mGeneralPanel->cancel(); | 293 | mGeneralPanel->cancel(); |
293 | mSkinsPanel->cancel(); | ||
294 | mInputPanel->cancel(); | 294 | mInputPanel->cancel(); |
295 | mNetworkPanel->cancel(); | 295 | mNetworkPanel->cancel(); |
296 | mDisplayPanel->cancel(); | 296 | mDisplayPanel->cancel(); |
@@ -299,6 +299,7 @@ void LLPreferenceCore::cancel() | |||
299 | mPrefsVoice->cancel(); | 299 | mPrefsVoice->cancel(); |
300 | mPrefsIM->cancel(); | 300 | mPrefsIM->cancel(); |
301 | mMsgPanel->cancel(); | 301 | mMsgPanel->cancel(); |
302 | mSkinsPanel->cancel(); | ||
302 | 303 | ||
303 | // cancel hardware menu | 304 | // cancel hardware menu |
304 | LLFloaterHardwareSettings::instance()->cancel(); | 305 | LLFloaterHardwareSettings::instance()->cancel(); |