-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
436621c
commit 101800f
Showing
13 changed files
with
298 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
# Ignore invisible files/folders except me | ||
.* | ||
!.gitignore | ||
|
||
# Ignore data file | ||
Data/ | ||
DATA/ | ||
data/ | ||
*.4DD | ||
*.journal | ||
*.4DIndx | ||
*.Match | ||
*symbols.txt | ||
|
||
# Ignore derived data | ||
DerivedData/ | ||
|
||
# Ignore logs | ||
Logs/ | ||
|
||
# Ignore settings & preferences | ||
Settings/ | ||
!buildApp.4DSettings | ||
|
||
Preferences/ | ||
!4DPop AppMaker.xml | ||
|
||
userPreferences.*/ | ||
|
||
# Miscellaneous | ||
DEV/ | ||
*__Orphan__* | ||
ehthumbs.db | ||
Thumbs.db | ||
Resources/php.ini | ||
Project/Trash/ | ||
*.bbprojectd/ | ||
# Ignore invisible files/folders except me | ||
.* | ||
!.gitignore | ||
|
||
# Ignore data file | ||
Data/ | ||
DATA/ | ||
data/ | ||
*.4DD | ||
*.journal | ||
*.4DIndx | ||
*.Match | ||
*symbols.txt | ||
|
||
# Ignore derived data | ||
DerivedData/ | ||
|
||
# Ignore logs | ||
Logs/ | ||
|
||
# Ignore settings & preferences | ||
Settings/ | ||
!buildApp.4DSettings | ||
|
||
Preferences/ | ||
!4DPop AppMaker.xml | ||
|
||
userPreferences.*/ | ||
|
||
# Miscellaneous | ||
DEV/ | ||
*__Orphan__* | ||
ehthumbs.db | ||
Thumbs.db | ||
Resources/php.ini | ||
Project/Trash/ | ||
*.bbprojectd/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
{ | ||
"$4d": { | ||
"version": "1", | ||
"kind": "form" | ||
}, | ||
"windowSizingX": "variable", | ||
"windowSizingY": "variable", | ||
"windowMinWidth": 0, | ||
"windowMinHeight": 0, | ||
"windowMaxWidth": 32767, | ||
"windowMaxHeight": 32767, | ||
"events": [ | ||
"onLoad", | ||
"onDataChange", | ||
"onTimer", | ||
"onAfterEdit" | ||
], | ||
"windowTitle": "window title", | ||
"destination": "detailScreen", | ||
"pages": [ | ||
{ | ||
"objects": {} | ||
}, | ||
{ | ||
"objects": { | ||
"Text": { | ||
"type": "text", | ||
"text": "Add Pattern to .gitignore", | ||
"top": 10, | ||
"left": 84, | ||
"width": 570, | ||
"height": 16, | ||
"fontTheme": "main" | ||
}, | ||
"pattern": { | ||
"type": "input", | ||
"left": 84, | ||
"top": 108, | ||
"width": 570, | ||
"height": 17, | ||
"dataSource": "Form:C1466.pattern", | ||
"events": [ | ||
"onDataChange", | ||
"onAfterEdit" | ||
], | ||
"multiline": "no" | ||
}, | ||
"Static Picture1": { | ||
"type": "picture", | ||
"top": 10, | ||
"left": 10, | ||
"width": 64, | ||
"height": 64, | ||
"picture": "/RESOURCES/4DPop.png", | ||
"pictureFormat": "scaled" | ||
}, | ||
"ok": { | ||
"type": "button", | ||
"text": "OK", | ||
"top": 296, | ||
"left": 573, | ||
"width": 81, | ||
"height": 22, | ||
"events": [ | ||
"onClick" | ||
], | ||
"action": "accept" | ||
}, | ||
"cancel": { | ||
"type": "button", | ||
"text": "Cancel", | ||
"top": 296, | ||
"left": 472, | ||
"width": 81, | ||
"height": 22, | ||
"events": [ | ||
"onClick" | ||
], | ||
"action": "cancel" | ||
}, | ||
"Text1": { | ||
"type": "text", | ||
"text": "A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked are not affected.", | ||
"top": 34, | ||
"left": 84, | ||
"width": 570, | ||
"height": 46, | ||
"fontTheme": "normal", | ||
"textAlign": "justify", | ||
"borderStyle": "none" | ||
}, | ||
"Text2": { | ||
"type": "text", | ||
"text": "Pattern", | ||
"top": 87, | ||
"left": 84, | ||
"width": 568, | ||
"height": 16, | ||
"fontTheme": "normal", | ||
"textAlign": "justify" | ||
}, | ||
"Text3": { | ||
"type": "text", | ||
"text": "Preview", | ||
"top": 142, | ||
"left": 84, | ||
"width": 83, | ||
"height": 16, | ||
"fontTheme": "normal", | ||
"textAlign": "justify" | ||
}, | ||
"preview": { | ||
"type": "listbox", | ||
"left": 84, | ||
"top": 161, | ||
"width": 570, | ||
"height": 115, | ||
"events": [], | ||
"dataSource": "Form:C1466.preview", | ||
"showHeaders": false, | ||
"horizontalLineStroke": "transparent", | ||
"verticalLineStroke": "transparent", | ||
"selectionMode": "none", | ||
"listboxType": "collection", | ||
"resizingMode": "legacy", | ||
"hideFocusRing": true, | ||
"scrollbarHorizontal": "hidden", | ||
"scrollbarVertical": "automatic", | ||
"columns": [ | ||
{ | ||
"header": { | ||
"text": "Header1", | ||
"name": "Header1" | ||
}, | ||
"name": "Column1", | ||
"footer": { | ||
"name": "Footer1" | ||
}, | ||
"dataSource": "This:C1470.path" | ||
} | ||
] | ||
}, | ||
"Input": { | ||
"type": "input", | ||
"left": 398, | ||
"top": 145, | ||
"width": 256, | ||
"height": 15, | ||
"dataSource": "String:C10(Form:C1466.preview.length)+\" file matches\"", | ||
"contextMenu": "none", | ||
"enterable": false, | ||
"borderStyle": "none", | ||
"textAlign": "right", | ||
"fontSize": 11, | ||
"fill": "transparent", | ||
"focusable": false | ||
} | ||
} | ||
} | ||
], | ||
"method": "method.4dm", | ||
"width": 674, | ||
"height": 338 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// ---------------------------------------------------- | ||
// Form method : ADD_PATTERN | ||
// ID[F480A3B6285F424087B017C3B2CADCA1] | ||
// Created 11-3-2020 by Vincent de Lachaux | ||
// ---------------------------------------------------- | ||
C_TEXT:C284($tPattern) | ||
C_OBJECT:C1216($event;$o) | ||
|
||
// ---------------------------------------------------- | ||
// Initialisations | ||
$event:=FORM Event:C1606 | ||
|
||
// ---------------------------------------------------- | ||
|
||
Case of | ||
|
||
//______________________________________________________ | ||
: ($event.code=On Load:K2:1) | ||
|
||
SET TIMER:C645(-1) | ||
|
||
//______________________________________________________ | ||
: ($event.code=On Data Change:K2:15)\ | ||
| ($event.code=On After Edit:K2:43) | ||
|
||
SET TIMER:C645(-1) | ||
|
||
//______________________________________________________ | ||
: ($event.code=On Timer:K2:25) | ||
|
||
SET TIMER:C645(0) | ||
|
||
$tPattern:=Choose:C955(String:C10($event.objectName)="pattern";Get edited text:C655;String:C10(Form:C1466.pattern)) | ||
$tPattern:=Replace string:C233($tPattern;".";"\\.") | ||
$tPattern:=Replace string:C233($tPattern;"*";".*") | ||
|
||
Form:C1466.preview:=New collection:C1472 | ||
|
||
For each ($o;Form:C1466.files) | ||
|
||
If (Match regex:C1019($tPattern;$o.path;1)) | ||
|
||
Form:C1466.preview.push($o) | ||
|
||
End if | ||
End for each | ||
|
||
Form:C1466.preview:=Form:C1466.preview | ||
|
||
//______________________________________________________ | ||
Else | ||
|
||
ASSERT:C1129(False:C215;"Form event activated unnecessarily ("+$event.description+")") | ||
|
||
//______________________________________________________ | ||
End case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.