#include "llmenugl.h"
#include "llfilepicker.h"
Go to the source code of this file.
Copyright (c) 2002-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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.
void attach_label | ( | LLString & | label, | |
void * | user_data | |||
) |
const char* build_extensions_string | ( | LLFilePicker::ELoadFilter | filter | ) |
Definition at line 2532 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 check_toggle_control | ( | LLUICtrl * | , | |
void * | user_data | |||
) |
void cleanup_menus | ( | ) |
Definition at line 1647 of file llviewermenu.cpp.
References clear_landmark_menu(), NULL, and sMenus.
Referenced by LLAppViewer::cleanup().
void confirm_replace_attachment | ( | S32 | option, | |
void * | user_data | |||
) |
Definition at line 5793 of file llviewermenu.cpp.
References LLAgent::clearFocusObject(), gAgent, LLSingleton< LLSelectMgr >::getInstance(), LLViewerObject::getMaxScale(), LLAgent::getPosGlobalFromAgent(), LLAgent::getPositionAgent(), LLViewerObject::getPositionAgent(), LLSelectMgr::getSelection(), near_attach_object(), LLVector3::normVec(), NULL, and LLAgent::startAutoPilotGlobal().
Referenced by LLObjectAttachToAvatar::handleEvent().
void detach_label | ( | LLString & | label, | |
void * | user_data | |||
) |
BOOL enable_copy | ( | void * | ) |
BOOL enable_cut | ( | void * | ) |
BOOL enable_deselect | ( | void * | ) |
BOOL enable_god_basic | ( | void * | user_data | ) |
Definition at line 6778 of file llviewermenu.cpp.
References gAgent, LLAgent::getGodLevel(), and GOD_NOT.
Referenced by init_server_menu().
BOOL enable_god_customer_service | ( | void * | user_data | ) |
Definition at line 6773 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().
BOOL enable_god_full | ( | void * | user_data | ) |
Definition at line 6763 of file llviewermenu.cpp.
References gAgent, LLAgent::getGodLevel(), and GOD_FULL.
BOOL enable_god_liaison | ( | void * | user_data | ) |
Definition at line 6768 of file llviewermenu.cpp.
References gAgent, LLAgent::getGodLevel(), and GOD_LIAISON.
BOOL enable_not_have_card | ( | void * | userdata | ) |
BOOL enable_paste | ( | void * | ) |
BOOL enable_redo | ( | void * | ) |
BOOL enable_save_into_inventory | ( | void * | ) |
BOOL enable_select_all | ( | void * | ) |
BOOL enable_undo | ( | void * | ) |
void exchange_callingcard | ( | const LLUUID & | dest_id | ) |
void handle_copy | ( | void * | ) |
void handle_cut | ( | void * | ) |
void handle_delete | ( | void * | ) |
void handle_delete_object | ( | ) |
void handle_deselect | ( | void * | ) |
void handle_detach | ( | void * | ) |
void handle_detach_from_avatar | ( | void * | user_data | ) |
Definition at line 5870 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().
void handle_duplicate | ( | void * | ) |
void handle_duplicate_in_place | ( | void * | ) |
void handle_export_selected | ( | void * | ) |
Definition at line 4885 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(), LLSingleton< LLSelectMgr >::getInstance(), LLSelectNode::getObject(), LLAgent::getRegion(), LLSelectMgr::getSelection(), gMessageSystem, llendl, llinfos, LLUploadDialog::modalUploadDialog(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().
void handle_gestures | ( | void * | ) |
bool handle_give_money_dialog | ( | ) |
Definition at line 5180 of file llviewermenu.cpp.
References LLViewerWindow::alertXml(), complete_give_money(), gAgent, LLAgent::getBusy(), LLSingleton< LLSelectMgr >::getInstance(), and gViewerWindow.
Referenced by LLPayObject::handleEvent(), and LLToolPie::selectionPropertiesReceived().
bool handle_go_to | ( | ) |
Definition at line 2195 of file llviewermenu.cpp.
References ANIMATE, LLViewerParcelMgr::deselectLand(), gAgent, LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLAgent::getFocusTargetGlobal(), LLVOAvatar::getID(), LLSingleton< LLViewerParcelMgr >::getInstance(), gLastHitPosGlobal, 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().
void handle_object_build | ( | void * | ) |
bool handle_object_open | ( | ) |
Definition at line 1779 of file llviewermenu.cpp.
References LLViewerObjectList::findObject(), gLastHitObjectID, gObjectList, and LLFloaterOpenObject::show().
Referenced by LLObjectOpen::handleEvent(), and LLToolPie::selectionPropertiesReceived().
void handle_paste | ( | void * | ) |
void handle_redo | ( | void * | ) |
void handle_reset_view | ( | ) |
void handle_save_snapshot | ( | void * | ) |
void handle_select_all | ( | void * | ) |
void handle_show_newest_map | ( | void * | ) |
Definition at line 3348 of file llviewermenu.cpp.
References FALSE, NULL, and LLFloaterWorldMap::show().
void handle_sit_down | ( | void * | ) |
bool handle_sit_or_stand | ( | ) |
Definition at line 2963 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(), LLAgent::getSessionID(), gLastHitNonFloraObjectID, gMessageSystem, gObjectList, gViewerWindow, LLViewerWindow::lastNonFloraObjectHitOffset(), LL_PCODE_VOLUME, LLViewerObject::mID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLAgent::setControlFlags(), LLVector3::setVec(), and sitting_on_selection().
Referenced by LLObjectSitOrStand::handleEvent(), and LLToolPie::pickAndShowMenu().
void handle_toggle_flycam | ( | ) |
Definition at line 1889 of file llviewermenu.cpp.
References LLSingleton< LLViewerJoystick >::getInstance(), and LLViewerJoystick::toggleFlycam().
Referenced by LLViewJoystickFlycam::handleEvent(), reset_view_final(), and toggle_build_mode().
void handle_undo | ( | void * | ) |
void init_menus | ( | ) |
Popup menu
The popup menu is now populated by the show_context_menu() method.
Pie menus
set up the colors
Definition at line 639 of file llviewermenu.cpp.
References LLView::addChild(), LLMenuBarGL::appendMenu(), LLMenuBarGL::arrange(), LLUICtrlFactory::buildMenu(), LLUICtrlFactory::buildPieMenu(), LLPanel::childSetLabelArg(), CLIENT_MENU_NAME, LLMenuGL::createJumpKeys(), FALSE, gColors, LLView::getChild(), LLMenuGL::getChildMenuByName(), LLControlGroup::getColor(), LLRectBase< Type >::getHeight(), LLSingleton< LLUICtrlFactory >::getInstance(), LLView::getRect(), LLViewerWindow::getRootView(), LLRectBase< Type >::getWidth(), gViewerWindow, init_client_menu(), init_server_menu(), initialize_menus(), LLAppViewer::instance(), LLMenuParcelObserver::LLMenuParcelObserver(), LLRectBase< Type >::mBottom, MENU_BAR_HEIGHT, LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, S32, SERVER_MENU_NAME, LLMenuGL::setBackgroundColor(), LLView::setFollowsAll(), LLMenuGL::setItemVisible(), LLViewerWindow::setMenuBackgroundColor(), LLView::setRect(), LLMenuGL::setVisible(), show_debug_menus(), LLMenuGL::sMenuContainer, TRUE, and LLMenuGL::updateParent().
Referenced by LLViewerWindow::initWorldUI().
Definition at line 2878 of file llviewermenu.cpp.
References LLAvatarTracker::instance(), and NULL.
Referenced by LLIMMgr::defaultIMTypeForAgent(), LLNetMap::draw(), LLAvatarAddFriend::handleEvent(), LLAvatarEnableAddFriend::handleEvent(), is_agent_mappable(), and LLPanelAvatar::setAvatarID().
Definition at line 2883 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 | ) |
void menu_toggle_control | ( | void * | user_data | ) |
Definition at line 6412 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().
BOOL object_attached | ( | void * | user_data | ) |
Definition at line 6145 of file llviewermenu.cpp.
References LLViewerJointAttachment::getObject(), and NULL.
Referenced by LLVOAvatar::buildCharacter(), and LLMakeOutfitDialog::LLMakeOutfitDialog().
BOOL object_selected_and_point_valid | ( | void * | user_data | ) |
Definition at line 6083 of file llviewermenu.cpp.
References FALSE, LLSingleton< LLSelectMgr >::getInstance(), LLSelectNode::getObject(), LLSelectMgr::getSelection(), LL_PCODE_VOLUME, LLViewerObject::mChildList, and NULL.
Referenced by LLVOAvatar::buildCharacter(), LLObjectEnableWear::handleEvent(), and object_is_wearable().
void pre_init_menus | ( | ) |
Definition at line 595 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 2798 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 set_underclothes_menu_options | ( | ) |
Definition at line 625 of file llviewermenu.cpp.
References FALSE, gAgent, LLView::getChild(), LLAgent::isTeen(), and TRUE.
Referenced by idle_startup().
void show_debug_menus | ( | ) |
Definition at line 4829 of file llviewermenu.cpp.
References LLMenuBarGL::arrange(), CLIENT_MENU_NAME, gAgent, LLControlGroup::getBOOL(), LLAgent::getGodLevel(), GOD_NOT, gSavedSettings, SERVER_MENU_NAME, LLMenuGL::setItemEnabled(), LLMenuGL::setItemVisible(), and LLFirstUse::useDebugMenus().
Referenced by handle_admin_override_toggle(), init_menus(), set_god_level(), and toggle_debug_menus().
bool toggle_build_mode | ( | ) |
Definition at line 1826 of file llviewermenu.cpp.
References ANIMATE, LLAgent::cameraOrbitOver(), LLAgent::cameraZoomIn(), DEG_TO_RAD, FALSE, gAgent, gBasicToolset, LLAgent::getAtAxis(), LLControlGroup::getBOOL(), LLToolMgr::getCurrentToolset(), LLAgent::getFocusOnAvatar(), LLSingleton< LLToolCompCreate >::getInstance(), LLSingleton< LLViewerJoystick >::getInstance(), LLSingleton< LLToolMgr >::getInstance(), LLAgent::getPositionGlobal(), gSavedSettings, handle_reset_view(), handle_toggle_flycam(), LLViewerJoystick::moveAvatar(), LLToolset::selectTool(), LLToolMgr::setCurrentToolset(), LLAgent::setFocusGlobal(), LLAgent::setFocusOnAvatar(), and LLFirstUse::useBuild().
Referenced by LLViewBuildMode::handleEvent(), and LLToolBar::onClickBuild().
Definition at line 289 of file llviewermenu.cpp.
Referenced by LLAgent::clearAFK(), and LLAgent::setAFK().
Definition at line 290 of file llviewermenu.cpp.
Referenced by LLAgent::clearBusy(), and LLAgent::setBusy().
Definition at line 248 of file llviewermenu.cpp.
Referenced by LLViewerWindow::handleKey(), idle_startup(), LLPanelLogin::loadLoginPage(), and reset_login().
Definition at line 245 of file llviewermenu.cpp.
Definition at line 246 of file llviewermenu.cpp.
Referenced by LLVOAvatar::buildCharacter(), LLFileEnableCloseAllWindows::handleEvent(), LLFileEnableCloseWindow::handleEvent(), LLFileEnableUpload::handleEvent(), LLFileEnableSaveAs::handleEvent(), LLViewerWindow::handleKey(), init_menu_file(), LLViewerWindow::initWorldUI(), LLToolPie::pickAndShowMenu(), process_economy_data(), and LLAgent::resetView().
Definition at line 253 of file llviewermenu.cpp.
Referenced by LLSelectMgr::deselectAllIfTooFar(), dialog_refresh_all(), and LLToolPie::pickAndShowMenu().
Definition at line 247 of file llviewermenu.cpp.
Referenced by LLToolCompGun::handleHover(), and LLSelectMgr::processObjectProperties().
Definition at line 279 of file llviewermenu.cpp.
const LLString SAVE_INTO_INVENTORY |
Referenced by LLSelectMgr::processObjectProperties().