PageRenderTime 13ms CodeModel.GetById 8ms app.highlight 3ms 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
 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
27#ifndef LL_LLPANELMARKETPLACEINBOX_H
28#define LL_LLPANELMARKETPLACEINBOX_H
29
30#include "llpanel.h"
31
32class LLButton;
33class LLInventoryPanel;
34class LLUICtrl;
35
36class LLPanelMarketplaceInbox : public LLPanel
37{
38public:
39
40	struct Params :	public LLInitParam::Block<Params, LLPanel::Params>
41	{};
42
43	LOG_CLASS(LLPanelMarketplaceInbox);
44
45	// RN: for some reason you can't just use LLUICtrlFactory::getDefaultParams as a default argument in VC8
46	static const LLPanelMarketplaceInbox::Params& getDefaultParams();
47
48	LLPanelMarketplaceInbox(const Params& p = getDefaultParams());
49	~LLPanelMarketplaceInbox();
50
51	/*virtual*/ BOOL postBuild();
52	
53	/*virtual*/ BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, std::string& tooltip_msg);
54
55	/*virtual*/ void draw();
56	
57	LLInventoryPanel * setupInventoryPanel();
58
59	U32 getFreshItemCount() const;
60	U32 getTotalItemCount() const;
61
62	std::string getBadgeString() const;
63
64private:
65
66	void onSelectionChange();
67
68	void onFocusReceived();
69
70private:
71	LLUICtrl *			mFreshCountCtrl;
72	LLButton *			mInboxButton;
73	LLInventoryPanel *	mInventoryPanel;
74};
75
76
77#endif //LL_LLPANELMARKETPLACEINBOX_H