diff options
author | Jacek Antonelli | 2008-08-15 23:45:59 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:59 -0500 |
commit | 6e91a9cc3d5a610198cf526a76e2ab642f10ecd7 (patch) | |
tree | b023869f9daa7f61ea3ab27112d37524bdd88de4 /linden/indra/newview/llfloaterpreference.cpp | |
parent | Second Life viewer sources 1.20.12 (diff) | |
download | meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.zip meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.gz meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.bz2 meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.xz |
Second Life viewer sources 1.20.13
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index f267a2d..ff766a3 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -60,6 +60,7 @@ | |||
60 | #include "llpanelLCD.h" | 60 | #include "llpanelLCD.h" |
61 | #include "llpanelmsgs.h" | 61 | #include "llpanelmsgs.h" |
62 | #include "llpanelweb.h" | 62 | #include "llpanelweb.h" |
63 | #include "llpanelskins.h" | ||
63 | #include "llprefschat.h" | 64 | #include "llprefschat.h" |
64 | #include "llprefsvoice.h" | 65 | #include "llprefsvoice.h" |
65 | #include "llprefsim.h" | 66 | #include "llprefsim.h" |
@@ -131,6 +132,7 @@ S32 pref_min_height() | |||
131 | LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * default_btn) : | 132 | LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * default_btn) : |
132 | mTabContainer(tab_container), | 133 | mTabContainer(tab_container), |
133 | mGeneralPanel(NULL), | 134 | mGeneralPanel(NULL), |
135 | mSkinsPanel(NULL), | ||
134 | mInputPanel(NULL), | 136 | mInputPanel(NULL), |
135 | mNetworkPanel(NULL), | 137 | mNetworkPanel(NULL), |
136 | mDisplayPanel(NULL), | 138 | mDisplayPanel(NULL), |
@@ -142,6 +144,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
142 | mTabContainer->addTabPanel(mGeneralPanel, mGeneralPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 144 | mTabContainer->addTabPanel(mGeneralPanel, mGeneralPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
143 | mGeneralPanel->setDefaultBtn(default_btn); | 145 | mGeneralPanel->setDefaultBtn(default_btn); |
144 | 146 | ||
147 | mSkinsPanel = new LLPanelSkins(); | ||
148 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
149 | mSkinsPanel->setDefaultBtn(default_btn); | ||
150 | |||
145 | mInputPanel = new LLPanelInput(); | 151 | mInputPanel = new LLPanelInput(); |
146 | mTabContainer->addTabPanel(mInputPanel, mInputPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 152 | mTabContainer->addTabPanel(mInputPanel, mInputPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
147 | mInputPanel->setDefaultBtn(default_btn); | 153 | mInputPanel->setDefaultBtn(default_btn); |
@@ -205,6 +211,11 @@ LLPreferenceCore::~LLPreferenceCore() | |||
205 | delete mGeneralPanel; | 211 | delete mGeneralPanel; |
206 | mGeneralPanel = NULL; | 212 | mGeneralPanel = NULL; |
207 | } | 213 | } |
214 | if (mSkinsPanel) | ||
215 | { | ||
216 | delete mSkinsPanel; | ||
217 | mSkinsPanel = NULL; | ||
218 | } | ||
208 | if (mInputPanel) | 219 | if (mInputPanel) |
209 | { | 220 | { |
210 | delete mInputPanel; | 221 | delete mInputPanel; |
@@ -252,6 +263,7 @@ LLPreferenceCore::~LLPreferenceCore() | |||
252 | void LLPreferenceCore::apply() | 263 | void LLPreferenceCore::apply() |
253 | { | 264 | { |
254 | mGeneralPanel->apply(); | 265 | mGeneralPanel->apply(); |
266 | mSkinsPanel->apply(); | ||
255 | mInputPanel->apply(); | 267 | mInputPanel->apply(); |
256 | mNetworkPanel->apply(); | 268 | mNetworkPanel->apply(); |
257 | mDisplayPanel->apply(); | 269 | mDisplayPanel->apply(); |
@@ -278,6 +290,7 @@ void LLPreferenceCore::apply() | |||
278 | void LLPreferenceCore::cancel() | 290 | void LLPreferenceCore::cancel() |
279 | { | 291 | { |
280 | mGeneralPanel->cancel(); | 292 | mGeneralPanel->cancel(); |
293 | mSkinsPanel->cancel(); | ||
281 | mInputPanel->cancel(); | 294 | mInputPanel->cancel(); |
282 | mNetworkPanel->cancel(); | 295 | mNetworkPanel->cancel(); |
283 | mDisplayPanel->cancel(); | 296 | mDisplayPanel->cancel(); |