aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterlandmark.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llfloaterlandmark.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llfloaterlandmark.cpp')
-rw-r--r--linden/indra/newview/llfloaterlandmark.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/newview/llfloaterlandmark.cpp b/linden/indra/newview/llfloaterlandmark.cpp
index 0011daf..e10dec9 100644
--- a/linden/indra/newview/llfloaterlandmark.cpp
+++ b/linden/indra/newview/llfloaterlandmark.cpp
@@ -64,7 +64,7 @@
64#include "llviewerobject.h" 64#include "llviewerobject.h"
65#include "llviewercontrol.h" 65#include "llviewercontrol.h"
66#include "llglheaders.h" 66#include "llglheaders.h"
67#include "llvieweruictrlfactory.h" 67#include "lluictrlfactory.h"
68 68
69#include "roles_constants.h" 69#include "roles_constants.h"
70 70
@@ -111,20 +111,20 @@ LLFloaterLandmark::LLFloaterLandmark(const LLSD& data)
111 mSearchEdit(NULL), 111 mSearchEdit(NULL),
112 mContextConeOpacity(0.f) 112 mContextConeOpacity(0.f)
113{ 113{
114 gUICtrlFactory->buildFloater(this,"floater_landmark_ctrl.xml"); 114 LLUICtrlFactory::getInstance()->buildFloater(this,"floater_landmark_ctrl.xml");
115 115
116 mTentativeLabel = LLUICtrlFactory::getTextBoxByName(this,"Multiple"); 116 mTentativeLabel = getChild<LLTextBox>("Multiple");
117 117
118 mResolutionLabel = LLUICtrlFactory::getTextBoxByName(this,"unknown"); 118 mResolutionLabel = getChild<LLTextBox>("unknown");
119 119
120 120
121 childSetCommitCallback("show_folders_check", onShowFolders, this); 121 childSetCommitCallback("show_folders_check", onShowFolders, this);
122 childSetVisible("show_folders_check", FALSE); 122 childSetVisible("show_folders_check", FALSE);
123 123
124 mSearchEdit = (LLSearchEditor*)getCtrlByNameAndType("inventory search editor", WIDGET_TYPE_SEARCH_EDITOR); 124 mSearchEdit = getChild<LLSearchEditor>("inventory search editor");
125 mSearchEdit->setSearchCallback(onSearchEdit, this); 125 mSearchEdit->setSearchCallback(onSearchEdit, this);
126 126
127 mInventoryPanel = (LLInventoryPanel*)this->getCtrlByNameAndType("inventory panel", WIDGET_TYPE_INVENTORY_PANEL); 127 mInventoryPanel = getChild<LLInventoryPanel>("inventory panel");
128 128
129 if(mInventoryPanel) 129 if(mInventoryPanel)
130 { 130 {
@@ -221,13 +221,13 @@ BOOL LLFloaterLandmark::handleDragAndDrop(
221 return handled; 221 return handled;
222} 222}
223 223
224BOOL LLFloaterLandmark::handleKeyHere(KEY key, MASK mask, BOOL called_from_parent) 224BOOL LLFloaterLandmark::handleKeyHere(KEY key, MASK mask)
225{ 225{
226 LLFolderView* root_folder = mInventoryPanel->getRootFolder(); 226 LLFolderView* root_folder = mInventoryPanel->getRootFolder();
227 227
228 if (root_folder && mSearchEdit) 228 if (root_folder && mSearchEdit)
229 { 229 {
230 if (!called_from_parent && mSearchEdit->hasFocus() && 230 if (mSearchEdit->hasFocus() &&
231 (key == KEY_RETURN || key == KEY_DOWN) && 231 (key == KEY_RETURN || key == KEY_DOWN) &&
232 mask == MASK_NONE) 232 mask == MASK_NONE)
233 { 233 {
@@ -253,7 +253,7 @@ BOOL LLFloaterLandmark::handleKeyHere(KEY key, MASK mask, BOOL called_from_paren
253 } 253 }
254 } 254 }
255 255
256 return LLFloater::handleKeyHere(key, mask, called_from_parent); 256 return LLFloater::handleKeyHere(key, mask);
257} 257}
258 258
259// virtual 259// virtual
@@ -329,7 +329,7 @@ void LLFloaterLandmark::onBtnNew(void* userdata)
329 llwarns << "No agent region" << llendl; 329 llwarns << "No agent region" << llendl;
330 return; 330 return;
331 } 331 }
332 LLParcel* agent_parcel = gParcelMgr->getAgentParcel(); 332 LLParcel* agent_parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
333 if (!agent_parcel) 333 if (!agent_parcel)
334 { 334 {
335 llwarns << "No agent parcel" << llendl; 335 llwarns << "No agent parcel" << llendl;