LLFloaterLandmark Class Reference

#include <llfloaterlandmark.h>

Inheritance diagram for LLFloaterLandmark:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterLandmark:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFloaterLandmark (const LLSD &data)
virtual ~LLFloaterLandmark ()
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
virtual BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
virtual void onClose (bool app_quitting)
const LLUUIDgetAssetID ()
const LLUUIDfindItemID (const LLUUID &asset_id, BOOL copyable_only)
void setDirty (BOOL b)
BOOL isDirty ()
void setActive (BOOL active)

Static Public Member Functions

static void onBtnClose (void *userdata)
static void onBtnNew (void *userdata)
static void onBtnEdit (void *userdata)
static void onBtnDelete (void *userdata)
static void onBtnNewFolder (void *userdata)
static void onBtnRename (void *userdata)
static void onSelectionChange (const std::deque< LLFolderViewItem * > &items, BOOL user_action, void *data)
static void onShowFolders (LLUICtrl *ctrl, void *userdata)
static void onSearchEdit (const LLString &search_string, void *user_data)

Protected Attributes

LLPointer< LLViewerImagemLandmarkp
LLUUID mImageAssetID
LLUUID mWhiteImageAssetID
LLUUID mSpecialCurrentImageAssetID
LLUUID mOriginalImageAssetID
LLTextBoxmTentativeLabel
LLTextBoxmResolutionLabel
LLString mPendingName
BOOL mIsDirty
BOOL mActive
LLSearchEditormSearchEdit
LLInventoryPanelmInventoryPanel
PermissionMask mImmediateFilterPermMask
PermissionMask mNonImmediateFilterPermMask
BOOL mNoCopyLandmarkSelected
F32 mContextConeOpacity
LLSaveFolderStatemSavedFolderState

Detailed Description

Definition at line 49 of file llfloaterlandmark.h.


Constructor & Destructor Documentation

LLFloaterLandmark::LLFloaterLandmark ( const LLSD data  ) 

Definition at line 96 of file llfloaterlandmark.cpp.

References LLAssetType::AT_LANDMARK, LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetVisible(), FALSE, findItemID(), LLPanel::getCtrlByNameAndType(), LLFolderView::getFilter(), LLInventoryPanel::getRootFolder(), LLUICtrlFactory::getTextBoxByName(), gUICtrlFactory, LLInventoryType::IT_LANDMARK, LLInventoryFilter::markDefault(), mImageAssetID, mInventoryPanel, mNoCopyLandmarkSelected, mResolutionLabel, mSavedFolderState, mSearchEdit, mTentativeLabel, onBtnClose(), onBtnDelete(), onBtnEdit(), onBtnNew(), onBtnNewFolder(), onBtnRename(), onSearchEdit(), onSelectionChange(), onShowFolders(), LLInventoryPanel::openDefaultFolderForType(), LLInventoryPanel::setAllowMultiSelect(), LLSaveFolderState::setApply(), LLFloater::setCanMinimize(), LLInventoryPanel::setFilterTypes(), LLSearchEditor::setSearchCallback(), LLInventoryPanel::setSelectCallback(), LLInventoryPanel::setSelection(), LLInventoryPanel::setShowFolderState(), LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS, TAKE_FOCUS_NO, WIDGET_TYPE_INVENTORY_PANEL, and WIDGET_TYPE_SEARCH_EDITOR.

LLFloaterLandmark::~LLFloaterLandmark (  )  [virtual]

Definition at line 158 of file llfloaterlandmark.cpp.

References mSavedFolderState.


Member Function Documentation

const LLUUID & LLFloaterLandmark::findItemID ( const LLUUID asset_id,
BOOL  copyable_only 
)

Definition at line 258 of file llfloaterlandmark.cpp.

References LLPermissions::allowCopyBy(), LLInventoryModel::collectDescendentsIf(), LLDynamicArray< Type, BlockSize >::count(), gAgent, LLAgent::getGroupID(), LLAgent::getID(), gInventory, i, LLInventoryModel::INCLUDE_TRASH, LLUUID::null, and S32.

Referenced by LLFloaterLandmark().

const LLUUID& LLFloaterLandmark::getAssetID (  )  [inline]

Definition at line 65 of file llfloaterlandmark.h.

References mImageAssetID.

BOOL LLFloaterLandmark::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void cargo_data,
EAcceptance accept,
LLString tooltip_msg 
) [virtual]

Reimplemented from LLView.

Definition at line 169 of file llfloaterlandmark.cpp.

References ACCEPT_NO, ACCEPT_YES_SINGLE, LLPermissions::allowCopyBy(), LLPermissions::allowModifyBy(), LLPermissions::allowOperationBy(), DAD_LANDMARK, FALSE, gAgent, LLAgent::getID(), LLView::getName(), LLInventoryItem::getPermissions(), lldebugst, llendl, mImmediateFilterPermMask, PERM_COPY, PERM_MODIFY, PERM_TRANSFER, and TRUE.

BOOL LLFloaterLandmark::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLPanel.

Definition at line 215 of file llfloaterlandmark.cpp.

References FALSE, LLUICtrl::focusFirstItem(), gAgent, LLFolderView::getCurSelectedItem(), LLAgent::getInventoryRootID(), LLFolderView::getItemByID(), LLInventoryPanel::getRootFolder(), LLPanel::handleKeyHere(), LLUICtrl::hasFocus(), KEY_DOWN, KEY_RETURN, KEY_UP, MASK_NONE, mInventoryPanel, mSearchEdit, LLFolderView::scrollToShowSelection(), LLFolderView::setFocus(), LLFolderView::setSelection(), and TRUE.

BOOL LLFloaterLandmark::isDirty (  )  [inline]

Definition at line 69 of file llfloaterlandmark.h.

References mIsDirty.

void LLFloaterLandmark::onBtnClose ( void userdata  )  [static]

Definition at line 296 of file llfloaterlandmark.cpp.

References FALSE.

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::onBtnDelete ( void userdata  )  [static]

Definition at line 355 of file llfloaterlandmark.cpp.

References LLInventoryModel::accountForUpdate(), LLAssetType::AT_TRASH, FALSE, LLInventoryModel::findCategoryUUIDForType(), LLInventoryModel::getItem(), LLInventoryObject::getParentUUID(), gInventory, LLInventoryModel::notifyObservers(), and LLInventoryModel::updateItem().

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::onBtnEdit ( void userdata  )  [static]

Definition at line 304 of file llfloaterlandmark.cpp.

References LLInventoryModel::getItem(), LLInventoryObject::getName(), gInventory, open_landmark(), and TRUE.

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::onBtnNew ( void userdata  )  [static]

Definition at line 315 of file llfloaterlandmark.cpp.

References LLViewerWindow::alertXml(), LLAssetType::AT_LANDMARK, LLAgent::buildLocationString(), create_inventory_item(), LLInventoryModel::findCategoryUUIDForType(), gAgent, LLViewerParcelMgr::getAgentParcel(), LLParcel::getAllowLandmark(), LLAgent::getID(), LLAgent::getRegion(), LLAgent::getSessionID(), gInventory, GP_LAND_ALLOW_LANDMARK, gParcelMgr, gViewerWindow, LLViewerParcelMgr::isParcelOwnedByAgent(), LLInventoryType::IT_LANDMARK, llendl, llwarns, NOT_WEARABLE, NULL, PERM_ALL, and LLTransactionID::tnull.

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::onBtnNewFolder ( void userdata  )  [static]

Definition at line 350 of file llfloaterlandmark.cpp.

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::onBtnRename ( void userdata  )  [static]

Definition at line 394 of file llfloaterlandmark.cpp.

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 251 of file llfloaterlandmark.cpp.

References LLFloater::destroy().

void LLFloaterLandmark::onSearchEdit ( const LLString search_string,
void user_data 
) [static]

Definition at line 436 of file llfloaterlandmark.cpp.

References LLFolderViewFolder::applyFunctorRecursively(), FALSE, LLInventoryPanel::getFilterSubString(), LLInventoryPanel::getRootFolder(), LLFolderView::isFilterModified(), mInventoryPanel, mSavedFolderState, LLFolderView::scrollToShowSelection(), LLSaveFolderState::setApply(), LLInventoryPanel::setFilterSubString(), LLStringBase< char >::toUpper(), and TRUE.

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::onSelectionChange ( const std::deque< LLFolderViewItem * > &  items,
BOOL  user_action,
void data 
) [static]

Definition at line 400 of file llfloaterlandmark.cpp.

References LLPermissions::allowCopyBy(), FALSE, gAgent, LLAgent::getID(), LLInventoryModel::getItem(), LLInventoryItem::getPermissions(), LLInventoryObject::getUUID(), gInventory, and TRUE.

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::onShowFolders ( LLUICtrl ctrl,
void userdata 
) [static]

Definition at line 421 of file llfloaterlandmark.cpp.

References LLCheckBoxCtrl::get(), mInventoryPanel, LLInventoryPanel::setShowFolderState(), LLInventoryFilter::SHOW_NO_FOLDERS, and LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS.

Referenced by LLFloaterLandmark().

void LLFloaterLandmark::setActive ( BOOL  active  ) 

Definition at line 163 of file llfloaterlandmark.cpp.

References mActive.

void LLFloaterLandmark::setDirty ( BOOL  b  )  [inline]

Definition at line 68 of file llfloaterlandmark.h.

References mIsDirty.


Member Data Documentation

BOOL LLFloaterLandmark::mActive [protected]

Definition at line 96 of file llfloaterlandmark.h.

Referenced by setActive().

F32 LLFloaterLandmark::mContextConeOpacity [protected]

Definition at line 103 of file llfloaterlandmark.h.

LLUUID LLFloaterLandmark::mImageAssetID [protected]

Definition at line 85 of file llfloaterlandmark.h.

Referenced by getAssetID(), and LLFloaterLandmark().

PermissionMask LLFloaterLandmark::mImmediateFilterPermMask [protected]

Definition at line 100 of file llfloaterlandmark.h.

Referenced by handleDragAndDrop().

LLInventoryPanel* LLFloaterLandmark::mInventoryPanel [protected]

Definition at line 99 of file llfloaterlandmark.h.

Referenced by handleKeyHere(), LLFloaterLandmark(), onSearchEdit(), and onShowFolders().

BOOL LLFloaterLandmark::mIsDirty [protected]

Definition at line 95 of file llfloaterlandmark.h.

Referenced by isDirty(), and setDirty().

LLPointer<LLViewerImage> LLFloaterLandmark::mLandmarkp [protected]

Definition at line 83 of file llfloaterlandmark.h.

BOOL LLFloaterLandmark::mNoCopyLandmarkSelected [protected]

Definition at line 102 of file llfloaterlandmark.h.

Referenced by LLFloaterLandmark().

PermissionMask LLFloaterLandmark::mNonImmediateFilterPermMask [protected]

Definition at line 101 of file llfloaterlandmark.h.

LLUUID LLFloaterLandmark::mOriginalImageAssetID [protected]

Definition at line 89 of file llfloaterlandmark.h.

LLString LLFloaterLandmark::mPendingName [protected]

Definition at line 94 of file llfloaterlandmark.h.

LLTextBox* LLFloaterLandmark::mResolutionLabel [protected]

Definition at line 92 of file llfloaterlandmark.h.

Referenced by LLFloaterLandmark().

LLSaveFolderState* LLFloaterLandmark::mSavedFolderState [protected]

Definition at line 104 of file llfloaterlandmark.h.

Referenced by LLFloaterLandmark(), onSearchEdit(), and ~LLFloaterLandmark().

LLSearchEditor* LLFloaterLandmark::mSearchEdit [protected]

Definition at line 98 of file llfloaterlandmark.h.

Referenced by handleKeyHere(), and LLFloaterLandmark().

LLUUID LLFloaterLandmark::mSpecialCurrentImageAssetID [protected]

Definition at line 88 of file llfloaterlandmark.h.

LLTextBox* LLFloaterLandmark::mTentativeLabel [protected]

Definition at line 91 of file llfloaterlandmark.h.

Referenced by LLFloaterLandmark().

LLUUID LLFloaterLandmark::mWhiteImageAssetID [protected]

Definition at line 87 of file llfloaterlandmark.h.


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:20 2010 for Second Life Viewer by  doxygen 1.4.7