Update LLFloaterSettingsDebug to match up with v-d.

Adds boost::bind and makes the floater a singleton.
This commit is contained in:
Lirusaito
2013-01-03 17:20:57 -05:00
parent c3829485e4
commit 9498375e75
4 changed files with 63 additions and 93 deletions

View File

@@ -35,9 +35,10 @@
#include "llcontrol.h"
#include "llfloater.h"
#include "lltexteditor.h"
class LLFloaterSettingsDebug : public LLFloater
class LLFloaterSettingsDebug
: public LLFloater
, public LLSingleton<LLFloaterSettingsDebug>
{
public:
LLFloaterSettingsDebug();
@@ -48,14 +49,12 @@ public:
void updateControl(LLControlVariable* control);
static void show(void*);
static void onSettingSelect(LLUICtrl* ctrl, void* user_data);
static void onCommitSettings(LLUICtrl* ctrl, void* user_data);
static void onClickDefault(void* user_data);
void onSettingSelect(LLUICtrl* ctrl);
void onCommitSettings();
void onClickDefault();
protected:
static LLFloaterSettingsDebug* sInstance;
LLTextEditor* mComment;
class LLTextEditor* mComment;
};
#endif //LLFLOATERDEBUGSETTINGS_H