summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-05-06 21:57:46 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-05-06 21:57:46 +0300
commitcb42bc2823931b84ce079423a471a332dc332b0c (patch)
tree357fa813f6cd435ed85d97b727fd3d0f2266154c /indra/llui
parentcfb6ca569b2c834520ce50564e857dfc06831675 (diff)
SL-15168 Viewer side functionality for guidebook window opening #2
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfloaterreg.cpp6
-rw-r--r--indra/llui/llfloaterreg.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/llfloaterreg.cpp b/indra/llui/llfloaterreg.cpp
index 7c0933f554..36a0cb0fd0 100644
--- a/indra/llui/llfloaterreg.cpp
+++ b/indra/llui/llfloaterreg.cpp
@@ -58,6 +58,12 @@ void LLFloaterReg::add(const std::string& name, const std::string& filename, con
}
//static
+bool LLFloaterReg::isRegistered(const std::string& name)
+{
+ return sBuildMap.find(name) != sBuildMap.end();
+}
+
+//static
LLFloater* LLFloaterReg::getLastFloaterInGroup(const std::string& name)
{
const std::string& groupname = sGroupMap[name];
diff --git a/indra/llui/llfloaterreg.h b/indra/llui/llfloaterreg.h
index e3b17dcb4f..a457a15673 100644
--- a/indra/llui/llfloaterreg.h
+++ b/indra/llui/llfloaterreg.h
@@ -85,6 +85,7 @@ public:
static void add(const std::string& name, const std::string& file, const LLFloaterBuildFunc& func,
const std::string& groupname = LLStringUtil::null);
+ static bool isRegistered(const std::string& name);
// Helpers
static LLFloater* getLastFloaterInGroup(const std::string& name);