/indra/newview/llinspect.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 62 lines · 21 code · 12 blank · 29 comment · 0 complexity · 088c61380ea6a4912c5583a831b5d672 MD5 · raw file

  1. /**
  2. * @file llinspect.h
  3. *
  4. * $LicenseInfo:firstyear=2009&license=viewerlgpl$
  5. * Second Life Viewer Source Code
  6. * Copyright (C) 2010, Linden Research, Inc.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation;
  11. * version 2.1 of the License only.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  23. * $/LicenseInfo$
  24. */
  25. #ifndef LLINSPECT_H
  26. #define LLINSPECT_H
  27. #include "llfloater.h"
  28. #include "llframetimer.h"
  29. /// Base class for all inspectors (super-tooltips showing a miniature
  30. /// properties view).
  31. class LLInspect : public LLFloater
  32. {
  33. public:
  34. LLInspect(const LLSD& key);
  35. virtual ~LLInspect();
  36. /// Inspectors have a custom fade-in/fade-out animation
  37. /*virtual*/ void draw();
  38. /*virtual*/ BOOL handleHover(S32 x, S32 y, MASK mask);
  39. /*virtual*/ BOOL handleToolTip(S32 x, S32 y, MASK mask);
  40. /*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask);
  41. /// Start open animation
  42. /*virtual*/ void onOpen(const LLSD& avatar_id);
  43. /// Inspectors close themselves when they lose focus
  44. /*virtual*/ void onFocusLost();
  45. protected:
  46. virtual bool childHasVisiblePopupMenu();
  47. LLFrameTimer mCloseTimer;
  48. LLFrameTimer mOpenTimer;
  49. };
  50. #endif