/indra/newview/llfloatermap.h

https://bitbucket.org/lindenlab/viewer-beta/ · C Header · 67 lines · 29 code · 10 blank · 28 comment · 0 complexity · a13c3e39bdfec68f594c55accb24acfa MD5 · raw file

  1. /**
  2. * @file llfloatermap.h
  3. * @brief The "mini-map" or radar in the upper right part of the screen.
  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_LLFLOATERMAP_H
  27. #define LL_LLFLOATERMAP_H
  28. #include "llfloater.h"
  29. class LLNetMap;
  30. class LLTextBox;
  31. //
  32. // Classes
  33. //
  34. class LLFloaterMap : public LLFloater
  35. {
  36. public:
  37. LLFloaterMap(const LLSD& key);
  38. virtual ~LLFloaterMap();
  39. /*virtual*/ BOOL postBuild();
  40. /*virtual*/ BOOL handleDoubleClick( S32 x, S32 y, MASK mask );
  41. /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
  42. /*virtual*/ void draw();
  43. private:
  44. void handleZoom(const LLSD& userdata);
  45. void setDirectionPos( LLTextBox* text_box, F32 rotation );
  46. void updateMinorDirections();
  47. LLTextBox* mTextBoxEast;
  48. LLTextBox* mTextBoxNorth;
  49. LLTextBox* mTextBoxWest;
  50. LLTextBox* mTextBoxSouth;
  51. LLTextBox* mTextBoxSouthEast;
  52. LLTextBox* mTextBoxNorthEast;
  53. LLTextBox* mTextBoxNorthWest;
  54. LLTextBox* mTextBoxSouthWest;
  55. LLNetMap* mMap;
  56. };
  57. #endif // LL_LLFLOATERMAP_H