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

/indra/newview/llscrollingpanelparambase.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 27 code | 9 blank | 26 comment | 0 complexity | 6eaa3480c1d788c4d56ef17b0a7eeaf9 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llscrollingpanelparam.h
  3. * @brief the scrolling panel containing a list of visual param
  4. * panels
  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 LL_SCROLLINGPANELPARAMBASE_H
  28. #define LL_SCROLLINGPANELPARAMBASE_H
  29. #include "llpanel.h"
  30. #include "llscrollingpanellist.h"
  31. class LLViewerJointMesh;
  32. class LLViewerVisualParam;
  33. class LLWearable;
  34. class LLVisualParamHint;
  35. class LLViewerVisualParam;
  36. class LLJoint;
  37. class LLScrollingPanelParamBase : public LLScrollingPanel
  38. {
  39. public:
  40. LLScrollingPanelParamBase( const LLPanel::Params& panel_params,
  41. LLViewerJointMesh* mesh, LLViewerVisualParam* param, BOOL allow_modify, LLWearable* wearable, LLJoint* jointp, BOOL use_hints = FALSE );
  42. virtual ~LLScrollingPanelParamBase();
  43. virtual void updatePanel(BOOL allow_modify);
  44. static void onSliderMoved(LLUICtrl* ctrl, void* userdata);
  45. F32 weightToPercent( F32 weight );
  46. F32 percentToWeight( F32 percent );
  47. public:
  48. LLViewerVisualParam* mParam;
  49. protected:
  50. BOOL mAllowModify;
  51. LLWearable *mWearable;
  52. };
  53. #endif