PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloatertoybox.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 25 code | 11 blank | 26 comment | 0 complexity | 30582b64d3ed159aa5a550352bed6a9e MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloatertoybox.h
  3. * @brief The toybox for flexibilizing the UI.
  4. *
  5. * $LicenseInfo:firstyear=2002&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2011, 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_LLFLOATERTOYBOX_H
  27. #define LL_LLFLOATERTOYBOX_H
  28. #include "llfloater.h"
  29. class LLButton;
  30. class LLToolBar;
  31. class LLFloaterToybox : public LLFloater
  32. {
  33. public:
  34. LLFloaterToybox(const LLSD& key);
  35. virtual ~LLFloaterToybox();
  36. // virtuals
  37. BOOL postBuild();
  38. void draw();
  39. /*virtual*/ BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
  40. EDragAndDropType cargo_type,
  41. void* cargo_data,
  42. EAcceptance* accept,
  43. std::string& tooltip_msg);
  44. protected:
  45. void onBtnClearAll();
  46. void onBtnRestoreDefaults();
  47. void onToolBarButtonEnter(LLView* button);
  48. public:
  49. LLToolBar * mToolBar;
  50. };
  51. #endif // LL_LLFLOATERTOYBOX_H