Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Toolset/palettes/inspector/revinspectortemplate.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ on inspectorTreeMenuDisplay
then put "!cLock Inspector" into tLockInspector
else put "!nLock Inspector" into tLockInspector

set the text of button "inspectMenu" of this stack to tInspect & cr & "-" \
& cr & "Edit Script" & cr & tSendMessageList
set the text of button "inspectMenu" of this stack to tInspect & return & "-" \
& return & tSendMessageList

popup button "inspectMenu" of this stack at the mouseloc

Expand All @@ -160,7 +160,6 @@ on menuPick pWhich
then send "closeField" to tFocusedObject

put sSelectedObjects into tObjects
put revIDEStackOfObject(line 1 of tObjects) into tStack
set the itemDel to "|"
switch item 1 of pWhich
case "Inspect"
Expand All @@ -169,9 +168,6 @@ on menuPick pWhich
case "Send Message"
revIDESendMessageToObject item 2 of pWhich, tObjects
break
case "Edit Script"
revIDEEditScriptOfObjects tObjects
break
end switch
end menuPick

Expand All @@ -187,6 +183,10 @@ private on inspectorTitleUpdate
end if
end inspectorTitleUpdate

on inspectorEditScript
revIDEEditScriptOfObjects sSelectedObjects
end inspectorEditScript

#####################
##### MESSAGES #####
#####################
Expand Down Expand Up @@ -246,6 +246,7 @@ end inspectorSectionIcon
# Add to header actions/preferences
on inspectorAddActions
addFrameItem "inspectorTarget", "header", "action", "Select object to inspect", "bullseye", "bullseye", "inspectorTreeMenuDisplay", the long id of me
addFrameItem "inspectorEditScript","header", "action", "Edit script", "lc-edit-script", "lc-edit-script","inspectorEditScript", the long id of me
addFrameItem "inspectorLock","header", "toggle", "Lock Inspector", "unlock", "lock","inspectorLock", the long id of me
addFrameItem "idePropertyInspector_labels", "header", "preference", "Property Labels", "enum","false:Description of option,true:Name of LiveCode property", "inspectorPropLabelsPrefChanged", the long id of me
end inspectorAddActions
Expand Down
1 change: 1 addition & 0 deletions notes/bugfix-16858.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Add icon for editing script to inspector palette actions