XUI Callback Listeners

Introduction
This is a reference list of registered listeners, extracted from  (near the bottom). This list was generated on 2008-12-16 from the Imprudence source code.

These are used in XUI to invoke some action. For example, the "File > Upload Image" menu definition in  uses the File.UploadImage and File.EnableUpload actions:

   

The items listed here are the strings registered for use in XUI. Each string is tied to a short class (usually in ) that contains a handleEvent method to perform the desired action. For example:

class LLFileUploadImage : public view_listener_t { 	bool handleEvent(LLPointer event, const LLSD& userdata) { 		std::string filename = upload_pick((void *)LLFilePicker::FFLOAD_IMAGE); if (!filename.empty) { 			LLFloaterImagePreview* floaterp = new LLFloaterImagePreview(filename); LLUICtrlFactory::getInstance->buildFloater(floaterp, "floater_image_preview.xml"); } 		return TRUE; } };

Most listeners are tied to a specific menu item, though some are shared between multiple menus (and sometimes buttons), and others are general actions. It's a mess.

Items with "Enable" are used to determine and enable or disable that particular menu item based on the current situation (they are run periodically and perform the action of enabling or disabling; they don't actually return a Boolean value indicating which state the menu item should have).

Items that are commented out (with /* or //) are unused, but usually exist in the source code.

Generic Actions
ShowFloater PromptShowURL PromptShowFile ShowAgentProfile ShowAgentGroups ToggleControl

GoToObject PayObject

EnablePayObject EnableEdit

FloaterVisible SomethingSelected SomethingSelectedNoHUD EditableSelected EditableSelectedMono

Edit
Edit.Undo Edit.Redo Edit.Cut Edit.Copy Edit.Paste Edit.Delete Edit.Search Edit.SelectAll Edit.Deselect Edit.Duplicate Edit.TakeOff

Edit.EnableUndo Edit.EnableRedo Edit.EnableCut Edit.EnableCopy Edit.EnablePaste Edit.EnableDelete Edit.EnableSelectAll Edit.EnableDeselect Edit.EnableDuplicate Edit.EnableTakeOff Edit.EnableCustomizeAvatar

View
View.Mouselook View.BuildMode View.JoystickFlycam View.ResetView View.LookAtLastChatter View.ShowHoverTips View.HighlightTransparent View.ToggleBeacon View.BeaconWidth View.ToggleRenderType View.ShowHUDAttachments View.ZoomOut View.ZoomIn View.ZoomDefault View.Fullscreen View.DefaultUISize

View.EnableMouselook View.EnableLastChatter

View.CheckBuildMode View.CheckJoystickFlycam View.CheckShowHoverTips View.CheckHighlightTransparent View.CheckBeaconEnabled View.CheckRenderType View.CheckHUDAttachments

World
World.Chat World.AlwaysRun World.Fly World.EnableFly World.CreateLandmark World.SetHomeLocation World.TeleportHome World.SetAway World.SetBusy

World.EnableCreateLandmark World.EnableSetHomeLocation World.EnableTeleportHome World.EnableBuyLand

World.CheckAlwaysRun World.EnvSettings World.WaterSettings World.PostProcess World.DayCycle

Tools
Tools.SelectTool Tools.SelectOnlyMyObjects Tools.SelectOnlyMovableObjects Tools.SelectOnlyCopyableObjects Tools.SelectBySurrounding Tools.ShowHiddenSelection Tools.ShowSelectionLightRadius Tools.EditLinkedParts Tools.SnapObjectXY Tools.UseSelectionForGrid Tools.Link Tools.Unlink Tools.StopAllAnimations Tools.ReleaseKeys Tools.EnableReleaseKeys Tools.LookAtSelection Tools.BuyOrTake Tools.TakeCopy Tools.SaveToInventory Tools.SaveToObjectInventory Tools.SelectedScriptAction Tools.SetBulkPerms

Tools.EnableToolNotPie Tools.EnableLink Tools.EnableUnlink Tools.EnableBuyOrTake Tools.EnableTakeCopy Tools.SaveToInventory Tools.SaveToObjectInventory

/*Tools.VisibleBuyObject Tools.VisibleTakeObject*/

Advanced
Advanced.ToggleConsole Advanced.CheckConsole Advanced.DumpInfoToConsole Advanced.ReloadSettingsOverrides

// Advanced > HUD Info Advanced.ToggleHUDInfo Advanced.CheckHUDInfo

Advanced.ClearGroupCache

// Advanced > Render > Types Advanced.ToggleRenderType Advanced.CheckRenderType

// Advanced > Render > Features Advanced.ToggleFeature Advanced.CheckFeature

// Advanced > Render > Info Displays Advanced.ToggleInfoDisplay Advanced.CheckInfoDisplay Advanced.ToggleSelectBuffer Advanced.CheckSelectBuffer Advanced.ToggleRandomizeFramerate Advanced.CheckRandomizeFramerate Advanced.TogglePeriodicSlowFrame Advanced.CheckPeriodicSlowFrame Advanced.ToggleFrameTest Advanced.CheckFrameTest Advanced.ToggleHideSelectedObjects Advanced.CheckHideSelectedObjects Advanced.SelectedTextureInfo Advanced.ToggleWireframe Advanced.CheckWireframe Advanced.ToggleDisableTextures Advanced.CheckDisableTextures

// Advanced > Render (top level menu) ToggleRenderAttachedLights ToggleRenderAttachedParticles

// Advanced > World Advanced.DumpScriptedCamera Advanced.DumpRegionObjectCache

// Advanced > UI Advanced.SLURLTest Advanced.ToggleEditableUI //Advanced.CheckEditableUI Advanced.ToggleAsyncKeystrokes Advanced.CheckAsyncKeystrokes Advanced.DumpSelectMgr Advanced.DumpInventory Advanced.DumpFocusHolder Advanced.PrintSelectedObjectInfo Advanced.PrintAgentInfo Advanced.PrintTextureMemoryStats Advanced.ToggleDebugSelectMgr Advanced.CheckDebugSelectMgr Advanced.ToggleDebugClicks Advanced.CheckDebugClicks Advanced.CheckDebugViews Advanced.ToggleDebugViews Advanced.ToggleXUINameTooltips Advanced.CheckXUINameTooltips Advanced.ToggleDebugMouseEvents Advanced.CheckDebugMouseEvents Advanced.ToggleDebugKeys Advanced.CheckDebugKeys Advanced.ToggleDebugWindowProc Advanced.CheckDebugWindowProc Advanced.ToggleDebugTextEditorTips Advanced.CheckDebugTextEditorTips

// Advanced > XUI Advanced.ShowFloaterTest Advanced.ExportMenusToXML Advanced.EditUI Advanced.LoadUIFromXML Advanced.SaveUIToXML Advanced.ToggleXUINames Advanced.CheckXUINames

// Advanced > Character > Grab Baked Texture Advanced.GrabBakedTexture Advanced.EnableGrabBakedTexture

// Advanced > Character > Character Tests Advanced.ToggleAllowIdleAFK Advanced.CheckAllowIdleAFK Advanced.AppearanceToXML Advanced.ToggleCharacterGeometry Advanced.TestMale Advanced.TestFemale Advanced.TogglePG Advanced.ToggleAllowSelectAvatar Advanced.CheckAllowSelectAvatar

// Advanced > Character (toplevel) Advanced.ToggleAllowTapTapHoldRun Advanced.CheckAllowTapTapHoldRun Advanced.ForceParamsToDefault Advanced.ReloadVertexShader Advanced.ToggleAnimationInfo Advanced.CheckAnimationInfo Advanced.ToggleSlowMotionAnimations //Advanced.CheckSlowMotionAnimations Advanced.ToggleShowLookAt Advanced.CheckShowLookAt Advanced.ToggleShowPointAt Advanced.CheckShowPointAt Advanced.ToggleDebugJointUpdates Advanced.CheckDebugJointUpdates Advanced.ToggleDisableLOD Advanced.CheckDisableLOD Advanced.ToggleDebugCharacterVis Advanced.CheckDebugCharacterVis //Advanced.ToggleShowCollisionPlane //Advanced.CheckShowCollisionPlane Advanced.ToggleShowCollisionSkeleton Advanced.CheckShowCollisionSkeleton Advanced.ToggleDisplayAgentTarget Advanced.CheckDisplayAgentTarget Advanced.ToggleDebugAvatarRotation Advanced.CheckDebugAvatarRotation Advanced.DumpAttachments Advanced.RebakeTextures Advanced.DebugAvatarTextures Advanced.DumpAvatarLocalTextures

// Advanced > Network Advanced.EnableMessageLog Advanced.DisableMessageLog Advanced.DropPacket

// Advanced > Recorder Advanced.FrameStatsLogging Advanced.AgentPilot Advanced.ToggleAgentPilotLoop Advanced.CheckAgentPilotLoop

// Advanced (toplevel) Advanced.ToggleShowObjectUpdates Advanced.CheckShowObjectUpdates Advanced.CompressImage Advanced.ToggleClothingFloater Advanced.ShowDebugSettings Advanced.ToggleViewAdminOptions Advanced.CheckViewAdminOptions Advanced.RequestAdminStatus Advanced.LeaveAdminStatus

On Your Avatar
Self.RemoveAllAttachments

Self.EnableStandUp Self.EnableRemoveAllAttachments

On Other Avatars
Avatar.Mute Avatar.AddFriend Avatar.Freeze Avatar.Debug Avatar.VisibleDebug Avatar.EnableDebug Avatar.InviteToGroup Avatar.GiveCard Avatar.Eject Avatar.SendIM

Avatar.EnableMute Avatar.EnableAddFriend Avatar.EnableFreezeEject

On Objects
Object.Open Object.Build Object.Touch Object.SitOrStand Object.Delete Object.AttachToAvatar Object.Return Object.ReportAbuse Object.Mute Object.Buy Object.Edit Object.Inspect

Object.EnableOpen Object.EnableTouch Object.EnableSitOrStand Object.EnableDelete Object.EnableWear Object.EnableReturn Object.EnableReportAbuse Object.EnableMute Object.EnableBuy

/*Object.VisibleTouch Object.VisibleCustomTouch Object.VisibleStandUp Object.VisibleSitHere Object.VisibleCustomSit*/

On Your Attachments
Attachment.Drop Attachment.Detach

Attachment.EnableDrop Attachment.EnableDetach

On the Ground
Land.Build Land.Sit Land.BuyPass Land.Edit

Land.EnableBuyPass