summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuildoptions.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
committerJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
commit420b91db29485df39fd6e724e782c449158811cb (patch)
treeb471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/llfloaterbuildoptions.cpp
Print done when done.
Diffstat (limited to 'indra/newview/llfloaterbuildoptions.cpp')
-rw-r--r--indra/newview/llfloaterbuildoptions.cpp73
1 files changed, 73 insertions, 0 deletions
diff --git a/indra/newview/llfloaterbuildoptions.cpp b/indra/newview/llfloaterbuildoptions.cpp
new file mode 100644
index 0000000000..de58497430
--- /dev/null
+++ b/indra/newview/llfloaterbuildoptions.cpp
@@ -0,0 +1,73 @@
+/**
+ * @file llfloaterbuildoptions.cpp
+ * @brief LLFloaterBuildOptions class implementation
+ *
+ * Copyright (c) 2002-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+/**
+ * Panel for setting global object-editing options, specifically
+ * grid size and spacing.
+ */
+
+#include "llviewerprecompiledheaders.h"
+
+#include "llfloaterbuildoptions.h"
+#include "llvieweruictrlfactory.h"
+
+// library includes
+#include "llfontgl.h"
+#include "llcheckboxctrl.h"
+#include "llspinctrl.h"
+#include "llsliderctrl.h"
+
+// newview includes
+#include "llresmgr.h"
+#include "llviewercontrol.h"
+
+//
+// Globals
+//
+LLFloaterBuildOptions *LLFloaterBuildOptions::sInstance = NULL;
+
+//
+// Methods
+//
+LLFloaterBuildOptions::LLFloaterBuildOptions( )
+: LLFloater("build options floater")
+{
+ sInstance = this;
+}
+
+LLFloaterBuildOptions::~LLFloaterBuildOptions()
+{
+ sInstance = NULL;
+}
+
+// static
+void LLFloaterBuildOptions::show(void*)
+{
+ if (sInstance)
+ {
+ sInstance->open();
+ }
+ else
+ {
+ LLFloaterBuildOptions* floater = new LLFloaterBuildOptions();
+
+ gUICtrlFactory->buildFloater(floater, "floater_build_options.xml");
+ floater->open();
+ }
+}
+
+LLFloaterBuildOptions* LLFloaterBuildOptions::getInstance()
+{
+ return sInstance;
+}
+
+// static
+BOOL LLFloaterBuildOptions::visible(void*)
+{
+ return (sInstance != NULL);
+}