-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.json
executable file
·92 lines (92 loc) · 3.75 KB
/
dialog.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
dialog {
text: "Export Layers To Files",
orientation: "column",
alignChildren: "fill",
lblDest: StaticText {
alignment: "left",
text: "Destination:"
},
funcArea: Group {
orientation: "row",
alignChildren: "top",
content: Group {
orientation: "column",
alignChildren: "left",
grpDest: Group {
orientation: "row",
alignChildren: "left",
txtDest: EditText {preferredSize: [310, 20], properties: {readonly: true}},
btnDest: Button {text: "Browse..."}
},
grpLayers: Group {
orientation: "row",
txtLayers: StaticText {text: "Export:", preferredSize: [80, 20]},
radioLayersAll: RadioButton {text: "All layers", preferredSize: [80, 20], value: true},
radioLayersVis: RadioButton {text: "Visible only", preferredSize: [100, 20]},
radioLayersSel: RadioButton {text: "Selected group", preferredSize: [120, 20]}
},
grpNaming: Group {
orientation: "row",
txtNaming: StaticText {text: "Name files:", preferredSize: [80, 20]},
drdNaming: DropDownList {preferredSize: [140, 20], properties: {items: ["As layers, strip extension", "As layers", "By index from top", "By index from bottom"]}},
cbNaming: Checkbox {text: "Allow spaces"},
radioUnderscore: RadioButton {text: "Use Underscore", preferredSize: [120, 20], value: true},
radioHyphen: RadioButton {text: "Use Hyphen", preferredSize: [120, 20]},
},
grpLetterCase: Group {
orientation: "row",
txtLetterCase: StaticText {text: "Letter case:", preferredSize: [80, 20]},
drdLetterCase: DropDownList {preferredSize: [140, 20], properties: {items: ["Keep", "Lowercase", "Uppercase"]}}
},
grpPrefix: Group {
orientation: "row",
alignChildren: "left",
txtPrefix: StaticText {text: "Prefix/suffix:", preferredSize: [80, 20], helpTip: "Prefix and/or suffix that will be added to the exported file names. A space is added automatically after/before."},
editPrefix: EditText {preferredSize: [140, 20]},
txtSep: StaticText {text: "- ... -"},
editSuffix: EditText {preferredSize: [140, 20]}
},
grpFolderTree: Group {
orientation: "row",
alignChildren: "left",
cbFolderTree: Checkbox {text: "Groups as folders", helpTip: "Exports groups as a folder tree."}
},
grpTrim: Group {
orientation: "row",
txtTrim: StaticText {text: "Trim:", preferredSize: [80, 20]},
drdTrim: DropDownList {preferredSize: [140, 20], properties: {items: ["No", "Each layer", "Combined"]}},
cbTrim: Checkbox {text: "Use trim()", helpTip: "Won't trim if a background layer is on, but may behave better on Mac."}
},
cbBgLayer: Checkbox {text: "Lowest layer is background", helpTip: "Leaves the bottommost layer on while exporting every other layer one by one. It will act as background."},
grpFileType: Group {
orientation: "row",
txtFileType: StaticText {text: "File type:", preferredSize: [80, 20]},
drdFileType: DropDownList {preferredSize: [70, 20]}
},
pnlOptions: Panel {
text: "Options:",
orientation: "stack",
alignment: "fill",
preferredSize: [200, 100]
}
},
buttons: Group {
orientation: "column",
btnRun: Button {text: "Run"},
btnCancel: Button {text: "Cancel"},
txtSpace: StaticText {},
btnSettings: Button {text: "Save and Cancel", helpTip: "Save current settings and cancel."},
txtSpace: StaticText {},
cbOverwrite: Checkbox {text: "Overwrite files", helpTip: "Overwrite existing files"}
}
},
warning: Panel {
alignChildren: "fill",
message: StaticText {
text: "This document contains {0} layer(s), {1} of them visible, {2} selected.\n\nProcessing a large number of layers may take some time!\n\n(If you check \"Allow spaces\", make sure they are not replaced by Photoshop itself in \"Save For Web\" settings.)",
properties: {
multiline: true
}
}
}
}