/indra/newview/lltransientdockablefloater.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 53 lines · 19 code · 5 blank · 29 comment · 0 complexity · 25dd1f5863511d79acee613fc658f83b MD5 · raw file

  1. /**
  2. * @file lltransientdockablefloater.h
  3. * @brief Creates a panel of a specific kind for a toast.
  4. *
  5. * $LicenseInfo:firstyear=2003&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_TRANSIENTDOCKABLEFLOATER_H
  27. #define LL_TRANSIENTDOCKABLEFLOATER_H
  28. #include "llerror.h"
  29. #include "llfloater.h"
  30. #include "lldockcontrol.h"
  31. #include "lldockablefloater.h"
  32. #include "lltransientfloatermgr.h"
  33. /**
  34. * Represents floater that can dock and managed by transient floater manager.
  35. * Transient floaters should be hidden if user click anywhere except defined view list.
  36. */
  37. class LLTransientDockableFloater : public LLDockableFloater, LLTransientFloater
  38. {
  39. public:
  40. LOG_CLASS(LLTransientDockableFloater);
  41. LLTransientDockableFloater(LLDockControl* dockControl, bool uniqueDocking,
  42. const LLSD& key, const Params& params = getDefaultParams());
  43. virtual ~LLTransientDockableFloater();
  44. /*virtual*/ void setVisible(BOOL visible);
  45. /* virtual */void setDocked(bool docked, bool pop_on_undock = true);
  46. virtual LLTransientFloaterMgr::ETransientGroup getGroup() { return LLTransientFloaterMgr::GLOBAL; }
  47. };
  48. #endif /* LL_TRANSIENTDOCKABLEFLOATER_H */