Adobe 65007312 Programming Guide - Page 117

GalleryInfo top-level entries, Web > About

Page 117 highlights

CHAPTER 6: Writing a Web-engine Plug-in Defining the data model 117 GalleryInfo top-level entries The following top-level properties are defined in the galleryInfo.lrweb file: title id galleryType maximumGallerySize model views iconicPreview aboutBoxFile supportsLiveUpdate A localizable title string for the gallery type, which appears in the Web module's Engine list. You can localize the title string using the LOC function. Each gallery must have a unique identifying string. By convention, use reverse-domain nomenclature, as for Java packages. For example, com.myCompany.myDivision.myGallery. The type of gallery. Currently only one type is allowed: X "lua" - An HTML gallery that uses Lua Server Pages. The maximum number of photos this gallery can reasonably display. A table of user-configurable options for this web engine such as colors, labels, dimensions, image quality settings, grid row and column specifications, and so on. The keys in this table are strings that use dot-separated notation to break into separate areas; for example, "model.nonDynamic.numRows". See"Data model entries" on page 118. A function that returns a table of view descriptions by name, with entries for "labels", "colorPalette", "appearanceConfiguration", and "outputSettings". Each of these corresponds to a panel in the Web module, and each entry defines new UI controls to be added to that panel. See "Defining a UI for your model" on page 120. A table of information for controlling the live preview movie for a gallery in the Preview panel. See "Creating a preview" on page 125. The name of an HTML file to be displayed in the About box for this web engine. The file must be simple, self-contained HTML that does not reference any other resources (such as CSS or images). The About box is displayed when the user chooses Web > About [thisEngine]. Boolean, true if this web engine supports the Live Update mechanism. See "Web HTML Live Update" on page 139. This example shows the top-level entries from the galleryInfo.lrweb file of the built-in HTML gallery: return { LrSdkVersion = 3.0, LrSdkMinimumVersion = 2.0, -- minimum SDK version required by this plugin

  • 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
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

C
HAPTER
6: Writing a Web-engine Plug-in
Defining the data model
117
GalleryInfo top-level entries
The following top-level properties are defined in the
galleryInfo.lrweb
file:
This example shows the top-level entries from the
galleryInfo.lrweb
file of the built-in HTML gallery:
return {
LrSdkVersion = 3.0,
LrSdkMinimumVersion = 2.0, -- minimum SDK version required by this plugin
title
A localizable title string for the gallery type, which appears in the
Web module’s Engine list. You can localize the title string using the
LOC
function.
id
Each gallery must have a unique identifying string. By convention,
use reverse-domain nomenclature, as for Java packages. For
example,
com.myCompany.myDivision.myGallery
.
galleryType
The type of gallery. Currently only one type is allowed:
X
"lua"
— An HTML gallery that uses Lua Server Pages.
maximumGallerySize
The maximum number of photos this gallery can reasonably
display.
model
A table of user-configurable options for this web engine such as
colors, labels, dimensions, image quality settings, grid row and
column specifications, and so on.
The keys in this table are strings that use dot-separated notation
to break into separate areas; for example,
"model.nonDynamic.numRows"
.
See
“Data model entries” on page 118
.
views
A function that returns a table of view descriptions by name, with
entries for "labels", "colorPalette", "appearanceConfiguration", and
"outputSettings". Each of these corresponds to a panel in the Web
module, and each entry defines new UI controls to be added to
that panel.
See
“Defining a UI for your model” on page 120
.
iconicPreview
A table of information for controlling the live preview movie for a
gallery in the Preview panel.
See
“Creating a preview” on page 125
.
aboutBoxFile
The name of an HTML file to be displayed in the About box for this
web engine. The file must be simple, self-contained HTML that
does not reference any other resources (such as CSS or images).
The About box is displayed when the user chooses
Web > About
[thisEngine]
.
supportsLiveUpdate
Boolean, true if this web engine supports the Live Update
mechanism. See
“Web HTML Live Update” on page 139
.