/indra/newview/llpanelplacestab.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 68 lines · 31 code · 11 blank · 26 comment · 0 complexity · 4c4c850de722aa9d7643b4ed9178e3be MD5 · raw file

  1. /**
  2. * @file llpanelplacestab.h
  3. * @brief Tabs interface for Side Bar "Places" panel
  4. *
  5. * $LicenseInfo:firstyear=2009&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_LLPANELPLACESTAB_H
  27. #define LL_LLPANELPLACESTAB_H
  28. #include "llpanel.h"
  29. class LLPanelPlaces;
  30. class LLPanelPlacesTab : public LLPanel
  31. {
  32. public:
  33. LLPanelPlacesTab() : LLPanel() {}
  34. virtual ~LLPanelPlacesTab() {}
  35. virtual void onSearchEdit(const std::string& string) = 0;
  36. virtual void updateVerbs() = 0; // Updates buttons at the bottom of Places panel
  37. virtual void onShowOnMap() = 0;
  38. virtual void onShowProfile() = 0;
  39. virtual void onTeleport() = 0;
  40. virtual bool isSingleItemSelected() = 0;
  41. bool isTabVisible(); // Check if parent TabContainer is visible.
  42. void setPanelPlacesButtons(LLPanelPlaces* panel);
  43. void onRegionResponse(const LLVector3d& landmark_global_pos,
  44. U64 region_handle,
  45. const std::string& url,
  46. const LLUUID& snapshot_id,
  47. bool teleport);
  48. const std::string& getFilterSubString() { return sFilterSubString; }
  49. void setFilterSubString(const std::string& string) { sFilterSubString = string; }
  50. protected:
  51. LLButton* mTeleportBtn;
  52. LLButton* mShowOnMapBtn;
  53. LLButton* mShowProfile;
  54. // Search string for filtering landmarks and teleport history locations
  55. static std::string sFilterSubString;
  56. };
  57. #endif //LL_LLPANELPLACESTAB_H