Skip to content

Commit dc6cc0f

Browse files
authored
Initial release.
1 parent 38ce71d commit dc6cc0f

8 files changed

+218
-0
lines changed

Info.lua

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
--
2+
-- Image Processing Notes, a plugin for Adobe Lightroom
3+
-- James J. Julian
4+
-- jimjulian.com
5+
-- Licensed under GNU GPLv3
6+
--
7+
-- file: info.lua
8+
--
9+
return {
10+
11+
LrSdkVersion = 6.0,
12+
LrSdkMinimumVersion = 5.0,
13+
14+
LrToolkitIdentifier = "com.jimjulian.lightroom.metadata.processing",
15+
LrPluginName = LOC "$$$/PluginName=Processing Notes",
16+
17+
-- Plug-in Initializer file
18+
LrInitPlugin = 'PluginInit.lua',
19+
20+
-- Plug-in Metadata Definitions file
21+
LrMetadataProvider = 'MetadataDefinition.lua',
22+
23+
-- Plug-in Metadata Panel file
24+
LrMetadataTagsetFactory = 'MetadataPanel.lua',
25+
26+
-- Plug-in Manager Dialog file
27+
LrPluginInfoProvider = 'PluginInfoProvider.lua',
28+
29+
VERSION = { major=1, minor=0, revision=0, build=1, }
30+
31+
}

MetadataDefinition.lua

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
--
2+
-- Image Processing Notes, a plugin for Adobe Lightroom
3+
-- James J. Julian
4+
-- jimjulian.com
5+
-- Licensed under GNU GPLv3
6+
--
7+
-- file: MetadataDefinition.lua
8+
--
9+
return {
10+
schemaVersion = 1, -- increment this when changing the field definitions!
11+
12+
metadataFieldsForPhotos = {
13+
-- "searchable" = true, search criteria in smart collections
14+
-- "searchable" and "browsable" = true, shows up under "Metadata" in Library's grid filter
15+
16+
{
17+
id = 'jimjulian'
18+
},
19+
20+
{
21+
id='ExtProcess',
22+
title = LOC "$$$/ExtProcess=External Process",
23+
dataType='enum',
24+
values = {
25+
{
26+
value = nil,
27+
title = LOC "$$$/Unknown=Unknown", },
28+
{
29+
value = 'yes',
30+
title = LOC "$$$/Yes=Yes", },
31+
{
32+
value = 'no',
33+
title = LOC "$$$/No=No", },
34+
},
35+
searchable=true,
36+
browsable=true
37+
},
38+
39+
{
40+
id='ProcessNotes',
41+
title = LOC "$$$/ProcessNotes=Process Notes",
42+
dataType='string',
43+
searchable=true,
44+
browsable=false
45+
},
46+
47+
}
48+
}

MetadataPanel.lua

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
--
2+
-- Image Processing Notes, a plugin for Adobe Lightroom
3+
-- James J. Julian
4+
-- jimjulian.com
5+
-- Licensed under GNU GPLv3
6+
--
7+
-- file: MetadataPanel.lua
8+
--
9+
return {
10+
11+
title = LOC "$$$/PluginNameShort=Processing Notes",
12+
id = 'processingTagset',
13+
14+
items = {
15+
'com.adobe.filename',
16+
'com.adobe.folder',
17+
'com.adobe.title',
18+
{ 'com.adobe.caption', height_in_lines = 3 },
19+
20+
'com.adobe.separator',
21+
22+
'com.jimjulian.lightroom.metadata.processing.ExtProcess',
23+
{ formatter = 'com.jimjulian.lightroom.metadata.processing.ProcessNotes', height_in_lines=10, topLabel=true },
24+
},
25+
}

PluginInfoProvider.lua

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--
2+
-- Image Processing Notes, a plugin for Adobe Lightroom
3+
-- James J. Julian
4+
-- jimjulian.com
5+
-- Licensed under GNU GPLv3
6+
--
7+
-- file: PluginInfoProvider.lua
8+
-- Manages the dialog entry in the Plugin Manager dialog window.
9+
--
10+
11+
require 'PluginManager'
12+
13+
return{
14+
sectionsForTopOfDialog = PluginManager.sectionsForTopOfDialog,
15+
16+
}

PluginInit.lua

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--
2+
-- Image Processing Notes, a plugin for Adobe Lightroom
3+
-- James J. Julian
4+
-- jimjulian.com
5+
-- Licensed under GNU GPLv3
6+
--
7+
-- file: PluginInit.lua
8+
--
9+
_G.MyURL = "http://www.jimjulian.com"
10+
_G.SourceURL = "https://github.com/jimjulian/image-processing-notes"
11+
_G.DonateURL = "https://www.paypal.me/jimjulian"
12+
_G.Support = LOC "$$$/Support=Free Lightroom plugin provided with no support. Licensed under GNU GPLv3."

PluginManager.lua

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
--
2+
-- Image Processing Notes, a plugin for Adobe Lightroom
3+
-- James J. Julian
4+
-- jimjulian.com
5+
-- Licensed under GNU GPLv3
6+
--
7+
-- file: PluginManager.lua
8+
--
9+
local LrHttp = import "LrHttp"
10+
local LrColor = import "LrColor"
11+
12+
PluginManager = {}
13+
14+
function PluginManager.sectionsForTopOfDialog(f, p)
15+
16+
return {
17+
-- section for the top of the dialog
18+
{
19+
title = LOC "$$$/PluginName=Image Processing Notes" .. LOC "$$$/PluginNameLong= (extra fields in the Metadata panel by Jim Julian)",
20+
f:row {
21+
f:column{
22+
width = 75,
23+
f:picture {
24+
value = _PLUGIN:resourceId ('logo.png'),
25+
frame_width = 5 ,
26+
frame_color = LrColor( 1, 1, 1 ),
27+
},
28+
},
29+
f:column{
30+
spacing =f:control_spacing(),
31+
f:push_button {
32+
title = LOC "$$$/Website=My Website",
33+
enabled = true,
34+
action = function()
35+
LrHttp.openUrlInBrowser(_G.MyURL)
36+
end,
37+
},
38+
},
39+
f:column{
40+
spacing =f:control_spacing(),
41+
f:push_button {
42+
title = LOC "$$$/Source=Source Code",
43+
enabled = true,
44+
action = function()
45+
LrHttp.openUrlInBrowser(_G.SourceURL)
46+
end,
47+
},
48+
},
49+
f:column{
50+
f:push_button {
51+
title = LOC "$$$/Donate=Please Donate",
52+
enabled = true,
53+
action = function()
54+
LrHttp.openUrlInBrowser(_G.DonateURL)
55+
end,
56+
},
57+
},
58+
59+
},
60+
61+
f:row {
62+
f:static_text {
63+
title = 'Support: ',
64+
},
65+
f:static_text {
66+
title= _G.Support,
67+
fill_horizontal = 0,
68+
},
69+
},
70+
71+
},
72+
73+
}
74+
end

TranslatedStrings_en.txt

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"$$$/PluginName=Image Processing Notes"
2+
"$$$/PluginNameShort=Processing Notes"
3+
"$$$/PluginNameLong= (extra fields in the Metadata panel by Jim Julian)"
4+
"$$$/Website=My Website"
5+
"$$$/Source=Source Code"
6+
"$$$/Donate=Please Donate"
7+
"$$$/Support=Free Lightroom plugin provided with no support. Licensed under GNU GPLv3."
8+
"$$$/ExtProcess=External Process"
9+
"$$$/ProcessNotes=Process Notes"
10+
"$$$/Unknown=Unknown"
11+
"$$$/Yes=Yes"
12+
"$$$/No=No"

logo.png

5.09 KB
Loading

0 commit comments

Comments
 (0)