From 941cb9f4124c9ccfd5c845bc94639fa46df12c3d Mon Sep 17 00:00:00 2001 From: Steven Bennetts Date: Tue, 1 Apr 2008 17:45:04 +0000 Subject: merge release@83343 skinning-1-merge@83714 -> release QAR-424 --- indra/newview/llpanelplace.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'indra/newview/llpanelplace.cpp') diff --git a/indra/newview/llpanelplace.cpp b/indra/newview/llpanelplace.cpp index aa10dda62c..9985486170 100644 --- a/indra/newview/llpanelplace.cpp +++ b/indra/newview/llpanelplace.cpp @@ -52,7 +52,7 @@ #include "lltexturectrl.h" #include "llworldmap.h" #include "llviewerregion.h" -#include "llvieweruictrlfactory.h" +#include "lluictrlfactory.h" //#include "llviewermenu.h" // create_landmark() #include "llweb.h" #include "llsdutil.h" @@ -85,33 +85,33 @@ BOOL LLPanelPlace::postBuild() // Since this is only used in the directory browser, always // disable the snapshot control. Otherwise clicking on it will // open a texture picker. - mSnapshotCtrl = LLViewerUICtrlFactory::getTexturePickerByName(this, "snapshot_ctrl"); + mSnapshotCtrl = getChild("snapshot_ctrl"); mSnapshotCtrl->setEnabled(FALSE); - mNameEditor = LLViewerUICtrlFactory::getTextBoxByName(this, "name_editor"); + mNameEditor = getChild("name_editor"); // Text boxes appear to have a " " in them by default. This breaks the // emptiness test for filling in data from the network. Slam to empty. mNameEditor->setText( LLString::null ); - mDescEditor = LLUICtrlFactory::getTextEditorByName(this, "desc_editor"); + mDescEditor = getChild("desc_editor"); - mInfoEditor = LLViewerUICtrlFactory::getTextBoxByName(this, "info_editor"); + mInfoEditor = getChild("info_editor"); - mLocationEditor = LLViewerUICtrlFactory::getTextBoxByName(this, "location_editor"); + mLocationEditor = getChild("location_editor"); - mTeleportBtn = LLViewerUICtrlFactory::getButtonByName(this, "teleport_btn"); + mTeleportBtn = getChild( "teleport_btn"); mTeleportBtn->setClickedCallback(onClickTeleport); mTeleportBtn->setCallbackUserData(this); - mMapBtn = LLViewerUICtrlFactory::getButtonByName(this, "map_btn"); + mMapBtn = getChild( "map_btn"); mMapBtn->setClickedCallback(onClickMap); mMapBtn->setCallbackUserData(this); - //mLandmarkBtn = LLViewerUICtrlFactory::getButtonByName(this, "landmark_btn"); + //mLandmarkBtn = getChild( "landmark_btn"); //mLandmarkBtn->setClickedCallback(onClickLandmark); //mLandmarkBtn->setCallbackUserData(this); - mAuctionBtn = LLViewerUICtrlFactory::getButtonByName(this, "auction_btn"); + mAuctionBtn = getChild( "auction_btn"); mAuctionBtn->setClickedCallback(onClickAuction); mAuctionBtn->setCallbackUserData(this); @@ -371,9 +371,9 @@ void LLPanelPlace::onClickTeleport(void* data) LLPanelPlace* self = (LLPanelPlace*)data; LLView* parent_viewp = self->getParent(); - if (parent_viewp->getWidgetType() == WIDGET_TYPE_FLOATER) + LLFloater* parent_floaterp = dynamic_cast(parent_viewp); + if (parent_floaterp) { - LLFloater* parent_floaterp = (LLFloater*)parent_viewp; parent_floaterp->close(); } // LLFloater* parent_floaterp = (LLFloater*)self->getParent(); -- cgit v1.2.3