Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 68375c6

Browse files
author
Monte Goulding
committed
[[ Scriptify ]] Scriptfy default settings for preferences stack
* Remove unused `revComponentVersion` function * Remove empty and unused default preferences * Remove reference to Windows XP in preferences * Fix execution errors when resetting preferences due to new IDE components * Fix issue with virtual font names disabling menu button on script editor font preference * Remove legacy code interfering with recent files menu
1 parent 925bbbb commit 68375c6

File tree

7 files changed

+4
-175
lines changed

7 files changed

+4
-175
lines changed

Toolset/home.livecodescript

Lines changed: 0 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ command revInternal__ResetPreferences
680680
local tPropsArray
681681
-- default custom property set
682682
put "true" into tPropsArray["cREVToolsPaintToolsVisible"]
683-
put "LightBlue" into tPropsArray["LightBlue"]
684683
put "false" into tPropsArray["cDestroyStack"]
685684
put "false" into tPropsArray["cRevPopups"]
686685
put "417,113" into tPropsArray["cREVMsgTabRectGlobalProperties"]
@@ -692,26 +691,20 @@ command revInternal__ResetPreferences
692691
put "false" into tPropsArray["cSEHidePalettes"]
693692
put "120" into tPropsArray["cREVImageWidth"]
694693
put "500" into tPropsArray["tooltip delay"]
695-
put "" into tPropsArray["cUserOrganization"]
696694
put "417,72" into tPropsArray["cREVMsgTabRectSingle Line"]
697695
put "false" into tPropsArray["cREVMsgShowUIBackScripts"]
698696
put "539,432" into tPropsArray["cREVGeoTopLeft"]
699697
put "70378" into tPropsArray["cREVDBCode"]
700-
put "" into tPropsArray["cColumnVisibility"]
701698
put "276" into tPropsArray["cREVScriptHeight"]
702699
put "2" into tPropsArray["cGridSize"]
703700
put "483,214,1015,476" into tPropsArray["cVariableWatcherRect"]
704701
put "false" into tPropsArray["cShowrevProps"]
705702
put "Pixels" into tPropsArray["cREVRulerMeasurement"]
706-
put "GreenYellow" into tPropsArray["GreenYellow"]
707703
put "100" into tPropsArray["cMacOSScrollbarWidth"]
708704
put "1,2,3,4,5,7" into tPropsArray["cControlTabs"]
709-
put "" into tPropsArray["cREVCustomWidth"]
710705
put "500" into tPropsArray["cREVToolTipDelay"]
711706
put "250" into tPropsArray["cTabButtonwidth"]
712707
put "true" into tPropsArray["cGoAlign"]
713-
put "1:80" into tPropsArray["http proxy"]
714-
put "2.6.1" into tPropsArray["cVersionNo"]
715708
put "0" into tPropsArray["cREVRotatePrev2"]
716709
put "993,712" into tPropsArray["cREVPropertyPaletteTopLeft"]
717710
put "true" into tPropsArray["cLiveColor"]
@@ -723,7 +716,6 @@ command revInternal__ResetPreferences
723716
put "417,72" into tPropsArray["cREVMsgTabRectcard id 1147"]
724717
put "468,131" into tPropsArray["cAppearanceTopLeft"]
725718
put "false" into tPropsArray["cREVDefaultMenubar"]
726-
put "" into tPropsArray["cREVMultipleLineHistory"]
727719
put "417,113" into tPropsArray["cREVMsgTabRectbackScripts"]
728720
put "true" into tPropsArray["cGrid"]
729721
put "30" into tPropsArray["cNumRecent"]
@@ -732,13 +724,10 @@ command revInternal__ResetPreferences
732724
put "120" into tPropsArray["cREVImageHeight"]
733725
put "82" into tPropsArray["cButtonWidth"]
734726
put "true" into tPropsArray["cREVProfileReadOnlyWarning"]
735-
put "" into tPropsArray["cHTTPProxy"]
736727
put "6,7,9" into tPropsArray["cCardTabs"]
737-
put "" into tPropsArray["cREVScriptFont"]
738728
put "16" into tPropsArray["cMacOSScrollbarHeight"]
739729
put "true" into tPropsArray["cFirstRun"]
740730
put "14" into tPropsArray["cMacOSProgressScrollbarHeight"]
741-
put "" into tPropsArray["cREVTemplateMasterName"]
742731
put "mouseMove" into tPropsArray["suppressedMessages"]
743732
put "true" into tPropsArray["cAutoFormat"]
744733
put "true" into tPropsArray["cREVScriptShortcut"]
@@ -747,32 +736,22 @@ command revInternal__ResetPreferences
747736
put "1067,251,1882,827" into tPropsArray["cRevDocsRect"]
748737
put "Black" into tPropsArray["cBackDropColor"]
749738
put "false" into tPropsArray["cREVMsgShowUIFrontScripts"]
750-
put "Gray" into tPropsArray["Gray"]
751739
put "false" into tPropsArray["revstack"]
752740
put "100" into tPropsArray["cMacOSProgressScrollbarWidth"]
753741
put "false" into tPropsArray["cREVUIScriptShortcut"]
754-
put "Cyan" into tPropsArray["Cyan"]
755-
put "" into tPropsArray["suppressedTypes"]
756-
put "" into tPropsArray["cREVTextHeight"]
757742
put "60,27" into tPropsArray["cREVMenuBarTopLeft"]
758-
put "" into tPropsArray["cREVRecentPaths"]
759743
put "322" into tPropsArray["cREVFieldFirstTabHeight"]
760744
put "500" into tPropsArray["cTraceDelay"]
761-
put "" into tPropsArray["cRecentNum"]
762745
put "0" into tPropsArray["cREVRotatePrev1"]
763-
put "376,90" into tPropsArray["cREVMsgTabRectcard id 1002"]
764746
put "250" into tPropsArray["cFieldWidth"]
765747
put "16" into tPropsArray["cScrollbarHeight"]
766-
put "1" into tPropsArray["cBuildNo"]
767748
put "true" into tPropsArray["cToolbarIcons"]
768-
put "" into tPropsArray["cMBMoveObjects"]
769749
put "true" into tPropsArray["cShowAudioclipsclips"]
770750
put "1,2,3,4,5" into tPropsArray["cAudioclipTabs"]
771751
put "620,235" into tPropsArray["cREVMsgTabRectSingleLine"]
772752
put "Sections List" into tPropsArray["revHelpDefaultSection"]
773753
put "false" into tPropsArray["cCaseSensitive"]
774754
put "auto" into tPropsArray["cLargeFonts"]
775-
put "" into tPropsArray["cREVCustomHeight"]
776755
put "Yellow" into tPropsArray["yellow"]
777756
put "417,113" into tPropsArray["cREVMsgTabRectGlobalVariables"]
778757
put "417,113" into tPropsArray["cREVMsgTabRectpendingMessages"]
@@ -784,24 +763,17 @@ command revInternal__ResetPreferences
784763
put "Gray50" into tPropsArray["cSelectionHandle"]
785764
put "128,103" into tPropsArray["cREVMaximizedScriptEditorTopLeft"]
786765
put "true" into tPropsArray["suppressIDE"]
787-
put "" into tPropsArray["cUserEmail"]
788766
put "Property Inspector" into tPropsArray["cABOptionDoubleClick"]
789767
put "45" into tPropsArray["cREVRotatePrev5"]
790-
put "" into tPropsArray["cEditorPath"]
791-
put "" into tPropsArray["suppressedActions"]
792768
put "170,131" into tPropsArray["cPaletteTopLeft"]
793769
put "false" into tPropsArray["cNOPICTWarning"]
794770
put "470,460" into tPropsArray["cREVMsgTopLeft"]
795-
put "[email protected]" into tPropsArray["cSupportContact"]
796771
put format("cButtonWidth,100\ncButtonHeight,20\ncTabButtonwidth,250\ncTabButtonHeight,160\ncMenuWidth,130\ncMenuHeight,20\ncFieldWidth,250\ncFieldHeight,160\ncLabelFieldWidth,100\ncLabelFieldHeight,20\ncMacOSScrollbarHeight,16\ncMacOSProgressScrollbarHeight,14\ncScrollbarWidth,200\ncScrollbarHeight,20\ncREVGraphicWidth,120\ncREVGraphicHeight,120\ncREVImageWidth,120\ncREVImageHeight,120\ncREVPlayerWidth,320\ncREVPlayerHeight,256") into tPropsArray["New Field 2"]
797772
put "120" into tPropsArray["cREVGraphicHeight"]
798773
put "Dictionary" into tPropsArray["cRevDocsCurrentCard"]
799774
put "385" into tPropsArray["cREVScriptWidth"]
800775
put "487" into tPropsArray["cREVUnmaximizedScriptWidth"]
801-
put "2,3,5,6,8,9,10,12,13,14,15,17,18,20,21,22,23,24,25,26,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47,48,49,50,52,54,57,58,60,61,62,63,64,65,66,68,69" into tPropsArray["cRevUnseenTips"]
802776
put "false" into tPropsArray["cREVDontMaximizeScriptEditor"]
803-
put "" into tPropsArray["cREVScriptTextHeight"]
804-
put "" into tPropsArray["cColumnWidths"]
805777
put "true" into tPropsArray["cDontWrap"]
806778
put "false" into tPropsArray["cVariableChecking"]
807779
put "302" into tPropsArray["cAppBrowserWidgetLeft"]
@@ -811,7 +783,6 @@ command revInternal__ResetPreferences
811783
put "457,430,853,680" into tPropsArray["cMessageWatcherRect"]
812784
put "287,261" into tPropsArray["cREVMsgTabRectrevbasic"]
813785
put "true" into tPropsArray["cSort"]
814-
put "CadetBlue" into tPropsArray["cREVHelpHiliteColor"]
815786
put "false" into tPropsArray["cREVMsgAutoRefresh"]
816787
put "true" into tPropsArray["cVariablePreservation"]
817788
put "100" into tPropsArray["cLabelFieldWidth"]
@@ -820,29 +791,22 @@ command revInternal__ResetPreferences
820791
put "red" into tPropsArray["red"]
821792
put "selectedObject" into tPropsArray["cREVMsgIntelligenceObject"]
822793
put "false" into tPropsArray["cSEHideErrors"]
823-
put "" into tPropsArray["cREVMenuManagerTopleft"]
824794
put "56" into tPropsArray["cFieldHeight"]
825795
put "none" into tPropsArray["cBackDrop"]
826796
put "300" into tPropsArray["cREVUnmaximizedScriptHeight"]
827797
put "13,125" into tPropsArray["cToolsTopLeft"]
828-
put "" into tPropsArray["cCustomWordList"]
829798
put "--" into tPropsArray["cCommentCharacter"]
830-
put "" into tPropsArray["cREVRecentList"]
831799
put "97,92,657,440" into tPropsArray["cScriptEditorRect"]
832800
put "11" into tPropsArray["cREVRotatePrev4"]
833-
put "" into tPropsArray["cREVSingleLineHistory"]
834801
put "530,564" into tPropsArray["cREVMsgTabRectrevscript"]
835802
put "146,123,800,408" into tPropsArray["cAppBrowserRect"]
836803
put "true" into tPropsArray["cREVAutoCreateProfilesWarning"]
837-
put "" into tPropsArray["cUsername"]
838804
put "false" into tPropsArray["cREVSaveStacksAfterMoving"]
839805
put "false" into tPropsArray["cREVAutoCreateProfiles"]
840806
put "417,113" into tPropsArray["cREVMsgTabRectGlobal Variables"]
841-
put "" into tPropsArray["cRecentPaths"]
842807
put "118" into tPropsArray["cREVPlayerHeight"]
843808
put "true" into tPropsArray["cShowVideoclips"]
844809
put "false" into tPropsArray["cWholeMatches"]
845-
put "" into tPropsArray["cDocsLastViewedCard"]
846810
put "false" into tPropsArray["cVerboseDebug"]
847811
put "417,99" into tPropsArray["cREVMsgTabRectMultipleLines"]
848812
put "true" into tPropsArray["cBreakPoints"]
@@ -853,63 +817,34 @@ command revInternal__ResetPreferences
853817
put format("cButtonWidth,82\ncButtonHeight,23\ncTabButtonwidth,250\ncTabButtonHeight,160\ncMenuWidth,102\ncMenuHeight,22\ncFieldWidth,250\ncFieldHeight,56\ncLabelFieldWidth,100\ncLabelFieldHeight,21\ncMacOSScrollbarHeight,16\ncMacOSProgressScrollbarHeight,14\ncScrollbarWidth,200\ncScrollbarHeight,16\ncREVGraphicWidth,120\ncREVGraphicHeight,120\ncREVImageWidth,120\ncREVImageHeight,120\ncREVPlayerWidth,155\ncREVPlayerHeight,118") into tPropsArray["cDefaultSizes"]
854818
put "false" into tPropsArray["cSelectGrouped"]
855819
put "false" into tPropsArray["cSEHideMessageBox"]
856-
put "" into tPropsArray["cREVAnimationTopLeft"]
857820
put "1,2,3,4,5" into tPropsArray["cVideoclipTabs"]
858821
put "true" into tPropsArray["cREVMacOSMenubar"]
859-
put "" into tPropsArray["cREVOpenTabPositions"]
860822
put "false" into tPropsArray["cREVProfileReadOnly"]
861823
put "Yellow" into tPropsArray["revHelpHiliteColor"]
862824
put "true" into tPropsArray["cToolbarText"]
863-
put "Pink" into tPropsArray["Pink"]
864825
put "true" into tPropsArray["cREVScriptDebugMode"]
865826
put "21" into tPropsArray["cLabelFieldHeight"]
866827
put "120" into tPropsArray["cREVGraphicWidth"]
867828
put "417,99" into tPropsArray["cREVMsgTabRectMultiple Lines"]
868829
put "30" into tPropsArray["Num Recent Files"]
869830
put "568,259" into tPropsArray["cREVProfileEditorTopLeft"]
870831
put "417,113" into tPropsArray["cREVMsgTabRectfrontScripts"]
871-
put "1088781994" into tPropsArray["cTipsShown"]
872832
put "11" into tPropsArray["cREVRotatePrev3"]
873-
put "" into tPropsArray["cREVScriptSize"]
874833
put "338" into tPropsArray["cREVButtonSecondTabHeight"]
875834
put "true" into tPropsArray["cREVHelpText"]
876835
put "160" into tPropsArray["cTabButtonHeight"]
877836
put "287,261" into tPropsArray["cREVMsgTabRectrevstack"]
878-
put "2" into tPropsArray["cShowTips"]
879-
put "false" into tPropsArray["cAppOverview"]
880-
put "" into tPropsArray["cCustomerNumber"]
881837
put "417,113" into tPropsArray["cREVMsgTabRectGlobal Properties"]
882838
put "true" into tPropsArray["cShowAudioclipclips"]
883839
put "revolutionli" into tPropsArray["cREVDBName"]
884840
put "true" into tPropsArray["cDocsQuickLinksVisible"]
885841
put "true" into tPropsArray["cStartPageShow"]
886842
put "278" into tPropsArray["cREVErrorsPaletteExpandedHeight"]
887-
put "" into tPropsArray["cREVScriptColor"]
888843
put "true" into tPropsArray["cShowAudioclips"]
889844
put "filtering" into tPropsArray["revHelpListMethod"]
890845
set the customProperties[""] of stack "revPreferences" to tPropsArray
891846
delete variable tPropsArray
892847

893-
-- cREVMessageBoxIndex
894-
put "" into tPropsArray["Single Line"]
895-
set the customProperties["cREVMessageBoxIndex"] of stack "revPreferences" to tPropsArray
896-
delete variable tPropsArray
897-
898-
-- cREVMessageBoxNoMessages
899-
put "" into tPropsArray["Single Line"]
900-
set the customProperties["cREVMessageBoxNoMessages"] of stack "revPreferences" to tPropsArray
901-
delete variable tPropsArray
902-
903-
-- revHelpWindowPosition
904-
set the customProperties["revHelpWindowPosition"] of stack "revPreferences" to tPropsArray
905-
delete variable tPropsArray
906-
907-
-- cRevDatabaseQuery
908-
put "" into tPropsArray["cursorid"]
909-
put "" into tPropsArray["connectionid"]
910-
set the customProperties["cRevDatabaseQuery"] of stack "revPreferences" to tPropsArray
911-
delete variable tPropsArray
912-
913848
-- cABDoubleClick
914849
put "Play" into tPropsArray["videoclips"]
915850
put "Toplevel" into tPropsArray["stacks"]
@@ -937,93 +872,6 @@ command revInternal__ResetPreferences
937872
set the customProperties["cABOptionDoubleClick"] of stack "revPreferences" to tPropsArray
938873
delete variable tPropsArray
939874

940-
-- cHilitedButton
941-
put "1" into tPropsArray["videoclips"]
942-
put "4" into tPropsArray["controls"]
943-
put "1" into tPropsArray["audioclips"]
944-
put "7" into tPropsArray["cards"]
945-
set the customProperties["cHilitedButton"] of stack "revPreferences" to tPropsArray
946-
delete variable tPropsArray
947-
948-
-- cPaletteHeight
949-
put "441" into tPropsArray["revRecordSource"]
950-
put "534" into tPropsArray["revimage"]
951-
put "294" into tPropsArray["revTextFormatting"]
952-
put "489" into tPropsArray["revColorsStack"]
953-
put "375" into tPropsArray["revRoundedRectangle"]
954-
put "289" into tPropsArray["revcard"]
955-
put "500" into tPropsArray["revGeometryPositioning"]
956-
put "496" into tPropsArray["revMenu"]
957-
put "291" into tPropsArray["revProgressBar"]
958-
put "310" into tPropsArray["revStackSize&Position"]
959-
put "441" into tPropsArray["revKeyboardShortcuts"]
960-
put "368" into tPropsArray["revColorsImage"]
961-
put "368" into tPropsArray["revColors"]
962-
put "281" into tPropsArray["revdatabaselinkedfield"]
963-
put "441" into tPropsArray["revIcons"]
964-
put "377" into tPropsArray["revLittleArrows"]
965-
put "496" into tPropsArray["revTab"]
966-
put "441" into tPropsArray["revSize&Position"]
967-
put "500" into tPropsArray["revGeometryScale"]
968-
put "653" into tPropsArray["revPolygon"]
969-
put "428" into tPropsArray["revRegularPolygon"]
970-
put "368" into tPropsArray["revColorsField"]
971-
put "441" into tPropsArray["revEPSCode"]
972-
put "441" into tPropsArray["revStackFiles"]
973-
put "389" into tPropsArray["revReport"]
974-
put "505" into tPropsArray["revTable"]
975-
put "148" into tPropsArray["revdatabaselinkedbutton"]
976-
put "441" into tPropsArray["revPropertyProfiles"]
977-
put "493" into tPropsArray["revscrollbar"]
978-
put "441" into tPropsArray["revCustomProperties"]
979-
put "551" into tPropsArray["revstack"]
980-
put "519" into tPropsArray["revgroup"]
981-
put "441" into tPropsArray["Graveyard"]
982-
put "441" into tPropsArray["Transition"]
983-
put "441" into tPropsArray["revEncapsulatedPostScript"]
984-
put "350" into tPropsArray["No Stacks Open"]
985-
put "300" into tPropsArray["invalid connection"]
986-
put "538" into tPropsArray["revPlayer"]
987-
put "368" into tPropsArray["revColorsScrollbar"]
988-
put "167" into tPropsArray["revGeometryCard"]
989-
put "195" into tPropsArray["revdatabaselinked"]
990-
put "507" into tPropsArray["revSlider"]
991-
put "447" into tPropsArray["revAlignObjects"]
992-
put "441" into tPropsArray["revvideoclip"]
993-
put "441" into tPropsArray["revOval"]
994-
put "441" into tPropsArray["revaudioclip"]
995-
put "441" into tPropsArray["revCallbacks"]
996-
put "491" into tPropsArray["revfield"]
997-
put "441" into tPropsArray["revAnimatedGIF"]
998-
put "335" into tPropsArray["revIcons&Border"]
999-
put "520" into tPropsArray["revDatabaseold"]
1000-
put "345" into tPropsArray["revdatabaselinkedmenu"]
1001-
put "326" into tPropsArray["revdrawgraphic"]
1002-
put "400" into tPropsArray["revdatabaseQuery"]
1003-
put "441" into tPropsArray["revBlending"]
1004-
put "441" into tPropsArray["revGeometryStack"]
1005-
put "432" into tPropsArray["revbutton"]
1006-
put "241" into tPropsArray["revdatabaselinkedgroup"]
1007-
put "538" into tPropsArray["revQuickTimeVR"]
1008-
put "472" into tPropsArray["revFreehandCurve"]
1009-
put "350" into tPropsArray["Other Palette"]
1010-
put "472" into tPropsArray["revLine"]
1011-
put "441" into tPropsArray["revTracks"]
1012-
put "441" into tPropsArray["revContents"]
1013-
put "441" into tPropsArray["revExternalReferences"]
1014-
put "368" into tPropsArray["revColorsGraphic"]
1015-
put "368" into tPropsArray["revColorsPlayer"]
1016-
put "368" into tPropsArray["revColorsButton"]
1017-
put "347" into tPropsArray["revdatabaselinkedtable"]
1018-
set the customProperties["cPaletteHeight"] of stack "revPreferences" to tPropsArray
1019-
delete variable tPropsArray
1020-
1021-
-- cWRPicker
1022-
put format("stack (deep search in Docs - Dictionary)\nstack (words in Rev Online)\nstac (words in Rev Online)\nsta (words in Rev Online)\nanimation (words in Rev Online)\nanimation (words in Web Database)\nanimation (deep search in Docs - Dictionary)\nanimation (words in Mailing lists - Google)\nanimation (words from web database)\nanimation (quick search in Docs - faqs)\n") into tPropsArray["searchStrings"]
1023-
put "691200" into tPropsArray["days"]
1024-
put "true" into tPropsArray["autoUpdate"]
1025-
set the customProperties["cWRPicker"] of stack "revPreferences" to tPropsArray
1026-
1027875
revInternal__SavePreferences
1028876
end revInternal__ResetPreferences
1029877

Toolset/libraries/revbackscriptlibrary.livecodescript

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,29 +2456,6 @@ on revUpdateAOControls pTarget
24562456
set the hcAddressing of stack tTargetStack to tHCAddressing
24572457
end revUpdateAOControls
24582458

2459-
function revComponentVersion pStack
2460-
local tResult
2461-
put empty into tResult
2462-
if pStack is "all" then
2463-
local tList
2464-
put the stackfiles of stack "home" into tList
2465-
2466-
local tStack
2467-
repeat for each line i in tList
2468-
put item 1 of i into tStack
2469-
if there is a stack tStack then
2470-
put tStack & ":" && the cVersionNo of stack tStack & "-" & the cBuildNo of stack tStack & cr after tResult
2471-
end if
2472-
end repeat
2473-
put "home:" && the cVersionNo of stack "home" & "-" & the cBuildNo of stack "home" & cr after tResult
2474-
else
2475-
if there is a stack pStack then
2476-
put the cVersionNo of stack pStack & "-" & the cBuildNo of stack pStack into tResult
2477-
end if
2478-
end if
2479-
return tResult
2480-
end revComponentVersion
2481-
24822459
function revExternalVersion pExternal
24832460
local tExternalVersion
24842461
put empty into tExternalVersion
9.27 KB
Binary file not shown.

notes/bugfix-16167.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Remove reference to Windows XP from preferences stack

notes/bugfix-16325.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure preferences reset correctly

notes/bugfix-17405.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Display virtual font names correctly in the script editor font preference menu

notes/bugfix-17467.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix recent files list update issue

0 commit comments

Comments
 (0)