PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/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
27#ifndef LL_TRANSIENTDOCKABLEFLOATER_H
28#define LL_TRANSIENTDOCKABLEFLOATER_H
29
30#include "llerror.h"
31#include "llfloater.h"
32#include "lldockcontrol.h"
33#include "lldockablefloater.h"
34#include "lltransientfloatermgr.h"
35
36/**
37 * Represents floater that can dock and managed by transient floater manager.
38 * Transient floaters should be hidden if user click anywhere except defined view list.
39 */
40class LLTransientDockableFloater : public LLDockableFloater, LLTransientFloater
41{
42public:
43	LOG_CLASS(LLTransientDockableFloater);
44	LLTransientDockableFloater(LLDockControl* dockControl, bool uniqueDocking,
45			const LLSD& key, const Params& params = getDefaultParams());
46	virtual ~LLTransientDockableFloater();
47
48	/*virtual*/ void setVisible(BOOL visible);
49	/* virtual */void setDocked(bool docked, bool pop_on_undock = true);
50	virtual LLTransientFloaterMgr::ETransientGroup getGroup() { return LLTransientFloaterMgr::GLOBAL; }
51};
52
53#endif /* LL_TRANSIENTDOCKABLEFLOATER_H */