aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirfind.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llpaneldirfind.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llpaneldirfind.cpp')
-rw-r--r--linden/indra/newview/llpaneldirfind.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirfind.cpp b/linden/indra/newview/llpaneldirfind.cpp
index 92964ba..cc0a700 100644
--- a/linden/indra/newview/llpaneldirfind.cpp
+++ b/linden/indra/newview/llpaneldirfind.cpp
@@ -73,7 +73,8 @@ class LLPanelDirFindAll
73public: 73public:
74 LLPanelDirFindAll(const std::string& name, LLFloaterDirectory* floater); 74 LLPanelDirFindAll(const std::string& name, LLFloaterDirectory* floater);
75 75
76 /*Virtual*/ void search(const std::string& search_text); 76 /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent);
77 /*virtual*/ void search(const std::string& search_text);
77}; 78};
78 79
79LLPanelDirFindAll::LLPanelDirFindAll(const std::string& name, LLFloaterDirectory* floater) 80LLPanelDirFindAll::LLPanelDirFindAll(const std::string& name, LLFloaterDirectory* floater)
@@ -168,6 +169,15 @@ void LLPanelDirFind::onVisibilityChange(BOOL new_visibility)
168 LLPanel::onVisibilityChange(new_visibility); 169 LLPanel::onVisibilityChange(new_visibility);
169} 170}
170 171
172// virtual
173void LLPanelDirFindAll::reshape(S32 width, S32 height, BOOL called_from_parent = TRUE)
174{
175 if ( mWebBrowser )
176 mWebBrowser->navigateTo( mWebBrowser->getCurrentNavUrl() );
177
178 LLUICtrl::reshape( width, height, called_from_parent );
179}
180
171void LLPanelDirFindAll::search(const std::string& search_text) 181void LLPanelDirFindAll::search(const std::string& search_text)
172{ 182{
173 if (!search_text.empty()) 183 if (!search_text.empty())
@@ -367,7 +377,7 @@ void LLPanelDirFind::onCommitSearch(LLUICtrl*, void* data)
367void LLPanelDirFind::onClickSearch(void* data) 377void LLPanelDirFind::onClickSearch(void* data)
368{ 378{
369 LLPanelDirFind* self = ( LLPanelDirFind* )data; 379 LLPanelDirFind* self = ( LLPanelDirFind* )data;
370 LLString search_text = self->childGetText("search_editor"); 380 std::string search_text = self->childGetText("search_editor");
371 self->search(search_text); 381 self->search(search_text);
372 382
373 LLFloaterDirectory::sNewSearchCount++; 383 LLFloaterDirectory::sNewSearchCount++;