00001 00032 #ifndef LL_LLVIEWERCONTROL_H 00033 #define LL_LLVIEWERCONTROL_H 00034 00035 #include "llcontrol.h" 00036 #include "llfloater.h" 00037 #include "lltexteditor.h" 00038 00039 class LLFloaterSettingsDebug : public LLFloater 00040 { 00041 public: 00042 LLFloaterSettingsDebug(); 00043 virtual ~LLFloaterSettingsDebug(); 00044 00045 virtual BOOL postBuild(); 00046 virtual void draw(); 00047 00048 void updateControl(LLControlBase* control); 00049 00050 static void show(void*); 00051 static void onSettingSelect(LLUICtrl* ctrl, void* user_data); 00052 static void onCommitSettings(LLUICtrl* ctrl, void* user_data); 00053 static void onClickDefault(void* user_data); 00054 00055 protected: 00056 static LLFloaterSettingsDebug* sInstance; 00057 LLTextEditor* mComment; 00058 }; 00059 00060 // These functions found in llcontroldef.cpp *TODO: clean this up! 00061 //setting variables are declared in this function 00062 void declare_settings(); 00063 void fixup_settings(); 00064 void settings_setup_listeners(); 00065 00066 // saved at end of session 00067 extern LLControlGroup gSavedSettings; 00068 extern LLControlGroup gSavedPerAccountSettings; 00069 00070 // Read-only 00071 extern LLControlGroup gViewerArt; 00072 00073 // Read-only 00074 extern LLControlGroup gColors; 00075 00076 // Saved at end of session 00077 extern LLControlGroup gCrashSettings; 00078 00079 // Set after settings loaded 00080 extern LLString gLastRunVersion; 00081 extern LLString gCurrentVersion; 00082 00083 extern LLString gSettingsFileName; 00084 extern LLString gPerAccountSettingsFileName; 00085 00086 #endif // LL_LLVIEWERCONTROL_H