diff --git a/DevGuides.livecode b/DevGuides.livecode
index 760c397..09c75f4 100644
Binary files a/DevGuides.livecode and b/DevGuides.livecode differ
diff --git a/api.lcdoc b/api.lcdoc
new file mode 100644
index 0000000..e69de29
diff --git a/manifest.xml b/manifest.xml
new file mode 100644
index 0000000..599f9b3
--- /dev/null
+++ b/manifest.xml
@@ -0,0 +1,8 @@
+
+ community.ferruslogic.library.devguides
+ DevGuides
+ FerrusLogic
+ 1.0.0
+ library
+ community
+
diff --git a/smartcrumbs/DevGuides.livecode.sc/scripts/1e0c6d89-cd4a-4f00-b6aa-905c4813f75a.livecodescript b/smartcrumbs/DevGuides.livecode.sc/scripts/1e0c6d89-cd4a-4f00-b6aa-905c4813f75a.livecodescript
index f80fdbd..e382110 100644
--- a/smartcrumbs/DevGuides.livecode.sc/scripts/1e0c6d89-cd4a-4f00-b6aa-905c4813f75a.livecodescript
+++ b/smartcrumbs/DevGuides.livecode.sc/scripts/1e0c6d89-cd4a-4f00-b6aa-905c4813f75a.livecodescript
@@ -1,3 +1,13 @@
+/*
+* DevGuides
+* © FerrusLogic Team
+* August 2021
+* version 1.0.0
+*
+* This code is part of DevGuides extension created by FerrusLogic team to provide design guides to
+* help LiveCode developers in the process of designing graphic interfaces in an easy and modern way
+*/
+
local sDown --> Bandera para saber si elusuario tiene el precionado el click
local sLabelControl, sDevDeleteGuide, sLabelControl1, sLabelControl2 , sLineControl --> id largo de los graficos temporales
local sThisCard, sWidthCard, sHeightCard --> Propiedades de la targeta que se usan con frecuencia.
@@ -189,7 +199,7 @@ on mouseLeave
if the cDevDesignsTem of me then
put the long id of me into tLongId
- send "deleteGuideControls tLongId" to stack "DevGuide" in 0 sec
+ send "deleteGuideControls tLongId" to stack "DevGuides" in 0 sec
else
set the foregroundColor of me to _backColor()
set the backColor of me to _backColor()
@@ -228,7 +238,7 @@ on mouseUp pButtonNumber
set the left of me to 0
if the bottom of me < 0 or the top of me > sHeightCard then
- send "deleteGuideControls tLongId" to stack "DevGuide" in 0 sec
+ send "deleteGuideControls tLongId" to stack "DevGuides" in 0 sec
end if
end mouseUp
diff --git a/smartcrumbs/DevGuides.livecode.sc/scripts/2e9ed90e-a88d-4701-91a1-88d69fed7cc5.livecodescript b/smartcrumbs/DevGuides.livecode.sc/scripts/2e9ed90e-a88d-4701-91a1-88d69fed7cc5.livecodescript
index 303eee7..4ebeeeb 100644
--- a/smartcrumbs/DevGuides.livecode.sc/scripts/2e9ed90e-a88d-4701-91a1-88d69fed7cc5.livecodescript
+++ b/smartcrumbs/DevGuides.livecode.sc/scripts/2e9ed90e-a88d-4701-91a1-88d69fed7cc5.livecodescript
@@ -1,5 +1,14 @@
-local sCache
-local sTemporaryGraphic
+/*
+* DevGuides
+* © FerrusLogic Team
+* August 2021
+* version 1.0.0
+*
+* This code is part of DevGuides extension created by FerrusLogic team to provide design guides to
+* help LiveCode developers in the process of designing graphic interfaces in an easy and modern way
+*/
+
+local sCache, sTemporaryGraphic
# As the only one who moves is me. I create a cache of where are the other guide lines that are of my type
command _createCache pLongId, pThisCard
diff --git a/smartcrumbs/DevGuides.livecode.sc/scripts/3d9f69c3-4f8a-4515-b18e-0bd56efbf9a0.livecodescript b/smartcrumbs/DevGuides.livecode.sc/scripts/3d9f69c3-4f8a-4515-b18e-0bd56efbf9a0.livecodescript
index 661a8c7..6101ea5 100644
--- a/smartcrumbs/DevGuides.livecode.sc/scripts/3d9f69c3-4f8a-4515-b18e-0bd56efbf9a0.livecodescript
+++ b/smartcrumbs/DevGuides.livecode.sc/scripts/3d9f69c3-4f8a-4515-b18e-0bd56efbf9a0.livecodescript
@@ -1,40 +1,46 @@
+/*
+* DevGuides
+* © FerrusLogic Team
+* August 2021
+* version 1.0.0
+*
+* This code is part of DevGuides extension created by FerrusLogic team to provide design guides to
+* help LiveCode developers in the process of designing graphic interfaces in an easy and modern way
+*/
+
global gDevGuideConfig
local sControlCachingArray, sMessageID, sNeighbors, sPrevSelectedObjects
local sGuideStatus, sGridLine, sGridSystem, sThisCard, sNewGuideLine
-
-constant kColumnLineColor= "192,192,192", kNewGuideLine = 25 , kTolerance = 3
+local sThisStack
+constant kNewGuideLine = 25
on extensionInitialize
- if the target is not me then
- pass extensionInitialize
- end if
-
+ if the target is not me then pass extensionInitialize
+ #set the _ideoverride of me to true
insert the script of me into back
- _InitialiseDevGuideLibrary
+
+ revIDESubscribe "ideToolChanged"
+ revIDESubscribe "ideMouseMove"
+ revIDESubscribe "ideResumeStack"
+ revIDESubscribe "ideWindowsChanged"
+ revIDESubscribe "ideMsgChanged"
+ revIDESubscribe "ideToggleChanged:suppressMessages"
+
+ put empty into sMessageID
end extensionInitialize
+
on extensionFinalize
- if the target is not me then
- pass extensionFinalize
- end if
-
+ if the target is not me then pass extensionFinalize
+ revIDEUnsubscribeAll the long id of me
remove the script of me from back
- _finaliseDevGuideLibrary
end extensionFinalize
-on preOpenStack
-
- revIDESubscribe "ideToolChanged"
- revIDESubscribe "ideMouseMove"
+
- put empty into sMessageID
- pass preOpenStack
-end preOpenStack
-
-
on closeCard
deleteDevGuides
pass closeCard
@@ -63,8 +69,26 @@ on ideToolChanged
else _saveStatus
end ideToolChanged
+on ideToggleChanged pToggle
+ if pToggle is "suppressMessages" then
+ set the defaultStack to sThisStack
+ deleteDevGuides
+ end if
+
+ pass ideToggleChanged
+end ideToggleChanged
-on rawKeyDown
+on ideResumeStack
+ _restoreStatus
+ pass ideResumeStack
+end ideResumeStack
+
+on revSaveStackRequest
+ _saveStatus
+ pass revSaveStackRequest
+end revSaveStackRequest
+
+on rawKeyDown pKey
_deleteDevTempGuides
pass rawKeyDown
end rawKeyDown
@@ -76,6 +100,7 @@ on rawKeyUp pKey
delete sNewGuideLine
delete variable sNewGuideLine
end try
+
else if controlKey() is down then
local tSelectedObjects, tThisStack, tThisCard
@@ -94,7 +119,7 @@ on rawKeyUp pKey
send "updateDevGuides tThisCard, pX, pY" to me in 0.1 sec
put the result into sMessageID
- else if controlKey() is up then
+ else if altKey() is up then
delete variable sControlCachingArray
_deleteDevTempGuides
pass rawKeyUp
@@ -104,7 +129,7 @@ on rawKeyUp pKey
end rawKeyUp
-on MouseMove pX, pY
+on ideMouseMove pX, pY
local tSelectedObjects, tThisStack, tThisCard
put the selectedObjects into tSelectedObjects
@@ -115,14 +140,13 @@ on MouseMove pX, pY
if the tool <> "pointer tool" or sMessageID is an integer or word 1 of tSelectedObjects is in "stack card" or _stackNameIsIDEStack( tThisStack ) or tThisStack <> the short name of the topStack then
delete variable sControlCachingArray
_deleteDevTempGuides
- pass MouseMove
+ pass ideMouseMove
end if
if sMessageID is a number then cancel sMessageID
send "updateDevGuides tThisCard, pX, pY" to me in 0.1 sec
put the result into sMessageID
-
-end MouseMove
+end ideMouseMove
@@ -156,6 +180,10 @@ on updateDevGuides pThisCard, pX, pY
put empty into sMessageID
put the selectedObjects into tSelectedObjects
+ if not(_myStack( line 1 of the focusedObject) is _myStack(line 1 of tSelectedObjects)) then
+ deleteDevGuides
+ exit updateDevGuides
+ end if
lock screen; lock messages
@@ -197,8 +225,11 @@ on updateDevGuides pThisCard, pX, pY
if tSelectedObjects is empty then exit updateDevGuides
put _tergetProperty( pThisCard, tSelectedObjects ) into tTergetProperty
+ put _myStack(pThisCard) into sThisStack
- _drawGuides pThisCard, tSelectedObjects , tTergetProperty, pX, pY
+ try
+ _drawGuides pThisCard, tSelectedObjects , tTergetProperty, pX, pY
+ end try
unlock messages; unlock screen
end updateDevGuides
@@ -842,6 +873,9 @@ private function _myCard pLongId
return the word (wordOffSet("card", pLongId)) to - 1 of pLongId
end _myCard
+private function _myStack pLongId
+ return the word (wordOffSet("stack", pLongId)) to - 1 of pLongId
+end _myStack
private function _stackNameIsIDEStack pStackName
if there is no a stack pStackName then return false
@@ -965,3 +999,4 @@ private function _createTemporaryGraphic
unlock messages
return tGrc
end _createTemporaryGraphic
+
diff --git a/smartcrumbs/DevGuides.livecode.sc/scripts/4ab98805-48eb-44ea-86bd-0a8b65d94c58.livecodescript b/smartcrumbs/DevGuides.livecode.sc/scripts/4ab98805-48eb-44ea-86bd-0a8b65d94c58.livecodescript
index 6d152c3..bfaf7ad 100644
--- a/smartcrumbs/DevGuides.livecode.sc/scripts/4ab98805-48eb-44ea-86bd-0a8b65d94c58.livecodescript
+++ b/smartcrumbs/DevGuides.livecode.sc/scripts/4ab98805-48eb-44ea-86bd-0a8b65d94c58.livecodescript
@@ -1,3 +1,13 @@
+/*
+* DevGuides
+* © FerrusLogic Team
+* August 2021
+* version 1.0.0
+*
+* This code is part of DevGuides extension created by FerrusLogic team to provide design guides to
+* help LiveCode developers in the process of designing graphic interfaces in an easy and modern way
+*/
+
local sDown --> Bandera para saber si elusuario tiene el precionado el click
local sLabelControl, sDevDeleteGuide, sLabelControl1, sLabelControl2 , sLineControl --> id largo de los graficos temporales
local sThisCard, sWidthCard, sHeightCard --> Propiedades de la targeta que se usan con frecuencia.
@@ -192,7 +202,7 @@ on mouseLeave
if the cDevDesignsTem of me then
put the long id of me into tLongId
- send "deleteGuideControls tLongId" to stack "DevGuide" in 0 sec
+ send "deleteGuideControls tLongId" to stack "DevGuides" in 0 sec
end if
end mouseLeave
@@ -226,7 +236,7 @@ on mouseUp pButtonNumber
set the top of me to 0
if the left of me > sWidthCard or the right of me < 0 then
- send "deleteGuideControls tLongId" to stack "DevGuide" in 0 sec
+ send "deleteGuideControls tLongId" to stack "DevGuides" in 0 sec
end if
end mouseUp
diff --git a/smartcrumbs/DevGuides.livecode.sc/shareTexts/c5e4e9ce-5252-44f3-ba17-f4b5a2bde798.html b/smartcrumbs/DevGuides.livecode.sc/shareTexts/c5e4e9ce-5252-44f3-ba17-f4b5a2bde798.html
new file mode 100644
index 0000000..342cd37
--- /dev/null
+++ b/smartcrumbs/DevGuides.livecode.sc/shareTexts/c5e4e9ce-5252-44f3-ba17-f4b5a2bde798.html
@@ -0,0 +1,7 @@
+
DevGuides
+© FerrusLogic Team
+August 2021
+version 1.0.0
+
+This code is part of DevGuides extension created by FerrusLogic team to provide design guides to help LiveCode developers in the process of designing graphic interfaces in an easy and modern way
+
\ No newline at end of file
diff --git a/smartcrumbs/DevGuides.livecode.sc/stackFileProperties.json b/smartcrumbs/DevGuides.livecode.sc/stackFileProperties.json
index b585000..5faa493 100644
--- a/smartcrumbs/DevGuides.livecode.sc/stackFileProperties.json
+++ b/smartcrumbs/DevGuides.livecode.sc/stackFileProperties.json
@@ -3,12 +3,19 @@
"1e0c6d89-cd4a-4f00-b6aa-905c4813f75a": {
"behavior": {
"guid": "2e9ed90e-a88d-4701-91a1-88d69fed7cc5",
- "id": "button id 1006 of stack \u2022DevGuide\u2022"
+ "id": "button id 1006 of stack \u2022community.ferruslogic.library.devguides\u2022"
},
"properties": {
"autoHilite": false,
"backColor": "255,0,128",
- "customProperties": {"customKeys": {"cGuideLineType": "vertical"}},
+ "customProperties": {
+ "cREVGeneral": {
+ "revUniqueID": 1628303170790,
+ "scripteditorselection": 270,
+ "scripteditorvscroll": 0
+ },
+ "customKeys": {"cGuideLineType": "vertical"}
+ },
"disabled": true,
"foreColor": "255,0,128",
"lockLoc": true,
@@ -26,6 +33,13 @@
"properties": {
"autoHilite": false,
"backColor": "128,0,128",
+ "customProperties": {
+ "cREVGeneral": {
+ "revUniqueID": 1628274275631,
+ "scripteditorselection": 270,
+ "scripteditorvscroll": 0
+ }
+ },
"disabled": true,
"lockLoc": true,
"name": "bGuideLinesUtils\u0000",
@@ -44,12 +58,21 @@
"cantAbort": true,
"customProperties": {
"SmartCrumbsVCW": {"folder": "DevGuides.livecode.sc"},
- "cREVGeneral": {"scalefactor": 1},
+ "cREVGeneral": {
+ "AlreadyHidden": false,
+ "breakpointconditions": "",
+ "breakpoints": "",
+ "breakpointstates": "",
+ "scalefactor": 1,
+ "scripteditorselection": 4765,
+ "scripteditorvscroll": 2768
+ },
+ "cREVGeometryCache": {"stackID": 81330},
"customKeys": {"cGuideLineType": "vertical"}
},
"fileName": "DevGuides.livecode",
"height": 250,
- "name": "DevGuide",
+ "name": "community.ferruslogic.library.devguides",
"resizable": false,
"style": "toplevel",
"width": 500
@@ -59,12 +82,19 @@
"4ab98805-48eb-44ea-86bd-0a8b65d94c58": {
"behavior": {
"guid": "2e9ed90e-a88d-4701-91a1-88d69fed7cc5",
- "id": "button id 1006 of stack \u2022DevGuide\u2022"
+ "id": "button id 1006 of stack \u2022community.ferruslogic.library.devguides\u2022"
},
"properties": {
"autoHilite": false,
"backColor": "255,0,128",
- "customProperties": {"customKeys": {"cGuideLineType": "vertical"}},
+ "customProperties": {
+ "cREVGeneral": {
+ "revUniqueID": 1628274275632,
+ "scripteditorselection": 270,
+ "scripteditorvscroll": 0
+ },
+ "customKeys": {"cGuideLineType": "vertical"}
+ },
"disabled": true,
"foreColor": "255,0,128",
"lockLoc": true,
@@ -79,9 +109,17 @@
"type": "button"
},
"76193acd-d033-45e9-a4d6-342aa6aba373": {
- "hierarchy": "895c9bf4-55c5-4467-af53-87d150e8e6f4\nc4bff3f2-0603-4e4c-b311-54563c9c8b08",
+ "hierarchy": "895c9bf4-55c5-4467-af53-87d150e8e6f4\nc4bff3f2-0603-4e4c-b311-54563c9c8b08\nc5e4e9ce-5252-44f3-ba17-f4b5a2bde798",
"properties": {
- "customProperties": {"customKeys": {"cDisplayingGrid": false}},
+ "customProperties": {
+ "cREVGeneral": {
+ "scripteditorselection": 0,
+ "scripteditorvscroll": 0
+ },
+ "cREVGeometryCacheIDs": [1004, 1005, 1006, 1007, 21202, 22635, 80730],
+ "cREVGeometrycache": {"order": "\n", "total": 7},
+ "customKeys": {"cDisplayingGrid": false}
+ },
"name": "main"
},
"type": "card"
@@ -89,9 +127,10 @@
"895c9bf4-55c5-4467-af53-87d150e8e6f4": {
"properties": {
"cantSelect": true,
+ "customProperties": {"cREVGeneral": {"revUniqueID": 1628274275629}},
"lockLoc": true,
"name": "logo-Ferrus-Logic.png",
- "rect": "5,5,205,44",
+ "rect": "10,5,210,44",
"repeatCount": -1
},
"type": "image"
@@ -100,17 +139,20 @@
"hierarchy": "2e9ed90e-a88d-4701-91a1-88d69fed7cc5\n4ab98805-48eb-44ea-86bd-0a8b65d94c58\n1e0c6d89-cd4a-4f00-b6aa-905c4813f75a\nc4fd9d06-696a-463b-a7a8-3963bcd3aa4b",
"properties": {
"cantDelete": true,
+ "customProperties": {"cREVGeneral": {"revUniqueID": 1628274275630}},
"lockLoc": true,
"name": "bGuideLines",
"rect": "5,64,150,187",
"showBorder": true,
- "showName": true
+ "showName": true,
+ "visible": false
},
"type": "group"
},
"c4fd9d06-696a-463b-a7a8-3963bcd3aa4b": {
"properties": {
"backColor": "58,30,175",
+ "customProperties": {"cREVGeneral": {"revUniqueID": 1628386802748}},
"default": true,
"name": "Button",
"rect": "466,225,548,254",
@@ -118,6 +160,34 @@
"style": "opaque"
},
"type": "button"
+ },
+ "c5e4e9ce-5252-44f3-ba17-f4b5a2bde798": {
+ "properties": {
+ "autoHilite": false,
+ "customProperties": {
+ "cREVGeneral": {
+ "revUniqueID": 1628798074752,
+ "scripteditorselection": 0,
+ "scripteditorvscroll": 0,
+ "table": false
+ },
+ "cRevTable": {
+ "cellEdit": false,
+ "cellFormat": false,
+ "maxColumnCount": ""
+ }
+ },
+ "fixedLineHeight": false,
+ "lockLoc": true,
+ "lockText": true,
+ "name": "Label Field",
+ "rect": "1,51,495,249",
+ "sharedText": true,
+ "style": "transparent",
+ "textSize": 15,
+ "traversalOn": false
+ },
+ "type": "field"
}
},
"mainstack": "3d9f69c3-4f8a-4515-b18e-0bd56efbf9a0"