/indra/llui/llstatview.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 66 lines · 29 code · 10 blank · 27 comment · 0 complexity · c04763057d14b1b1f62f9575f93b7d0e MD5 · raw file

  1. /**
  2. * @file llstatview.h
  3. * @brief Container for all statistics info.
  4. *
  5. * $LicenseInfo:firstyear=2001&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_LLSTATVIEW_H
  27. #define LL_LLSTATVIEW_H
  28. #include "llstatbar.h"
  29. #include "llcontainerview.h"
  30. #include <vector>
  31. class LLStatBar;
  32. // widget registrars
  33. struct StatViewRegistry : public LLChildRegistry<StatViewRegistry>
  34. {};
  35. class LLStatView : public LLContainerView
  36. {
  37. public:
  38. struct Params : public LLInitParam::Block<Params, LLContainerView::Params>
  39. {
  40. Optional<std::string> setting;
  41. Params()
  42. : setting("setting")
  43. {
  44. changeDefault(follows.flags, FOLLOWS_TOP | FOLLOWS_LEFT);
  45. }
  46. };
  47. // my valid children are stored in this registry
  48. typedef StatViewRegistry child_registry_t;
  49. ~LLStatView();
  50. protected:
  51. LLStatView(const Params&);
  52. friend class LLUICtrlFactory;
  53. protected:
  54. std::string mSetting;
  55. };
  56. #endif // LL_STATVIEW_