diff options
Diffstat (limited to 'indra/newview/llfloaterbuildoptions.cpp')
-rw-r--r-- | indra/newview/llfloaterbuildoptions.cpp | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/indra/newview/llfloaterbuildoptions.cpp b/indra/newview/llfloaterbuildoptions.cpp index 3cd35db19c..9dbd1db38e 100644 --- a/indra/newview/llfloaterbuildoptions.cpp +++ b/indra/newview/llfloaterbuildoptions.cpp @@ -40,58 +40,16 @@ #include "llfloaterbuildoptions.h" #include "lluictrlfactory.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(std::string("build options floater")) +LLFloaterBuildOptions::LLFloaterBuildOptions(const LLSD& key) + : LLFloater() { - sInstance = this; + //LLUICtrlFactory::getInstance()->buildFloater(this, "floater_build_options.xml"); } LLFloaterBuildOptions::~LLFloaterBuildOptions() { - sInstance = NULL; -} - -// static -void LLFloaterBuildOptions::show(void*) -{ - if (sInstance) - { - sInstance->open(); /*Flawfinder: ignore*/ - } - else - { - LLFloaterBuildOptions* floater = new LLFloaterBuildOptions(); - - LLUICtrlFactory::getInstance()->buildFloater(floater, "floater_build_options.xml"); - floater->open(); /*Flawfinder: ignore*/ - } } -LLFloaterBuildOptions* LLFloaterBuildOptions::getInstance() -{ - return sInstance; -} - -// static -BOOL LLFloaterBuildOptions::visible(void*) -{ - return (sInstance != NULL); -} |