From 420b91db29485df39fd6e724e782c449158811cb Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 2 Jan 2007 08:33:20 +0000 Subject: Print done when done. --- indra/newview/llfloaterbuildoptions.cpp | 73 +++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 indra/newview/llfloaterbuildoptions.cpp (limited to 'indra/newview/llfloaterbuildoptions.cpp') 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); +} -- cgit v1.2.3