PageRenderTime 39ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/lllistview.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 60 lines | 26 code | 6 blank | 28 comment | 0 complexity | dd4b4b134f982cb51616a13e56a75fb8 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file lllistview.h
  3. * @brief UI widget containing a scrollable, possibly hierarchical list of
  4. * folders (LLListViewFolder) and items (LLListViewItem).
  5. *
  6. * $LicenseInfo:firstyear=2009&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 LLLISTVIEW_H
  28. #define LLLISTVIEW_H
  29. #include "llui.h" // for LLUIColor, *TODO: use more specific header
  30. #include "lluictrl.h"
  31. class LLTextBox;
  32. class LLListView
  33. : public LLUICtrl
  34. {
  35. public:
  36. struct Params : public LLInitParam::Block<Params, LLUICtrl::Params>
  37. {
  38. Optional<LLUIColor> bg_color,
  39. fg_selected_color,
  40. bg_selected_color;
  41. Params();
  42. };
  43. LLListView(const Params& p);
  44. virtual ~LLListView();
  45. // placeholder for setting a property
  46. void setString(const std::string& s);
  47. private:
  48. // TODO: scroll container?
  49. LLTextBox* mLabel; // just for testing
  50. LLUIColor mBgColor;
  51. LLUIColor mFgSelectedColor;
  52. LLUIColor mBgSelectedColor;
  53. };
  54. #endif // LLLISTVIEW_H