aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfirstuse.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-18 17:58:27 -0700
committerMcCabe Maxsted2009-10-18 17:58:27 -0700
commite4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch)
tree9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/llfirstuse.cpp
parentStarted 1.3.0 branch (diff)
parentUpdated and added some Linux libs. (diff)
downloadmeta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/newview/llfirstuse.cpp')
-rw-r--r--linden/indra/newview/llfirstuse.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp
index 9ee24d6..513cba3 100644
--- a/linden/indra/newview/llfirstuse.cpp
+++ b/linden/indra/newview/llfirstuse.cpp
@@ -45,6 +45,10 @@
45#include "llappviewer.h" 45#include "llappviewer.h"
46#include "lltracker.h" 46#include "lltracker.h"
47 47
48// [RLVa:KB] - Version: 1.22.11
49#include "llviewerwindow.h"
50// [/RLVa:KB]
51
48// static 52// static
49std::set<std::string> LLFirstUse::sConfigVariables; 53std::set<std::string> LLFirstUse::sConfigVariables;
50 54
@@ -132,6 +136,17 @@ void LLFirstUse::useMap()
132} 136}
133 137
134// static 138// static
139void LLFirstUse::useMiniMap()
140{
141 if (gSavedSettings.getWarning("FirstMiniMap"))
142 {
143 gSavedSettings.setWarning("FirstMiniMap", FALSE);
144
145 LLNotifyBox::showXml("FirstMiniMap");
146 }
147}
148
149// static
135void LLFirstUse::useGoTo() 150void LLFirstUse::useGoTo()
136{ 151{
137 // nothing for now JC 152 // nothing for now JC
@@ -277,3 +292,36 @@ void LLFirstUse::useMedia()
277 LLNotifications::instance().add("FirstMedia"); 292 LLNotifications::instance().add("FirstMedia");
278 } 293 }
279} 294}
295
296// [RLVa:KB] - Version: 1.22.11 | Checked: RLVa-1.0.3a (2009-09-10) | Added: RLVa-1.0.3a
297
298// SL-1.22.11 doesn't seem to have a way to check which notifications are currently open :(
299bool rlvHasVisibleFirstUseNotification()
300{
301 return false;
302}
303
304void LLFirstUse::showRlvFirstUseNotification(const std::string& strName)
305{
306 if ( (gSavedSettings.getWarning(strName)) && (!rlvHasVisibleFirstUseNotification()) )
307 {
308 gSavedSettings.setWarning(strName, FALSE);
309 LLNotifyBox::showXml(strName);
310 }
311}
312
313void LLFirstUse::warnRlvGiveToRLV()
314{
315 if ( (gSavedSettings.getWarning(RLV_SETTING_FIRSTUSE_GIVETORLV)) && (RlvSettings::getForbidGiveToRLV()) )
316 gViewerWindow->alertXml(RLV_SETTING_FIRSTUSE_GIVETORLV, LLStringUtil::format_map_t(), &LLFirstUse::onRlvGiveToRLVConfirmation, NULL);
317}
318
319void LLFirstUse::onRlvGiveToRLVConfirmation(S32 idxOption, void* /*pUserParam*/)
320{
321 gSavedSettings.setWarning(RLV_SETTING_FIRSTUSE_GIVETORLV, FALSE);
322
323 if ( (0 == idxOption) || (1 == idxOption) )
324 gSavedSettings.setBOOL(RLV_SETTING_FORBIDGIVETORLV, (idxOption == 1));
325}
326
327// [/RLVa:KB]