aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelplace.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/llpanelplace.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/llpanelplace.cpp')
-rw-r--r--linden/indra/newview/llpanelplace.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/linden/indra/newview/llpanelplace.cpp b/linden/indra/newview/llpanelplace.cpp
index 2b50a9d..e7dc08f 100644
--- a/linden/indra/newview/llpanelplace.cpp
+++ b/linden/indra/newview/llpanelplace.cpp
@@ -52,7 +52,7 @@
52#include "lltexturectrl.h" 52#include "lltexturectrl.h"
53#include "llworldmap.h" 53#include "llworldmap.h"
54#include "llviewerregion.h" 54#include "llviewerregion.h"
55#include "llvieweruictrlfactory.h" 55#include "lluictrlfactory.h"
56//#include "llviewermenu.h" // create_landmark() 56//#include "llviewermenu.h" // create_landmark()
57#include "llweb.h" 57#include "llweb.h"
58#include "llsdutil.h" 58#include "llsdutil.h"
@@ -85,33 +85,33 @@ BOOL LLPanelPlace::postBuild()
85 // Since this is only used in the directory browser, always 85 // Since this is only used in the directory browser, always
86 // disable the snapshot control. Otherwise clicking on it will 86 // disable the snapshot control. Otherwise clicking on it will
87 // open a texture picker. 87 // open a texture picker.
88 mSnapshotCtrl = LLViewerUICtrlFactory::getTexturePickerByName(this, "snapshot_ctrl"); 88 mSnapshotCtrl = getChild<LLTextureCtrl>("snapshot_ctrl");
89 mSnapshotCtrl->setEnabled(FALSE); 89 mSnapshotCtrl->setEnabled(FALSE);
90 90
91 mNameEditor = LLViewerUICtrlFactory::getTextBoxByName(this, "name_editor"); 91 mNameEditor = getChild<LLTextBox>("name_editor");
92 // Text boxes appear to have a " " in them by default. This breaks the 92 // Text boxes appear to have a " " in them by default. This breaks the
93 // emptiness test for filling in data from the network. Slam to empty. 93 // emptiness test for filling in data from the network. Slam to empty.
94 mNameEditor->setText( LLString::null ); 94 mNameEditor->setText( LLString::null );
95 95
96 mDescEditor = LLUICtrlFactory::getTextEditorByName(this, "desc_editor"); 96 mDescEditor = getChild<LLTextEditor>("desc_editor");
97 97
98 mInfoEditor = LLViewerUICtrlFactory::getTextBoxByName(this, "info_editor"); 98 mInfoEditor = getChild<LLTextBox>("info_editor");
99 99
100 mLocationEditor = LLViewerUICtrlFactory::getTextBoxByName(this, "location_editor"); 100 mLocationEditor = getChild<LLTextBox>("location_editor");
101 101
102 mTeleportBtn = LLViewerUICtrlFactory::getButtonByName(this, "teleport_btn"); 102 mTeleportBtn = getChild<LLButton>( "teleport_btn");
103 mTeleportBtn->setClickedCallback(onClickTeleport); 103 mTeleportBtn->setClickedCallback(onClickTeleport);
104 mTeleportBtn->setCallbackUserData(this); 104 mTeleportBtn->setCallbackUserData(this);
105 105
106 mMapBtn = LLViewerUICtrlFactory::getButtonByName(this, "map_btn"); 106 mMapBtn = getChild<LLButton>( "map_btn");
107 mMapBtn->setClickedCallback(onClickMap); 107 mMapBtn->setClickedCallback(onClickMap);
108 mMapBtn->setCallbackUserData(this); 108 mMapBtn->setCallbackUserData(this);
109 109
110 //mLandmarkBtn = LLViewerUICtrlFactory::getButtonByName(this, "landmark_btn"); 110 //mLandmarkBtn = getChild<LLButton>( "landmark_btn");
111 //mLandmarkBtn->setClickedCallback(onClickLandmark); 111 //mLandmarkBtn->setClickedCallback(onClickLandmark);
112 //mLandmarkBtn->setCallbackUserData(this); 112 //mLandmarkBtn->setCallbackUserData(this);
113 113
114 mAuctionBtn = LLViewerUICtrlFactory::getButtonByName(this, "auction_btn"); 114 mAuctionBtn = getChild<LLButton>( "auction_btn");
115 mAuctionBtn->setClickedCallback(onClickAuction); 115 mAuctionBtn->setClickedCallback(onClickAuction);
116 mAuctionBtn->setCallbackUserData(this); 116 mAuctionBtn->setCallbackUserData(this);
117 117
@@ -371,9 +371,9 @@ void LLPanelPlace::onClickTeleport(void* data)
371 LLPanelPlace* self = (LLPanelPlace*)data; 371 LLPanelPlace* self = (LLPanelPlace*)data;
372 372
373 LLView* parent_viewp = self->getParent(); 373 LLView* parent_viewp = self->getParent();
374 if (parent_viewp->getWidgetType() == WIDGET_TYPE_FLOATER) 374 LLFloater* parent_floaterp = dynamic_cast<LLFloater*>(parent_viewp);
375 if (parent_floaterp)
375 { 376 {
376 LLFloater* parent_floaterp = (LLFloater*)parent_viewp;
377 parent_floaterp->close(); 377 parent_floaterp->close();
378 } 378 }
379 // LLFloater* parent_floaterp = (LLFloater*)self->getParent(); 379 // LLFloater* parent_floaterp = (LLFloater*)self->getParent();