PageRenderTime 21ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llfloaterregiondebugconsole.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 22 code | 13 blank | 27 comment | 0 complexity | 72c9d7d9f6c167672148cca1df4a3a79 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloaterregiondebugconsole.h
  3. * @author Brad Kittenbrink <brad@lindenlab.com>
  4. * @brief Quick and dirty console for region debug settings
  5. *
  6. * $LicenseInfo:firstyear=2010&license=viewerlgpl$
  7. * Second Life Viewer Source Code
  8. * Copyright (C) 2010, Linden Research, Inc.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation;
  13. * version 2.1 of the License only.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  25. * $/LicenseInfo$
  26. */
  27. #ifndef LL_LLFLOATERREGIONDEBUGCONSOLE_H
  28. #define LL_LLFLOATERREGIONDEBUGCONSOLE_H
  29. #include <boost/signals2.hpp>
  30. #include "llfloater.h"
  31. #include "llhttpclient.h"
  32. class LLTextEditor;
  33. typedef boost::signals2::signal<
  34. void (const std::string& output)> console_reply_signal_t;
  35. class LLFloaterRegionDebugConsole : public LLFloater, public LLHTTPClient::Responder
  36. {
  37. public:
  38. LLFloaterRegionDebugConsole(LLSD const & key);
  39. virtual ~LLFloaterRegionDebugConsole();
  40. // virtual
  41. BOOL postBuild();
  42. void onInput(LLUICtrl* ctrl, const LLSD& param);
  43. LLTextEditor * mOutput;
  44. static boost::signals2::connection setConsoleReplyCallback(const console_reply_signal_t::slot_type& cb);
  45. private:
  46. void onReplyReceived(const std::string& output);
  47. boost::signals2::connection mReplySignalConnection;
  48. };
  49. #endif // LL_LLFLOATERREGIONDEBUGCONSOLE_H