diff options
Diffstat (limited to 'linden/indra/newview/llfloaterlandmark.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterlandmark.cpp | 58 |
1 files changed, 7 insertions, 51 deletions
diff --git a/linden/indra/newview/llfloaterlandmark.cpp b/linden/indra/newview/llfloaterlandmark.cpp index 71e35e8..e9979de 100644 --- a/linden/indra/newview/llfloaterlandmark.cpp +++ b/linden/indra/newview/llfloaterlandmark.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2007-2008, Linden Research, Inc. | 7 | * Copyright (c) 2007-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -34,73 +34,28 @@ | |||
34 | #include "llfloaterlandmark.h" | 34 | #include "llfloaterlandmark.h" |
35 | 35 | ||
36 | #include "llagent.h" | 36 | #include "llagent.h" |
37 | #include "llviewerimagelist.h" | ||
38 | #include "llcheckboxctrl.h" | 37 | #include "llcheckboxctrl.h" |
39 | #include "llcombobox.h" | ||
40 | #include "llbutton.h" | ||
41 | #include "lldraghandle.h" | ||
42 | #include "llfocusmgr.h" | ||
43 | #include "llviewerimage.h" | ||
44 | #include "llviewerparcelmgr.h" | 38 | #include "llviewerparcelmgr.h" |
45 | #include "llfolderview.h" | 39 | #include "llfolderview.h" |
46 | #include "llinventory.h" | 40 | #include "llinventory.h" |
47 | #include "llinventorymodel.h" | 41 | #include "llinventorymodel.h" |
48 | #include "llinventoryview.h" | 42 | #include "llinventoryview.h" |
49 | #include "lllineeditor.h" | ||
50 | #include "llui.h" | ||
51 | #include "llviewerinventory.h" | 43 | #include "llviewerinventory.h" |
52 | #include "llpermissions.h" | 44 | #include "llpermissions.h" |
53 | #include "llsaleinfo.h" | 45 | #include "llsaleinfo.h" |
54 | #include "llassetstorage.h" | ||
55 | #include "lltextbox.h" | ||
56 | #include "llparcel.h" | 46 | #include "llparcel.h" |
57 | #include "llresizehandle.h" | 47 | |
58 | #include "llscrollcontainer.h" | 48 | #include "llviewerwindow.h" // alertXml |
59 | #include "lltoolmgr.h" | ||
60 | #include "lltoolpipette.h" | ||
61 | |||
62 | #include "lltool.h" | ||
63 | #include "llviewerwindow.h" | ||
64 | #include "llviewerobject.h" | ||
65 | #include "llviewercontrol.h" | 49 | #include "llviewercontrol.h" |
66 | #include "llglheaders.h" | ||
67 | #include "lluictrlfactory.h" | 50 | #include "lluictrlfactory.h" |
68 | 51 | ||
69 | #include "roles_constants.h" | 52 | #include "roles_constants.h" // GP_LAND_ALLOW_LANDMARK |
70 | 53 | ||
71 | 54 | ||
72 | |||
73 | static const S32 CLOSE_BTN_WIDTH = 100; | ||
74 | const S32 PIPETTE_BTN_WIDTH = 32; | ||
75 | static const S32 HPAD = 4; | ||
76 | static const S32 VPAD = 4; | ||
77 | static const S32 LINE = 16; | ||
78 | static const S32 SMALL_BTN_WIDTH = 64; | ||
79 | static const S32 TEX_PICKER_MIN_WIDTH = | ||
80 | (HPAD + | ||
81 | CLOSE_BTN_WIDTH + | ||
82 | HPAD + | ||
83 | CLOSE_BTN_WIDTH + | ||
84 | HPAD + | ||
85 | SMALL_BTN_WIDTH + | ||
86 | HPAD + | ||
87 | SMALL_BTN_WIDTH + | ||
88 | HPAD + | ||
89 | 30 + | ||
90 | RESIZE_HANDLE_WIDTH * 2); | ||
91 | static const S32 CLEAR_BTN_WIDTH = 50; | ||
92 | static const S32 TEX_PICKER_MIN_HEIGHT = 290; | ||
93 | static const S32 FOOTER_HEIGHT = 100; | ||
94 | static const S32 BORDER_PAD = HPAD; | ||
95 | static const S32 TEXTURE_INVENTORY_PADDING = 30; | ||
96 | static const F32 CONTEXT_CONE_IN_ALPHA = 0.0f; | 55 | static const F32 CONTEXT_CONE_IN_ALPHA = 0.0f; |
97 | static const F32 CONTEXT_CONE_OUT_ALPHA = 1.f; | 56 | static const F32 CONTEXT_CONE_OUT_ALPHA = 1.f; |
98 | static const F32 CONTEXT_FADE_TIME = 0.08f; | 57 | static const F32 CONTEXT_FADE_TIME = 0.08f; |
99 | 58 | ||
100 | //static const char CURRENT_IMAGE_NAME[] = "Current Landmark"; | ||
101 | //static const char WHITE_IMAGE_NAME[] = "Blank Landmark"; | ||
102 | //static const char NO_IMAGE_NAME[] = "None"; | ||
103 | |||
104 | 59 | ||
105 | LLFloaterLandmark::LLFloaterLandmark(const LLSD& data) | 60 | LLFloaterLandmark::LLFloaterLandmark(const LLSD& data) |
106 | : | 61 | : |
@@ -167,6 +122,7 @@ LLFloaterLandmark::LLFloaterLandmark(const LLSD& data) | |||
167 | LLFloaterLandmark::~LLFloaterLandmark() | 122 | LLFloaterLandmark::~LLFloaterLandmark() |
168 | { | 123 | { |
169 | delete mSavedFolderState; | 124 | delete mSavedFolderState; |
125 | mSavedFolderState = NULL; | ||
170 | } | 126 | } |
171 | 127 | ||
172 | void LLFloaterLandmark::setActive( BOOL active ) | 128 | void LLFloaterLandmark::setActive( BOOL active ) |