Skip to content

Commit 0fa5c5e

Browse files
committed
update doc
1 parent 5378e8a commit 0fa5c5e

File tree

8 files changed

+224
-5
lines changed

8 files changed

+224
-5
lines changed

Documentation/Classes/pathPicker.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<!-- Type your summary here -->
22
Create a new path picker
33

4+
If you update this documentation Classes\pathPicker.md do a copy into
5+
|Documentation|
6+
|-------|
7+
|Documentation\Forms\PATH PICKER |
8+
|Documentation\Methods\PATH_PICKER.md |
9+
|Documentation\Methods\pathPicker.md |
10+
411
https://github.com/vdelachaux/pathPicker
512
## Description
613

@@ -72,4 +79,32 @@ https://github.com/vdelachaux/pathPicker
7279
# How to install
7380

7481
1. To use the widget as is, copy the <a href="https://github.com/vdelachaux/pathPicker/tree/master/Build/Components">pathPicker.4dbase</a> into the `Components` folder of your database.
75-
2. If you want to integrate the component's elements into your code, you must copy the contents of the folders `Classes`, `Forms`, `Methods` & `Resources` to the corresponding folders of your database.
82+
2. If you want to integrate the component's elements into your code, you must copy the contents of the folders `Classes`, `Forms`, `Methods` & `Resources` to the corresponding folders of your database.
83+
84+
85+
|Classes|
86+
|-------|
87+
| Project\Sources\Classes\pathPicker.4dm |
88+
89+
|Methods|
90+
|-------|
91+
| Project\Sources\Methods\PATH_PICKER.4dm |
92+
| Project\Sources\Methods\PATH_PICKER.4dm |
93+
| Project\Sources\Methods\COMPILER_pathPicker.4dm |
94+
95+
|Forms|
96+
|-------|
97+
|Project\Sources\Forms\PATH PICKER|
98+
99+
|Documentation|
100+
|-------|
101+
|Documentation\Classes\pathPicker.md |
102+
|Documentation\Forms\PATH PICKER |
103+
|Documentation\Methods\PATH_PICKER.md |
104+
|Documentation\Methods\pathPicker.md |
105+
106+
107+
|Resources|
108+
|-------|
109+
|Resources\pathPicker |
110+
|Resources\ Content of each xx.lproj |

Documentation/Forms/PATH PICKER/form.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<!-- Type your summary here -->
22
Create a new path picker
33

4+
If you update this documentation Classes\pathPicker.md do a copy into
5+
|Documentation|
6+
|-------|
7+
|Documentation\Forms\PATH PICKER |
8+
|Documentation\Methods\PATH_PICKER.md |
9+
|Documentation\Methods\pathPicker.md |
10+
411
https://github.com/vdelachaux/pathPicker
512
## Description
613

@@ -32,6 +39,10 @@ https://github.com/vdelachaux/pathPicker
3239
|**.copyPath**|Boolean|Display the "Copy path" item in the linked menu|
3340
|**.openItem**|Boolean|Allow the opening of a folder selected in the linked menu|
3441
|**.label**|Text|Label diplayed into the widget\*\*|
42+
| ||Added by LT|
43+
|**.formBelongsToTableID**|Longint|table ID to which the form belongs. If form belongs to a project form, to not fill in|
44+
|**.formWidth**|Longint|If form is a project form, set width returns from FORM GET PROPERTIES(Current form name; $formWidth; $formHeight)|
45+
|**.formHeight**|Longint|If form is a project form, set height returns from FORM GET PROPERTIES(Current form name; $formWidth; $formHeight)|
3546

3647
\*See the documentation for the commands **Select a document** and **Select a folder**.
3748
\*\*The label is displayed in red if the path name is invalid. You shouldn't have to change it
@@ -68,4 +79,32 @@ https://github.com/vdelachaux/pathPicker
6879
# How to install
6980

7081
1. To use the widget as is, copy the <a href="https://github.com/vdelachaux/pathPicker/tree/master/Build/Components">pathPicker.4dbase</a> into the `Components` folder of your database.
71-
2. If you want to integrate the component's elements into your code, you must copy the contents of the folders `Classes`, `Forms`, `Methods` & `Resources` to the corresponding folders of your database.
82+
2. If you want to integrate the component's elements into your code, you must copy the contents of the folders `Classes`, `Forms`, `Methods` & `Resources` to the corresponding folders of your database.
83+
84+
85+
|Classes|
86+
|-------|
87+
| Project\Sources\Classes\pathPicker.4dm |
88+
89+
|Methods|
90+
|-------|
91+
| Project\Sources\Methods\PATH_PICKER.4dm |
92+
| Project\Sources\Methods\PATH_PICKER.4dm |
93+
| Project\Sources\Methods\COMPILER_pathPicker.4dm |
94+
95+
|Forms|
96+
|-------|
97+
|Project\Sources\Forms\PATH PICKER|
98+
99+
|Documentation|
100+
|-------|
101+
|Documentation\Classes\pathPicker.md |
102+
|Documentation\Forms\PATH PICKER |
103+
|Documentation\Methods\PATH_PICKER.md |
104+
|Documentation\Methods\pathPicker.md |
105+
106+
107+
|Resources|
108+
|-------|
109+
|Resources\pathPicker |
110+
|Resources\ Content of each xx.lproj |

Documentation/Methods/PATH_PICKER.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<!-- Type your summary here -->
22
Create a new path picker
33

4+
If you update this documentation Classes\pathPicker.md do a copy into
5+
|Documentation|
6+
|-------|
7+
|Documentation\Forms\PATH PICKER |
8+
|Documentation\Methods\PATH_PICKER.md |
9+
|Documentation\Methods\pathPicker.md |
10+
411
https://github.com/vdelachaux/pathPicker
512
## Description
613

@@ -32,7 +39,10 @@ https://github.com/vdelachaux/pathPicker
3239
|**.copyPath**|Boolean|Display the "Copy path" item in the linked menu|
3340
|**.openItem**|Boolean|Allow the opening of a folder selected in the linked menu|
3441
|**.label**|Text|Label diplayed into the widget\*\*|
42+
| ||Added by LT|
3543
|**.formBelongsToTableID**|Longint|table ID to which the form belongs. If form belongs to a project form, to not fill in|
44+
|**.formWidth**|Longint|If form is a project form, set width returns from FORM GET PROPERTIES(Current form name; $formWidth; $formHeight)|
45+
|**.formHeight**|Longint|If form is a project form, set height returns from FORM GET PROPERTIES(Current form name; $formWidth; $formHeight)|
3646

3747
\*See the documentation for the commands **Select a document** and **Select a folder**.
3848
\*\*The label is displayed in red if the path name is invalid. You shouldn't have to change it
@@ -69,4 +79,32 @@ https://github.com/vdelachaux/pathPicker
6979
# How to install
7080

7181
1. To use the widget as is, copy the <a href="https://github.com/vdelachaux/pathPicker/tree/master/Build/Components">pathPicker.4dbase</a> into the `Components` folder of your database.
72-
2. If you want to integrate the component's elements into your code, you must copy the contents of the folders `Classes`, `Forms`, `Methods` & `Resources` to the corresponding folders of your database.
82+
2. If you want to integrate the component's elements into your code, you must copy the contents of the folders `Classes`, `Forms`, `Methods` & `Resources` to the corresponding folders of your database.
83+
84+
85+
|Classes|
86+
|-------|
87+
| Project\Sources\Classes\pathPicker.4dm |
88+
89+
|Methods|
90+
|-------|
91+
| Project\Sources\Methods\PATH_PICKER.4dm |
92+
| Project\Sources\Methods\PATH_PICKER.4dm |
93+
| Project\Sources\Methods\COMPILER_pathPicker.4dm |
94+
95+
|Forms|
96+
|-------|
97+
|Project\Sources\Forms\PATH PICKER|
98+
99+
|Documentation|
100+
|-------|
101+
|Documentation\Classes\pathPicker.md |
102+
|Documentation\Forms\PATH PICKER |
103+
|Documentation\Methods\PATH_PICKER.md |
104+
|Documentation\Methods\pathPicker.md |
105+
106+
107+
|Resources|
108+
|-------|
109+
|Resources\pathPicker |
110+
|Resources\ Content of each xx.lproj |

Documentation/Methods/pathPicker.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<!-- Type your summary here -->
22
Create a new path picker
33

4+
If you update this documentation Classes\pathPicker.md do a copy into
5+
|Documentation|
6+
|-------|
7+
|Documentation\Forms\PATH PICKER |
8+
|Documentation\Methods\PATH_PICKER.md |
9+
|Documentation\Methods\pathPicker.md |
10+
411
https://github.com/vdelachaux/pathPicker
512
## Description
613

@@ -72,4 +79,32 @@ https://github.com/vdelachaux/pathPicker
7279
# How to install
7380

7481
1. To use the widget as is, copy the <a href="https://github.com/vdelachaux/pathPicker/tree/master/Build/Components">pathPicker.4dbase</a> into the `Components` folder of your database.
75-
2. If you want to integrate the component's elements into your code, you must copy the contents of the folders `Classes`, `Forms`, `Methods` & `Resources` to the corresponding folders of your database.
82+
2. If you want to integrate the component's elements into your code, you must copy the contents of the folders `Classes`, `Forms`, `Methods` & `Resources` to the corresponding folders of your database.
83+
84+
85+
|Classes|
86+
|-------|
87+
| Project\Sources\Classes\pathPicker.4dm |
88+
89+
|Methods|
90+
|-------|
91+
| Project\Sources\Methods\PATH_PICKER.4dm |
92+
| Project\Sources\Methods\PATH_PICKER.4dm |
93+
| Project\Sources\Methods\COMPILER_pathPicker.4dm |
94+
95+
|Forms|
96+
|-------|
97+
|Project\Sources\Forms\PATH PICKER|
98+
99+
|Documentation|
100+
|-------|
101+
|Documentation\Classes\pathPicker.md |
102+
|Documentation\Forms\PATH PICKER |
103+
|Documentation\Methods\PATH_PICKER.md |
104+
|Documentation\Methods\pathPicker.md |
105+
106+
107+
|Resources|
108+
|-------|
109+
|Resources\pathPicker |
110+
|Resources\ Content of each xx.lproj |

Libraries/lib4d-arm64.dylib

-140 KB
Binary file not shown.

Project/Sources/Classes/pathPicker.4dm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,16 +354,18 @@ Function __displayMenu
354354
: (Find in array:C230($aVol; $t)>0)
355355

356356
SET MENU ITEM ICON:C984($menu; -1; "path:/RESOURCES/pathPicker/drive.png")
357-
357+
SET MENU ITEM PARAMETER:C1004($menu; -1; DOCUMENT)
358358
//……………………………………………………………………………………………
359359
: (Test path name:C476(DOCUMENT)=Is a folder:K24:2)
360360

361361
SET MENU ITEM ICON:C984($menu; -1; "path:/RESOURCES/pathPicker/folder.png")
362+
SET MENU ITEM PARAMETER:C1004($menu; -1; DOCUMENT)
362363

363364
//……………………………………………………………………………………………
364365
: (Test path name:C476(DOCUMENT)=Is a document:K24:1)
365366

366367
SET MENU ITEM ICON:C984($menu; -1; "path:/RESOURCES/pathPicker/file.png")
368+
SET MENU ITEM PARAMETER:C1004($menu; -1; DOCUMENT)
367369

368370
Else
369371

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"$4d": {
3+
"version": "1",
4+
"kind": "form"
5+
},
6+
"windowSizingX": "variable",
7+
"windowSizingY": "variable",
8+
"windowMinWidth": 0,
9+
"windowMinHeight": 0,
10+
"windowMaxWidth": 32767,
11+
"windowMaxHeight": 32767,
12+
"rightMargin": 20,
13+
"bottomMargin": 20,
14+
"events": [
15+
"onLoad"
16+
],
17+
"windowTitle": "window title",
18+
"destination": "detailScreen",
19+
"pages": [
20+
{
21+
"objects": {}
22+
},
23+
{
24+
"objects": {
25+
"test_pp_ui": {
26+
"type": "subform",
27+
"left": 23,
28+
"top": 20,
29+
"width": 474,
30+
"height": 38,
31+
"detailForm": "PATH PICKER",
32+
"dataSource": "test_pp_ui"
33+
}
34+
}
35+
}
36+
],
37+
"geometryStamp": 7,
38+
"method": "method.4dm",
39+
"editor": {
40+
"activeView": "View 1",
41+
"defaultView": "View 1",
42+
"views": {
43+
"View 1": {}
44+
}
45+
}
46+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Case of
2+
: (Form event code:C388=On Load:K2:1)
3+
4+
C_OBJECT:C1216($o)
5+
$o:=New object:C1471
6+
$o.placeHolder:="Select the backup setting file…"
7+
$o.message:="Select a setting file…"
8+
$o.fileTypes:=".4DSettings"
9+
$o.directory:=1
10+
$o.type:=Is a document:K24:1
11+
$o.options:=Package open:K24:8+Use sheet window:K24:11
12+
//$o.formBelongsToTable:=->[Table_1]
13+
14+
15+
//Form.pathPicker.setType(Is a document)
16+
//Form.pathPicker.setMessage("Select a document to open:")
17+
//Form.pathPicker.setPlaceholder("Please select a document")
18+
//Form.pathPicker.setTarget(File(DOCUMENT; fk platform path))
19+
20+
21+
//C_OBJECT(test_pp_ui)
22+
//test_pp_ui:=pathPicker(File(Current backup settings file).platformPath; $o)
23+
24+
End case

0 commit comments

Comments
 (0)