llfloaterbuildoptions.cpp

Go to the documentation of this file.
00001 
00037 #include "llviewerprecompiledheaders.h"
00038 
00039 #include "llfloaterbuildoptions.h"
00040 #include "llvieweruictrlfactory.h"
00041 
00042 // library includes
00043 #include "llfontgl.h"
00044 #include "llcheckboxctrl.h"
00045 #include "llspinctrl.h"
00046 #include "llsliderctrl.h"
00047 
00048 // newview includes
00049 #include "llresmgr.h"
00050 #include "llviewercontrol.h"
00051 
00052 //
00053 // Globals
00054 //
00055 LLFloaterBuildOptions   *LLFloaterBuildOptions::sInstance = NULL;
00056 
00057 //
00058 // Methods
00059 //
00060 LLFloaterBuildOptions::LLFloaterBuildOptions( )
00061 : LLFloater("build options floater")
00062 {
00063         sInstance = this;
00064 }
00065 
00066 LLFloaterBuildOptions::~LLFloaterBuildOptions()
00067 {
00068         sInstance = NULL;
00069 }
00070 
00071 // static
00072 void LLFloaterBuildOptions::show(void*)
00073 {
00074         if (sInstance)
00075         {
00076                 sInstance->open();      /*Flawfinder: ignore*/
00077         }
00078         else
00079         {
00080                 LLFloaterBuildOptions* floater = new LLFloaterBuildOptions();
00081 
00082                 gUICtrlFactory->buildFloater(floater, "floater_build_options.xml");
00083                 floater->open();        /*Flawfinder: ignore*/
00084         }
00085 }
00086 
00087 LLFloaterBuildOptions* LLFloaterBuildOptions::getInstance()
00088 {
00089         return sInstance;
00090 }
00091 
00092 // static
00093 BOOL LLFloaterBuildOptions::visible(void*)
00094 {
00095         return (sInstance != NULL);
00096 }

Generated on Thu Jul 1 06:08:31 2010 for Second Life Viewer by  doxygen 1.4.7