diff options
author | Jacek Antonelli | 2010-08-31 05:54:55 -0500 |
---|---|---|
committer | McCabe Maxsted | 2010-09-10 19:23:06 -0700 |
commit | 7460b677c3979b9ec5b913dee3abfcd4272bd297 (patch) | |
tree | 406bc0c3ce68962090fe2ca4a29cd3b9b4d002d3 /linden/indra/newview/llfloaterpreference.cpp | |
parent | Changed the 'bundle identifier' to org.imprudenceviewer.viewer. (diff) | |
download | meta-impy-7460b677c3979b9ec5b913dee3abfcd4272bd297.zip meta-impy-7460b677c3979b9ec5b913dee3abfcd4272bd297.tar.gz meta-impy-7460b677c3979b9ec5b913dee3abfcd4272bd297.tar.bz2 meta-impy-7460b677c3979b9ec5b913dee3abfcd4272bd297.tar.xz |
Added Preferences > Fonts tab, with basic font chooser.
Choosing a font sets FontChoice setting, but no real effect yet.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index 744c179..09336cb 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -48,6 +48,7 @@ | |||
48 | #include "llspinctrl.h" | 48 | #include "llspinctrl.h" |
49 | #include "message.h" | 49 | #include "message.h" |
50 | 50 | ||
51 | #include "impprefsfonts.h" | ||
51 | #include "llcommandhandler.h" | 52 | #include "llcommandhandler.h" |
52 | #include "llfloaterpreference.h" | 53 | #include "llfloaterpreference.h" |
53 | #include "llpanelnetwork.h" | 54 | #include "llpanelnetwork.h" |
@@ -133,7 +134,8 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
133 | mMsgPanel(NULL), | 134 | mMsgPanel(NULL), |
134 | mSkinsPanel(NULL), | 135 | mSkinsPanel(NULL), |
135 | mLCDPanel(NULL), | 136 | mLCDPanel(NULL), |
136 | mPrefsAdvanced(NULL) | 137 | mPrefsAdvanced(NULL), |
138 | mPrefsFonts(NULL) | ||
137 | { | 139 | { |
138 | mGeneralPanel = new LLPanelGeneral(); | 140 | mGeneralPanel = new LLPanelGeneral(); |
139 | mTabContainer->addTabPanel(mGeneralPanel, mGeneralPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 141 | mTabContainer->addTabPanel(mGeneralPanel, mGeneralPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
@@ -197,6 +199,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
197 | mTabContainer->addTabPanel(mPrefsAdvanced, mPrefsAdvanced->getLabel(), FALSE, onTabChanged, mTabContainer); | 199 | mTabContainer->addTabPanel(mPrefsAdvanced, mPrefsAdvanced->getLabel(), FALSE, onTabChanged, mTabContainer); |
198 | mPrefsAdvanced->setDefaultBtn(default_btn); | 200 | mPrefsAdvanced->setDefaultBtn(default_btn); |
199 | 201 | ||
202 | mPrefsFonts = new ImpPrefsFonts(); | ||
203 | mTabContainer->addTabPanel(mPrefsFonts, mPrefsFonts->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
204 | mPrefsFonts->setDefaultBtn(default_btn); | ||
205 | |||
200 | if (!mTabContainer->selectTab(gSavedSettings.getS32("LastPrefTab"))) | 206 | if (!mTabContainer->selectTab(gSavedSettings.getS32("LastPrefTab"))) |
201 | { | 207 | { |
202 | mTabContainer->selectFirstTab(); | 208 | mTabContainer->selectFirstTab(); |
@@ -261,6 +267,11 @@ LLPreferenceCore::~LLPreferenceCore() | |||
261 | delete mPrefsAdvanced; | 267 | delete mPrefsAdvanced; |
262 | mPrefsAdvanced = NULL; | 268 | mPrefsAdvanced = NULL; |
263 | } | 269 | } |
270 | if (mPrefsFonts) | ||
271 | { | ||
272 | delete mPrefsFonts; | ||
273 | mPrefsFonts = NULL; | ||
274 | } | ||
264 | 275 | ||
265 | } | 276 | } |
266 | 277 | ||
@@ -278,6 +289,7 @@ void LLPreferenceCore::apply() | |||
278 | mMsgPanel->apply(); | 289 | mMsgPanel->apply(); |
279 | mSkinsPanel->apply(); | 290 | mSkinsPanel->apply(); |
280 | mPrefsAdvanced->apply(); | 291 | mPrefsAdvanced->apply(); |
292 | mPrefsFonts->apply(); | ||
281 | 293 | ||
282 | // hardware menu apply | 294 | // hardware menu apply |
283 | LLFloaterHardwareSettings::instance()->apply(); | 295 | LLFloaterHardwareSettings::instance()->apply(); |
@@ -307,6 +319,7 @@ void LLPreferenceCore::cancel() | |||
307 | mMsgPanel->cancel(); | 319 | mMsgPanel->cancel(); |
308 | mSkinsPanel->cancel(); | 320 | mSkinsPanel->cancel(); |
309 | mPrefsAdvanced->cancel(); | 321 | mPrefsAdvanced->cancel(); |
322 | mPrefsFonts->cancel(); | ||
310 | 323 | ||
311 | // cancel hardware menu | 324 | // cancel hardware menu |
312 | LLFloaterHardwareSettings::instance()->cancel(); | 325 | LLFloaterHardwareSettings::instance()->cancel(); |