aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterurldisplay.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:27 -0500
committerJacek Antonelli2008-08-15 23:45:27 -0500
commita8a62201ba762e98dff92cf49033e577fc34d8d4 (patch)
tree11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llfloaterurldisplay.cpp
parentSecond Life viewer sources 1.18.6.4-RC (diff)
downloadmeta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llfloaterurldisplay.cpp')
-rw-r--r--linden/indra/newview/llfloaterurldisplay.cpp43
1 files changed, 33 insertions, 10 deletions
diff --git a/linden/indra/newview/llfloaterurldisplay.cpp b/linden/indra/newview/llfloaterurldisplay.cpp
index e5f4d81..8d12729 100644
--- a/linden/indra/newview/llfloaterurldisplay.cpp
+++ b/linden/indra/newview/llfloaterurldisplay.cpp
@@ -1,17 +1,28 @@
1/** 1/**
2 * @file llpreviewlandmark.cpp 2 * @file llfloaterurldisplay.h
3 * @brief LLFloaterURLDisplayList class implementation 3 * @brief Probably should be called LLFloaterTeleport, or LLFloaterLandmark
4 * as it gives you a preview of a potential teleport location.
4 * 5 *
5 * $LicenseInfo:firstyear=2002&license=internal$ 6 * $LicenseInfo:firstyear=2007&license=viewergpl$
6 * 7 *
7 * Copyright (c) 2002-2008, Linden Research, Inc. 8 * Copyright (c) 2007-2008, Linden Research, Inc.
8 * 9 *
9 * The following source code is PROPRIETARY AND CONFIDENTIAL. Use of 10 * Second Life Viewer Source Code
10 * this source code is governed by the Linden Lab Source Code Disclosure 11 * The source code in this file ("Source Code") is provided by Linden Lab
11 * Agreement ("Agreement") previously entered between you and Linden 12 * to you under the terms of the GNU General Public License, version 2.0
12 * Lab. By accessing, using, copying, modifying or distributing this 13 * ("GPL"), unless you have obtained a separate licensing agreement
13 * software, you acknowledge that you have been informed of your 14 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * obligations under the Agreement and agree to abide by those obligations. 15 * the GPL can be found in doc/GPL-license.txt in this distribution, or
16 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
17 *
18 * There are special exceptions to the terms and conditions of the GPL as
19 * it is applied to this Source Code. View the full text of the exception
20 * in the file doc/FLOSS-exception.txt in this software distribution, or
21 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 *
23 * By copying, modifying or distributing this software, you acknowledge
24 * that you have read and understood your obligations described above,
25 * and agree to abide by those obligations.
15 * 26 *
16 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
17 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
@@ -37,6 +48,18 @@ LLFloaterURLDisplay::LLFloaterURLDisplay(const LLSD& sd)
37 mFactoryMap["place_details_panel"] = LLCallbackMap(LLFloaterURLDisplay::createPlaceDetail, this); 48 mFactoryMap["place_details_panel"] = LLCallbackMap(LLFloaterURLDisplay::createPlaceDetail, this);
38 gUICtrlFactory->buildFloater(this, "floater_preview_url.xml", &getFactoryMap()); 49 gUICtrlFactory->buildFloater(this, "floater_preview_url.xml", &getFactoryMap());
39 this->setVisible(false); 50 this->setVisible(false);
51
52 // If positioned at 0,0 the teleport button is behind the toolbar.
53 LLRect r = getRect();
54 if (r.mBottom == 0 && r.mLeft == 0)
55 {
56 // first use, center it
57 center();
58 }
59 else
60 {
61 gFloaterView->adjustToFitScreen(this, FALSE);
62 }
40} 63}
41 64
42LLFloaterURLDisplay::~LLFloaterURLDisplay() 65LLFloaterURLDisplay::~LLFloaterURLDisplay()