PageRenderTime 102ms CodeModel.GetById 61ms app.highlight 2ms RepoModel.GetById 38ms 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
 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
27#ifndef LL_LLFLOATERTOYBOX_H
28#define LL_LLFLOATERTOYBOX_H
29
30#include "llfloater.h"
31
32
33class LLButton;
34class LLToolBar;
35
36
37class LLFloaterToybox : public LLFloater
38{
39public:
40	LLFloaterToybox(const LLSD& key);
41	virtual ~LLFloaterToybox();
42
43	// virtuals
44	BOOL postBuild();
45	void draw();
46	/*virtual*/ BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
47		EDragAndDropType cargo_type,
48		void* cargo_data,
49		EAcceptance* accept,
50		std::string& tooltip_msg);
51
52protected:
53	void onBtnClearAll();
54	void onBtnRestoreDefaults();
55
56	void onToolBarButtonEnter(LLView* button);
57
58public:
59	LLToolBar *	mToolBar;
60};
61
62#endif // LL_LLFLOATERTOYBOX_H