-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginManager.lua
More file actions
74 lines (67 loc) · 1.62 KB
/
Copy pathPluginManager.lua
File metadata and controls
74 lines (67 loc) · 1.62 KB
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
--
-- Image Processing Notes, a plugin for Adobe Lightroom
-- James J. Julian
-- jimjulian.com
-- Licensed under GNU GPLv3
--
-- file: PluginManager.lua
--
local LrHttp = import "LrHttp"
local LrColor = import "LrColor"
PluginManager = {}
function PluginManager.sectionsForTopOfDialog(f, p)
return {
-- section for the top of the dialog
{
title = LOC "$$$/PluginName=Image Processing Notes" .. LOC "$$$/PluginNameLong= (extra fields in the Metadata panel by Jim Julian)",
f:row {
f:column{
width = 75,
f:picture {
value = _PLUGIN:resourceId ('logo.png'),
frame_width = 5 ,
frame_color = LrColor( 1, 1, 1 ),
},
},
f:column{
spacing =f:control_spacing(),
f:push_button {
title = LOC "$$$/Website=My Website",
enabled = true,
action = function()
LrHttp.openUrlInBrowser(_G.MyURL)
end,
},
},
f:column{
spacing =f:control_spacing(),
f:push_button {
title = LOC "$$$/Source=Source Code",
enabled = true,
action = function()
LrHttp.openUrlInBrowser(_G.SourceURL)
end,
},
},
f:column{
f:push_button {
title = LOC "$$$/Donate=Please Donate",
enabled = true,
action = function()
LrHttp.openUrlInBrowser(_G.DonateURL)
end,
},
},
},
f:row {
f:static_text {
title = 'Support: ',
},
f:static_text {
title= _G.Support,
fill_horizontal = 0,
},
},
},
}
end