#include "llmenugl.h"
#include "llfilepicker.h"
Include dependency graph for llviewermenu.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Copyright (c) 2002-2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llviewermenu.h.
Definition at line 5832 of file llviewermenu.cpp.
References LLInventoryModel::getItem(), and gInventory.
Referenced by LLVOAvatar::buildCharacter(), and LLObjectBridge::buildContextMenu().
const char* build_extensions_string | ( | LLFilePicker::ELoadFilter | filter | ) |
Definition at line 2417 of file llviewermenu.cpp.
References ALL_FILE_EXTENSIONS, LLFilePicker::FFLOAD_ALL, LLFilePicker::FFLOAD_ANIM, LLFilePicker::FFLOAD_IMAGE, LLFilePicker::FFLOAD_SLOBJECT, LLFilePicker::FFLOAD_WAV, and LLFilePicker::FFLOAD_XML.
Referenced by upload_pick().
void cleanup_menus | ( | ) |
Definition at line 1594 of file llviewermenu.cpp.
References clear_landmark_menu(), gLandmarkMenu, gLandmarkObserver, gMenuBarView, gMenuHolder, gMenuParcelObserver, gPieAttachment, gPieAvatar, gPieLand, gPieObject, gPieSelf, gPopupMenuView, NULL, and sMenus.
Referenced by cleanup_app().
Definition at line 5736 of file llviewermenu.cpp.
References LLAgent::clearFocusObject(), gAgent, LLViewerObject::getMaxScale(), LLAgent::getPosGlobalFromAgent(), LLAgent::getPositionAgent(), LLViewerObject::getPositionAgent(), LLSelectMgr::getSelection(), gSelectMgr, near_attach_object(), LLVector3::normVec(), NULL, and LLAgent::startAutoPilotGlobal().
Referenced by LLObjectAttachToAvatar::handleEvent().
Definition at line 5849 of file llviewermenu.cpp.
References LLInventoryModel::getItem(), and gInventory.
Referenced by LLVOAvatar::buildCharacter().
Definition at line 6720 of file llviewermenu.cpp.
References gAgent, LLAgent::getGodLevel(), and GOD_NOT.
Referenced by init_server_menu().
Definition at line 6715 of file llviewermenu.cpp.
References gAgent, LLAgent::getGodLevel(), and GOD_CUSTOMER_SERVICE.
Referenced by enable_region_owner(), init_debug_avatar_menu(), and init_server_menu().
Definition at line 6705 of file llviewermenu.cpp.
References gAgent, LLAgent::getGodLevel(), and GOD_FULL.
Definition at line 6710 of file llviewermenu.cpp.
References gAgent, LLAgent::getGodLevel(), and GOD_LIAISON.
void handle_delete_object | ( | ) |
Definition at line 5813 of file llviewermenu.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ObjectData, _PREHASH_ObjectLocalID, _PREHASH_SessionID, LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLViewerObject::getLocalID(), LLViewerJointAttachment::getObject(), LLAgent::getRegionHost(), LLAgent::getSessionID(), gMessageSystem, LLMessageSystem::newMessage(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().
Referenced by LLVOAvatar::buildCharacter().
Definition at line 4747 of file llviewermenu.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ObjectData, _PREHASH_ObjectExportSelected, _PREHASH_ObjectID, _PREHASH_RequestID, _PREHASH_VolumeDetail, LLMessageSystem::addS16Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLUUID::generate(), LLViewerRegion::getHost(), LLViewerObject::getID(), LLAgent::getID(), LLAgent::getRegion(), LLSelectMgr::getSelection(), gExportDialog, gExportDirectory, gExporterRequestID, gMessageSystem, gSelectMgr, llendl, llinfos, LLUploadDialog::modalUploadDialog(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().
bool handle_give_money_dialog | ( | ) |
Definition at line 5043 of file llviewermenu.cpp.
References LLViewerWindow::alertXml(), complete_give_money(), gAgent, LLAgent::getBusy(), LLSelectMgr::getSelection(), gSelectMgr, and gViewerWindow.
Referenced by LLPayObject::handleEvent(), and LLToolPie::selectionPropertiesReceived().
bool handle_go_to | ( | ) |
Definition at line 2106 of file llviewermenu.cpp.
References ANIMATE, LLViewerParcelMgr::deselectLand(), gAgent, LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLAgent::getFocusTargetGlobal(), LLVOAvatar::getID(), gLastHitPosGlobal, gParcelMgr, gSavedSettings, llformat(), LLVector3d::mdV, send_generic_message(), LLAgent::setFocusGlobal(), LLAgent::setFocusOnAvatar(), TRUE, LLFirstUse::useGoTo(), VX, VY, and VZ.
Referenced by LLToolPie::handleDoubleClick(), and LLGoToObject::handleEvent().
bool handle_object_open | ( | ) |
Definition at line 1726 of file llviewermenu.cpp.
References LLViewerObjectList::findObject(), gLastHitObjectID, gObjectList, and LLFloaterOpenObject::show().
Referenced by LLObjectOpen::handleEvent(), and LLToolPie::selectionPropertiesReceived().
void handle_reset_view | ( | ) |
Definition at line 3231 of file llviewermenu.cpp.
References FALSE, NULL, and LLFloaterWorldMap::show().
bool handle_sit_or_stand | ( | ) |
Definition at line 2861 of file llviewermenu.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_AgentRequestSit, _PREHASH_Offset, _PREHASH_SessionID, _PREHASH_TargetID, _PREHASH_TargetObject, LLMessageSystem::addUUIDFast(), LLMessageSystem::addVector3Fast(), AGENT_CONTROL_STAND_UP, LLViewerObjectList::findObject(), gAgent, LLAgent::getID(), LLPrimitive::getPCode(), LLViewerObject::getRegion(), LLAgent::getSessionID(), gLastHitNonFloraObjectID, gMessageSystem, gObjectList, gViewerWindow, LLViewerWindow::lastNonFloraObjectHitOffset(), LL_PCODE_VOLUME, LLViewerObject::mID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLViewerRegion::sendReliableMessage(), LLAgent::setControlFlags(), LLVector3::setVec(), and sitting_on_selection().
Referenced by LLObjectSitOrStand::handleEvent(), and LLToolPie::pickAndShowMenu().
void init_menus | ( | ) |
Definition at line 614 of file llviewermenu.cpp.
References LLView::addChild(), LLMenuBarGL::appendMenu(), LLUICtrlFactory::buildMenu(), LLUICtrlFactory::buildPieMenu(), LLPanel::childSetLabelArg(), CLIENT_MENU_NAME, LLMenuGL::createJumpKeys(), FALSE, gAFKMenu, gAgent, gAttachPieMenu, gAttachScreenPieMenu, gAttachSubMenu, gBusyMenu, gColors, gDetachPieMenu, gDetachScreenPieMenu, gDetachSubMenu, LLView::getChildByName(), LLPanel::getChildByName(), LLMenuGL::getChildMenuByName(), LLControlGroup::getColor(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLViewerWindow::getRootView(), LLRectBase< Type >::getWidth(), gInProductionGrid, gLandmarkObserver, gMenuBarView, gMenuHolder, gMenuParcelObserver, gPieAttachment, gPieAvatar, gPieLand, gPieObject, gPieRate, gPieSelf, gPopupMenuView, gUICtrlFactory, gViewerWindow, init_client_menu(), init_server_menu(), initialize_menus(), LLAgent::isTeen(), MENU_BAR_HEIGHT, S32, SERVER_MENU_NAME, LLMenuGL::setBackgroundColor(), LLView::setFollowsAll(), LLView::setRect(), LLView::setVisible(), LLMenuGL::setVisible(), show_debug_menus(), LLMenuGL::sMenuContainer, top, TRUE, LLMenuGL::updateParent(), and width.
Referenced by LLViewerWindow::initWorldUI().
Definition at line 2776 of file llviewermenu.cpp.
References LLAvatarTracker::instance(), and NULL.
Referenced by LLIMMgr::defaultIMTypeForAgent(), LLNetMap::draw(), LLAvatarEnableAddFriend::handleEvent(), LLAvatarAddFriend::handleEvent(), is_agent_mappable(), and LLPanelAvatar::setAvatarID().
Definition at line 2781 of file llviewermenu.cpp.
References LLRelationship::GRANT_MAP_LOCATION, LLAvatarTracker::instance(), and is_agent_friend().
Referenced by LLPanelAvatar::setAvatarID().
void load_url_local_file | ( | const char * | file_name | ) |
Definition at line 6350 of file llviewermenu.cpp.
References FALSE, LLControlGroup::getBOOL(), gSavedSettings, and LLControlGroup::setBOOL().
Referenced by init_client_menu(), init_debug_rendering_menu(), init_debug_ui_menu(), and init_debug_world_menu().
Definition at line 6065 of file llviewermenu.cpp.
References LLViewerJointAttachment::getObject(), and NULL.
Referenced by LLVOAvatar::buildCharacter(), and LLMakeOutfitDialog::LLMakeOutfitDialog().
Definition at line 6026 of file llviewermenu.cpp.
References FALSE, LLSelectMgr::getSelection(), gSelectMgr, LL_PCODE_VOLUME, LLViewerObject::mChildList, and NULL.
Referenced by LLVOAvatar::buildCharacter(), and LLObjectEnableWear::handleEvent().
void pre_init_menus | ( | ) |
Definition at line 585 of file llviewermenu.cpp.
References gColors, LLControlGroup::getColor(), LLMenuGL::setDefaultBackgroundColor(), LLMenuItemGL::setDisabledColor(), LLMenuItemGL::setEnabledColor(), LLMenuItemGL::setHighlightBGColor(), and LLMenuItemGL::setHighlightFGColor().
Referenced by LLViewerWindow::initWorldUI().
void process_grant_godlike_powers | ( | LLMessageSystem * | msg, | |
void ** | ||||
) |
Definition at line 2696 of file llviewermenu.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_GodLevel, _PREHASH_GrantData, _PREHASH_SessionID, gAgent, LLAgent::getID(), LLAgent::getSessionID(), LLMessageSystem::getU8Fast(), LLMessageSystem::getUUIDFast(), llendl, llwarns, and set_god_level().
Referenced by register_viewer_callbacks().
void show_debug_menus | ( | ) |
bool toggle_build_mode | ( | ) |
Definition at line 1773 of file llviewermenu.cpp.
References ANIMATE, LLAgent::cameraOrbitOver(), LLAgent::cameraZoomIn(), DEG_TO_RAD, f, FALSE, gAgent, gBasicToolset, LLAgent::getAtAxis(), LLControlGroup::getBOOL(), LLToolMgr::getCurrentToolset(), LLAgent::getFocusOnAvatar(), LLAgent::getPositionGlobal(), gSavedSettings, gToolCreate, gToolMgr, handle_reset_view(), LLToolMgr::inEdit(), LLToolset::selectTool(), LLToolMgr::setCurrentToolset(), LLAgent::setFocusGlobal(), LLAgent::setFocusOnAvatar(), and LLFirstUse::useBuild().
Referenced by LLViewBuildMode::handleEvent(), and LLToolBar::onClickBuild().
Definition at line 286 of file llviewermenu.cpp.
Referenced by LLAgent::clearAFK(), init_menus(), and LLAgent::setAFK().
Definition at line 279 of file llviewermenu.cpp.
Referenced by LLVOAvatar::buildCharacter(), and init_menus().
Definition at line 278 of file llviewermenu.cpp.
Referenced by LLVOAvatar::buildCharacter(), and init_menus().
Definition at line 274 of file llviewermenu.cpp.
Referenced by LLVOAvatar::buildCharacter(), and init_menus().
Definition at line 287 of file llviewermenu.cpp.
Referenced by LLAgent::clearBusy(), init_menus(), and LLAgent::setBusy().
Definition at line 281 of file llviewermenu.cpp.
Referenced by LLVOAvatar::buildCharacter(), and init_menus().
Definition at line 282 of file llviewermenu.cpp.
Referenced by LLVOAvatar::buildCharacter(), and init_menus().
Definition at line 275 of file llviewermenu.cpp.
Referenced by LLVOAvatar::buildCharacter(), and init_menus().
Definition at line 243 of file llviewermenu.cpp.
Definition at line 244 of file llviewermenu.cpp.
Referenced by addMenu(), LLVOAvatar::buildCharacter(), LLMenuParcelObserver::changed(), cleanup_menus(), LLObjectEnableReportAbuse::handleEvent(), LLObjectEnableTouch::handleEvent(), LLObjectEnableOpen::handleEvent(), LLViewCheckBuildMode::handleEvent(), LLLandEnableBuyPass::handleEvent(), LLEnableEdit::handleEvent(), LLSelfEnableRemoveAllAttachments::handleEvent(), LLObjectEnableMute::handleEvent(), LLAvatarVisibleDebug::handleEvent(), LLAvatarEnableDebug::handleEvent(), LLAvatarEnableFreezeEject::handleEvent(), LLObjectEnableBuy::handleEvent(), LLSelfEnableStandUp::handleEvent(), LLAvatarEnableAddFriend::handleEvent(), LLEditEnableCustomizeAvatar::handleEvent(), LLEditEnableDuplicate::handleEvent(), LLObjectEnableReturn::handleEvent(), LLToolsEnableBuyOrTake::handleEvent(), LLToolsEnableLink::handleEvent(), LLToolsEnableUnlink::handleEvent(), LLEditEnableCut::handleEvent(), LLEditEnableCopy::handleEvent(), LLEditEnablePaste::handleEvent(), LLEditEnableDelete::handleEvent(), LLEditDelete::handleEvent(), LLObjectEnableDelete::handleEvent(), LLObjectDelete::handleEvent(), LLViewEnableLastChatter::handleEvent(), LLEditEnableDeselect::handleEvent(), LLEditEnableSelectAll::handleEvent(), LLEditEnableUndo::handleEvent(), LLEditEnableRedo::handleEvent(), LLWorldCheckAlwaysRun::handleEvent(), LLEnablePayObject::handleEvent(), LLObjectEnableSitOrStand::handleEvent(), LLShowFloater::handleEvent(), LLFloaterVisible::handleEvent(), LLWorldEnableBuyLand::handleEvent(), LLAttachmentEnableDrop::handleEvent(), LLAttachmentEnableDetach::handleEvent(), LLSomethingSelected::handleEvent(), LLSomethingSelectedNoHUD::handleEvent(), LLEditableSelected::handleEvent(), LLToolsEnableTakeCopy::handleEvent(), LLToolsEnableSaveToInventory::handleEvent(), LLToolsEnableSaveToObjectInventory::handleEvent(), LLViewEnableMouselook::handleEvent(), LLToolsEnableToolNotPie::handleEvent(), LLWorldEnableCreateLandmark::handleEvent(), LLWorldEnableSetHomeLocation::handleEvent(), LLWorldEnableTeleportHome::handleEvent(), LLViewCheckShowHoverTips::handleEvent(), LLViewCheckHighlightTransparent::handleEvent(), LLViewCheckBeaconEnabled::handleEvent(), LLViewCheckRenderType::handleEvent(), LLViewCheckHUDAttachments::handleEvent(), LLEditEnableTakeOff::handleEvent(), LLFileEnableSaveAs::handleEvent(), LLFileEnableUpload::handleEvent(), LLFileEnableCloseWindow::handleEvent(), LLViewerWindow::handleKey(), init_menu_file(), init_menus(), LLViewerWindow::initWorldUI(), LLToolPie::pickAndShowMenu(), process_economy_data(), and LLAgent::resetView().
Definition at line 251 of file llviewermenu.cpp.
Referenced by cleanup_menus(), LLWornItemFetchedObserver::done(), init_menus(), and LLToolPie::pickAndShowMenu().
Definition at line 249 of file llviewermenu.cpp.
Referenced by cleanup_menus(), init_menus(), and LLToolPie::pickAndShowMenu().
Definition at line 252 of file llviewermenu.cpp.
Referenced by cleanup_menus(), init_menus(), and LLToolPie::pickAndShowMenu().
Definition at line 250 of file llviewermenu.cpp.
Referenced by cleanup_menus(), LLSelectMgr::deselectAllIfTooFar(), dialog_refresh_all(), LLEditDelete::handleEvent(), LLObjectDelete::handleEvent(), init_menus(), and LLToolPie::pickAndShowMenu().
Definition at line 277 of file llviewermenu.cpp.
Referenced by LLSelectMgr::deselectAllIfTooFar(), and init_menus().
Definition at line 248 of file llviewermenu.cpp.
Referenced by cleanup_menus(), init_menus(), and LLToolPie::pickAndShowMenu().
Definition at line 245 of file llviewermenu.cpp.
Referenced by cleanup_menus(), LLToolCompGun::handleHover(), init_menus(), and LLSelectMgr::processObjectProperties().
Definition at line 276 of file llviewermenu.cpp.
const LLString SAVE_INTO_INVENTORY |
Referenced by LLSelectMgr::processObjectProperties().