PageRenderTime 41ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloaterscriptdebug.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 67 lines | 30 code | 12 blank | 25 comment | 0 complexity | 3e6ad061f144f4948b045094de2a6ecd MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloaterscriptdebug.h
  3. * @brief Shows error and warning output from scripts
  4. *
  5. * $LicenseInfo:firstyear=2006&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLFLOATERSCRIPTDEBUG_H
  27. #define LL_LLFLOATERSCRIPTDEBUG_H
  28. #include "llmultifloater.h"
  29. class LLTextEditor;
  30. class LLUUID;
  31. class LLFloaterScriptDebug : public LLMultiFloater
  32. {
  33. public:
  34. LLFloaterScriptDebug(const LLSD& key);
  35. virtual ~LLFloaterScriptDebug();
  36. virtual BOOL postBuild();
  37. static void show(const LLUUID& object_id);
  38. static void addScriptLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color, const LLUUID& source_id);
  39. protected:
  40. static LLFloater* addOutputWindow(const LLUUID& object_id);
  41. protected:
  42. static LLFloaterScriptDebug* sInstance;
  43. };
  44. class LLFloaterScriptDebugOutput : public LLFloater
  45. {
  46. public:
  47. LLFloaterScriptDebugOutput(const LLSD& object_id);
  48. ~LLFloaterScriptDebugOutput();
  49. void addLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color);
  50. virtual BOOL postBuild();
  51. protected:
  52. LLTextEditor* mHistoryEditor;
  53. LLUUID mObjectID;
  54. };
  55. #endif // LL_LLFLOATERSCRIPTDEBUG_H