PageRenderTime 44ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpanelmarketplaceinbox.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 77 lines | 31 code | 20 blank | 26 comment | 0 complexity | 3b11fca7935491fdc0878288eab17252 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanelmarketplaceinbox.h
  3. * @brief Panel for marketplace inbox
  4. *
  5. * $LicenseInfo:firstyear=2011&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_LLPANELMARKETPLACEINBOX_H
  27. #define LL_LLPANELMARKETPLACEINBOX_H
  28. #include "llpanel.h"
  29. class LLButton;
  30. class LLInventoryPanel;
  31. class LLUICtrl;
  32. class LLPanelMarketplaceInbox : public LLPanel
  33. {
  34. public:
  35. struct Params : public LLInitParam::Block<Params, LLPanel::Params>
  36. {};
  37. LOG_CLASS(LLPanelMarketplaceInbox);
  38. // RN: for some reason you can't just use LLUICtrlFactory::getDefaultParams as a default argument in VC8
  39. static const LLPanelMarketplaceInbox::Params& getDefaultParams();
  40. LLPanelMarketplaceInbox(const Params& p = getDefaultParams());
  41. ~LLPanelMarketplaceInbox();
  42. /*virtual*/ BOOL postBuild();
  43. /*virtual*/ BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, std::string& tooltip_msg);
  44. /*virtual*/ void draw();
  45. LLInventoryPanel * setupInventoryPanel();
  46. U32 getFreshItemCount() const;
  47. U32 getTotalItemCount() const;
  48. std::string getBadgeString() const;
  49. private:
  50. void onSelectionChange();
  51. void onFocusReceived();
  52. private:
  53. LLUICtrl * mFreshCountCtrl;
  54. LLButton * mInboxButton;
  55. LLInventoryPanel * mInventoryPanel;
  56. };
  57. #endif //LL_LLPANELMARKETPLACEINBOX_H