-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDetailsUnit.dfm
More file actions
317 lines (317 loc) · 7.65 KB
/
DetailsUnit.dfm
File metadata and controls
317 lines (317 loc) · 7.65 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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
object Form3: TForm3
Left = 0
Top = 0
Caption = 'Form3'
ClientHeight = 377
ClientWidth = 583
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
TextHeight = 15
object StackPanel1: TStackPanel
Left = 185
Top = 0
Width = 398
Height = 377
Align = alClient
BevelOuter = bvNone
ControlCollection = <
item
Control = Label1
HorizontalPositioning = sphpFill
end
item
Control = Label2
HorizontalPositioning = sphpFill
end
item
Control = GridPanel1
end
item
Control = Label3
HorizontalPositioning = sphpFill
end>
Padding.Left = 24
Padding.Top = 8
TabOrder = 0
VerticalPositioning = spvpTop
ExplicitWidth = 394
ExplicitHeight = 376
object Label1: TLabel
Left = 24
Top = 8
Width = 374
Height = 45
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -32
Font.Name = 'Segoe UI'
Font.Style = [fsBold]
ParentFont = False
end
object Label2: TLabel
Left = 24
Top = 55
Width = 374
Height = 0
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -24
Font.Name = 'Segoe UI'
Font.Style = []
ParentFont = False
Transparent = True
Visible = False
end
object GridPanel1: TGridPanel
AlignWithMargins = True
Left = 24
Top = 65
Width = 350
Height = 42
Margins.Left = 0
Margins.Top = 8
Margins.Right = 0
Margins.Bottom = 0
BevelOuter = bvNone
ColumnCollection = <
item
Value = 50.000000000000010000
end
item
Value = 49.999999999999990000
end>
ControlCollection = <
item
Column = 0
Control = Label4
Row = 0
end
item
Column = 1
Control = Label5
Row = 1
end
item
Column = 0
Control = Label6
Row = 1
end
item
Column = 1
Control = Label7
Row = 0
end>
RowCollection = <
item
SizeStyle = ssAuto
Value = 100.000000000000000000
end
item
SizeStyle = ssAuto
Value = 100.000000000000000000
end>
TabOrder = 0
object Label4: TLabel
Left = 0
Top = 0
Width = 175
Height = 21
Align = alClient
AutoSize = False
Caption = 'Author: n/a'
EllipsisPosition = epEndEllipsis
ExplicitTop = 258
ExplicitWidth = 61
ExplicitHeight = 15
end
object Label5: TLabel
Left = 175
Top = 21
Width = 175
Height = 21
Align = alClient
AutoSize = False
Caption = 'Release year: n/a'
EllipsisPosition = epEndEllipsis
ExplicitLeft = 0
ExplicitTop = 258
ExplicitWidth = 94
ExplicitHeight = 15
end
object Label6: TLabel
Left = 0
Top = 21
Width = 175
Height = 21
Align = alClient
AutoSize = False
Caption = 'Rating: n/a'
EllipsisPosition = epEndEllipsis
ExplicitTop = 258
ExplicitWidth = 65
ExplicitHeight = 15
end
object Label7: TLabel
Left = 175
Top = 0
Width = 175
Height = 21
Align = alClient
AutoSize = False
Caption = 'Genre: '
EllipsisPosition = epEndEllipsis
ExplicitWidth = 34
ExplicitHeight = 15
end
end
object Label3: TLabel
AlignWithMargins = True
Left = 24
Top = 117
Width = 374
Height = 30
Margins.Left = 0
Margins.Top = 8
Margins.Right = 0
Margins.Bottom = 0
Caption = 'No description'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = [fsItalic]
ParentFont = False
WordWrap = True
end
end
object StackPanel2: TStackPanel
Left = 0
Top = 0
Height = 377
Align = alLeft
BevelOuter = bvNone
ControlCollection = <
item
Control = Image1
HorizontalPositioning = sphpFill
end>
TabOrder = 1
ExplicitHeight = 376
object Image1: TImage
Left = 0
Top = 0
Width = 185
Height = 256
Center = True
Picture.Data = {07544269746D617000000000}
Proportional = True
end
end
object LibraryConnection: TFDConnection
Params.Strings = (
'ConnectionDef=library')
Connected = True
LoginPrompt = False
Left = 46
Top = 13
end
object BindSourceDB1: TBindSourceDB
DataSet = FDQuery1
ScopeMappings = <>
Left = 48
Top = 72
end
object FDQuery1: TFDQuery
Active = True
Filtered = True
Connection = LibraryConnection
SQL.Strings = (
'SELECT b.*, g.name genre_name'
'FROM book b'
'JOIN genre g'
' ON b.genre = g.id;'
'')
Left = 16
Top = 72
end
object BindingsList1: TBindingsList
Methods = <>
OutputConverters = <>
Left = 12
Top = 13
object LinkPropertyToFieldCaption2: TLinkPropertyToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'series'
Component = Label2
ComponentProperty = 'Caption'
end
object LinkPropertyToFieldCaption3: TLinkPropertyToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'description'
Component = Label3
CustomFormat = 'IfThen(IfAny(%0:s <> ""), %0:s, "No description")'
ComponentProperty = 'Caption'
end
object LinkPropertyToFieldCaption4: TLinkPropertyToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'author'
Component = Label4
CustomFormat = '"Author: " + IfThen(IfAny(%0:s <> ""), %0:s, "n/a")'
ComponentProperty = 'Caption'
end
object LinkPropertyToFieldCaption5: TLinkPropertyToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'release_year'
Component = Label5
CustomFormat = '"Release year: " + IfThen(IfAny(%0:s <> ""), %0:s, "n/a")'
ComponentProperty = 'Caption'
end
object LinkPropertyToFieldCaption6: TLinkPropertyToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'rating'
Component = Label6
CustomFormat = '"Rating: " + IfThen(IfAny(%0:s <> ""), %0:s + "'#11088'", "n/a")'
ComponentProperty = 'Caption'
end
object LinkPropertyToFieldCaption: TLinkPropertyToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'title'
Component = Label1
ComponentProperty = 'Caption'
end
object LinkPropertyToFieldCaption7: TLinkPropertyToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'genre_name'
Component = Label7
CustomFormat = '"Genre: " + %s'
ComponentProperty = 'Caption'
end
object LinkControlToField1: TLinkControlToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'cover'
Control = Image1
Direction = linkDataToControl
Track = False
end
object LinkPropertyToFieldVisible: TLinkPropertyToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'series'
Component = Label2
CustomFormat = 'IfAny(%0:s <> "")'
ComponentProperty = 'Visible'
end
end
end