PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 3ms RepoModel.GetById 17ms app.codeStats 0ms

/indra/newview/llinspect.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 21 code | 12 blank | 29 comment | 0 complexity | 088c61380ea6a4912c5583a831b5d672 MD5 | raw file
 1/** 
 2 * @file llinspect.h
 3 *
 4 * $LicenseInfo:firstyear=2009&license=viewerlgpl$
 5 * Second Life Viewer Source Code
 6 * Copyright (C) 2010, Linden Research, Inc.
 7 * 
 8 * This library is free software; you can redistribute it and/or
 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation;
11 * version 2.1 of the License only.
12 * 
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 * Lesser General Public License for more details.
17 * 
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21 * 
22 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
23 * $/LicenseInfo$
24 */
25
26#ifndef LLINSPECT_H
27#define LLINSPECT_H
28
29#include "llfloater.h"
30#include "llframetimer.h"
31
32/// Base class for all inspectors (super-tooltips showing a miniature
33/// properties view).
34class LLInspect : public LLFloater
35{
36public:
37	LLInspect(const LLSD& key);
38	virtual ~LLInspect();
39	
40	/// Inspectors have a custom fade-in/fade-out animation
41	/*virtual*/ void draw();
42	
43	/*virtual*/ BOOL handleHover(S32 x, S32 y, MASK mask);
44	/*virtual*/ BOOL handleToolTip(S32 x, S32 y, MASK mask);
45	/*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask);
46	
47	/// Start open animation
48	/*virtual*/ void onOpen(const LLSD& avatar_id);
49	
50	/// Inspectors close themselves when they lose focus
51	/*virtual*/ void onFocusLost();
52	
53protected:
54
55	virtual bool childHasVisiblePopupMenu();
56
57	LLFrameTimer		mCloseTimer;
58	LLFrameTimer		mOpenTimer;
59};
60
61#endif
62