aboutsummaryrefslogtreecommitdiff
path: root/mediawiki.lrdevplugin/MediaWikiPluginInfoProvider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mediawiki.lrdevplugin/MediaWikiPluginInfoProvider.lua')
-rw-r--r--mediawiki.lrdevplugin/MediaWikiPluginInfoProvider.lua34
1 files changed, 14 insertions, 20 deletions
diff --git a/mediawiki.lrdevplugin/MediaWikiPluginInfoProvider.lua b/mediawiki.lrdevplugin/MediaWikiPluginInfoProvider.lua
index 1f2f66a..b9e2201 100644
--- a/mediawiki.lrdevplugin/MediaWikiPluginInfoProvider.lua
+++ b/mediawiki.lrdevplugin/MediaWikiPluginInfoProvider.lua
@@ -25,16 +25,19 @@ MediaWikiPluginInfoProvider.startDialog = function(propertyTable)
propertyTable.logging = MediaWikiUtils.getLogging()
propertyTable.create_snapshots = MediaWikiUtils.getCreateSnapshots()
propertyTable.check_version = MediaWikiUtils.getCheckVersion()
+ propertyTable.export_keyword = MediaWikiUtils.getExportKeyword()
end
MediaWikiPluginInfoProvider.endDialog = function(propertyTable)
MediaWikiUtils.setLogging(propertyTable.logging)
MediaWikiUtils.setCreateSnapshots(propertyTable.create_snapshots)
MediaWikiUtils.setCheckVersion(propertyTable.check_version)
+ MediaWikiUtils.setExportKeyword(propertyTable.export_keyword)
end
MediaWikiPluginInfoProvider.sectionsForBottomOfDialog = function(viewFactory, propertyTable)
local labelAlignment = 'right';
+ local widthLong = 50;
return {
{
@@ -47,11 +50,6 @@ MediaWikiPluginInfoProvider.sectionsForBottomOfDialog = function(viewFactory, pr
viewFactory:row {
spacing = viewFactory:label_spacing(),
- viewFactory:static_text {
- alignment = labelAlignment,
- width = LrView.share "label_width",
- },
-
viewFactory:checkbox {
value = bind 'create_snapshots',
title = LOC '$$$/LrMediaWiki/Section/Config/Snapshots=Create snapshots on export',
@@ -64,8 +62,19 @@ MediaWikiPluginInfoProvider.sectionsForBottomOfDialog = function(viewFactory, pr
viewFactory:static_text {
alignment = labelAlignment,
width = LrView.share "label_width",
+ title = LOC '$$$/LrMediaWiki/Section/Config/ExportKeyword=Export keyword',
},
+ viewFactory:edit_field {
+ value = bind 'export_keyword',
+ immediate = true,
+ width_in_chars = widthLong,
+ },
+ },
+
+ viewFactory:row {
+ spacing = viewFactory:label_spacing(),
+
viewFactory:checkbox {
value = bind 'check_version',
title = LOC '$$$/LrMediaWiki/Section/Config/Version=Check for new plugin versions after Lightroom starts',
@@ -75,11 +84,6 @@ MediaWikiPluginInfoProvider.sectionsForBottomOfDialog = function(viewFactory, pr
viewFactory:row {
spacing = viewFactory:label_spacing(),
- viewFactory:static_text {
- alignment = labelAlignment,
- width = LrView.share "label_width",
- },
-
viewFactory:checkbox {
value = bind 'logging',
title = LOC '$$$/LrMediaWiki/Section/Config/Logging=Enable logging',
@@ -90,11 +94,6 @@ MediaWikiPluginInfoProvider.sectionsForBottomOfDialog = function(viewFactory, pr
spacing = viewFactory:label_spacing(),
viewFactory:static_text {
- alignment = labelAlignment,
- width = LrView.share "label_width",
- },
-
- viewFactory:static_text {
title = LOC '$$$/LrMediaWiki/Section/Config/Logging/Description=If you enable logging, all API requests are logged. The log file is located in your "My Documents" directory.',
wrap = true,
},
@@ -104,11 +103,6 @@ MediaWikiPluginInfoProvider.sectionsForBottomOfDialog = function(viewFactory, pr
spacing = viewFactory:label_spacing(),
viewFactory:static_text {
- alignment = labelAlignment,
- width = LrView.share "label_width",
- },
-
- viewFactory:static_text {
title = LOC '$$$/LrMediaWiki/Section/Config/Logging/Warning=Warning:',
font = '<system/bold>',
},