blob: b794566b3102e9b660bef7f3483b879e4cccb1c6 (
plain)
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
|
{ Parsed from ImageKit.framework IKImageBrowserView.h }
{ Types from IKAppearance }
{$ifdef TYPES}
{$endif}
{ Types from IKBrowsing }
{$ifdef TYPES}
{$endif}
{ Types from IKSelectionReorderingAndGrouping }
{$ifdef TYPES}
{$endif}
{ Types from IKDragNDrop }
{$ifdef TYPES}
{$endif}
{$ifdef TYPES}
type
IKImageBrowserViewPtr = ^IKImageBrowserView;
{$endif}
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
{$ifdef TYPES}
const
IKCellsStyleNone = 0;
IKCellsStyleShadowed = 1;
IKCellsStyleOutlined = 2;
IKCellsStyleTitled = 4;
IKCellsStyleSubtitled = 8;
const
IKGroupBezelStyle = 0;
IKGroupDisclosureStyle = 1;
{$endif}
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
{$ifdef TYPES}
const
IKImageBrowserDropOn = 0;
IKImageBrowserDropBefore = 1;
type
IKImageBrowserDropOperation = clong;
{$endif}
{$endif}
{$ifdef CLASSES}
type
IKImageBrowserDataSource = objccategory external (NSObject)
function numberOfItemsInImageBrowser (aBrowser: IKImageBrowserView): NSUInteger; message 'numberOfItemsInImageBrowser:';
function imageBrowser_itemAtIndex (aBrowser: IKImageBrowserView; index: NSUInteger): id; message 'imageBrowser:itemAtIndex:';
procedure imageBrowser_removeItemsAtIndexes (aBrowser: IKImageBrowserView; indexes: NSIndexSet); message 'imageBrowser:removeItemsAtIndexes:';
function imageBrowser_moveItemsAtIndexes_toIndex (aBrowser: IKImageBrowserView; indexes: NSIndexSet; destinationIndex: NSUInteger): ObjCBOOL; message 'imageBrowser:moveItemsAtIndexes:toIndex:';
function imageBrowser_writeItemsAtIndexes_toPasteboard (aBrowser: IKImageBrowserView; itemIndexes: NSIndexSet; pasteboard: NSPasteboard): NSUInteger; message 'imageBrowser:writeItemsAtIndexes:toPasteboard:';
function numberOfGroupsInImageBrowser (aBrowser: IKImageBrowserView): NSUInteger; message 'numberOfGroupsInImageBrowser:';
function imageBrowser_groupAtIndex (aBrowser: IKImageBrowserView; index: NSUInteger): NSDictionary; message 'imageBrowser:groupAtIndex:';
end;
type
IKImageBrowserItem = objccategory external (NSObject)
function imageUID: NSString; message 'imageUID';
function imageRepresentationType: NSString; message 'imageRepresentationType';
function imageRepresentation: id; message 'imageRepresentation';
function imageVersion: NSUInteger; message 'imageVersion';
function imageTitle: NSString; message 'imageTitle';
function imageSubtitle: NSString; message 'imageSubtitle';
function isSelectable: ObjCBOOL; message 'isSelectable';
end;
type
IKImageBrowserView = objcclass external (NSView, NSDraggingSourceProtocol)
private
_dataSource: id;
_dragDestinationDelegate: id;
_verticalScroller: NSScroller;
_horizontalScroller: NSScroller;
_delegate: id;
_reserved: pointer;
{ Adopted protocols }
procedure draggingSession_endedAtPoint_operation (session: NSDraggingSession; screenPoint: NSPoint; operation: NSDragOperation); message 'draggingSession:endedAtPoint:operation:';
procedure draggingSession_movedToPoint (session: NSDraggingSession; screenPoint: NSPoint); message 'draggingSession:movedToPoint:';
function draggingSession_sourceOperationMaskForDraggingContext (session: NSDraggingSession; context: NSDraggingContext): NSDragOperation; message 'draggingSession:sourceOperationMaskForDraggingContext:';
procedure draggingSession_willBeginAtPoint (session: NSDraggingSession; screenPoint: NSPoint); message 'draggingSession:willBeginAtPoint:';
function ignoreModifierKeysForDraggingSession (session: NSDraggingSession): ObjCBOOL; message 'ignoreModifierKeysForDraggingSession:';
end;
type
IKMainMethods = objccategory external (IKImageBrowserView)
function initWithFrame (frame: NSRect): id; message 'initWithFrame:';
procedure setDataSource (source: id); message 'setDataSource:';
function dataSource: id; message 'dataSource';
procedure reloadData; message 'reloadData';
procedure setDelegate (aDelegate: id); message 'setDelegate:';
function delegate: id; message 'delegate';
end;
type
IKAppearance = objccategory external (IKImageBrowserView)
procedure setCellsStyleMask (mask: NSUInteger); message 'setCellsStyleMask:';
function cellsStyleMask: NSUInteger; message 'cellsStyleMask';
procedure setConstrainsToOriginalSize (flag: ObjCBOOL); message 'setConstrainsToOriginalSize:';
function constrainsToOriginalSize: ObjCBOOL; message 'constrainsToOriginalSize';
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
procedure setBackgroundLayer (aLayer: CALayer); message 'setBackgroundLayer:';
function backgroundLayer: CALayer; message 'backgroundLayer';
procedure setForegroundLayer (aLayer: CALayer); message 'setForegroundLayer:';
function foregroundLayer: CALayer; message 'foregroundLayer';
function newCellForRepresentedItem (anItem: id): IKImageBrowserCell; message 'newCellForRepresentedItem:';
function cellForItemAtIndex (index: NSUInteger): IKImageBrowserCell; message 'cellForItemAtIndex:';
{$endif}
end;
type
IKBrowsing = objccategory external (IKImageBrowserView)
procedure setZoomValue (aValue: single); message 'setZoomValue:';
function zoomValue: single; message 'zoomValue';
procedure setContentResizingMask (mask: NSUInteger); message 'setContentResizingMask:';
function contentResizingMask: NSUInteger; message 'contentResizingMask';
procedure scrollIndexToVisible (index: NSInteger); message 'scrollIndexToVisible:';
procedure setCellSize (size: NSSize); message 'setCellSize:';
function cellSize: NSSize; message 'cellSize';
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
function intercellSpacing: NSSize; message 'intercellSpacing';
procedure setIntercellSpacing (aSize: NSSize); message 'setIntercellSpacing:';
{$endif}
function indexOfItemAtPoint (point: NSPoint): NSInteger; message 'indexOfItemAtPoint:';
function itemFrameAtIndex (index: NSInteger): NSRect; message 'itemFrameAtIndex:';
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
function visibleItemIndexes: NSIndexSet; message 'visibleItemIndexes';
function rowIndexesInRect (rect: NSRect): NSIndexSet; message 'rowIndexesInRect:';
function columnIndexesInRect (rect: NSRect): NSIndexSet; message 'columnIndexesInRect:';
function rectOfColumn (columnIndex: NSUInteger): NSRect; message 'rectOfColumn:';
function rectOfRow (rowIndex: NSUInteger): NSRect; message 'rectOfRow:';
function numberOfRows: NSUInteger; message 'numberOfRows';
function numberOfColumns: NSUInteger; message 'numberOfColumns';
procedure setCanControlQuickLookPanel (flag: ObjCBOOL); message 'setCanControlQuickLookPanel:';
function canControlQuickLookPanel: ObjCBOOL; message 'canControlQuickLookPanel';
{$endif}
end;
type
IKSelectionReorderingAndGrouping = objccategory external (IKImageBrowserView)
function selectionIndexes: NSIndexSet; message 'selectionIndexes';
procedure setSelectionIndexes_byExtendingSelection (indexes: NSIndexSet; extendSelection: ObjCBOOL); message 'setSelectionIndexes:byExtendingSelection:';
procedure setAllowsMultipleSelection (flag: ObjCBOOL); message 'setAllowsMultipleSelection:';
function allowsMultipleSelection: ObjCBOOL; message 'allowsMultipleSelection';
procedure setAllowsEmptySelection (flag: ObjCBOOL); message 'setAllowsEmptySelection:';
function allowsEmptySelection: ObjCBOOL; message 'allowsEmptySelection';
procedure setAllowsReordering (flag: ObjCBOOL); message 'setAllowsReordering:';
function allowsReordering: ObjCBOOL; message 'allowsReordering';
procedure setAnimates (flag: ObjCBOOL); message 'setAnimates:';
function animates: ObjCBOOL; message 'animates';
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
procedure expandGroupAtIndex (index: NSUInteger); message 'expandGroupAtIndex:';
procedure collapseGroupAtIndex (index: NSUInteger); message 'collapseGroupAtIndex:';
function isGroupExpandedAtIndex (index: NSUInteger): ObjCBOOL; message 'isGroupExpandedAtIndex:';
{$endif}
end;
type
IKDragNDrop = objccategory external (IKImageBrowserView)
procedure setDraggingDestinationDelegate (delegate: id); message 'setDraggingDestinationDelegate:';
function draggingDestinationDelegate: id; message 'draggingDestinationDelegate';
function indexAtLocationOfDroppedItem: NSUInteger; message 'indexAtLocationOfDroppedItem';
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
function dropOperation: IKImageBrowserDropOperation; message 'dropOperation';
procedure setAllowsDroppingOnItems (flag: ObjCBOOL); message 'setAllowsDroppingOnItems:';
function allowsDroppingOnItems: ObjCBOOL; message 'allowsDroppingOnItems';
procedure setDropIndex_dropOperation (index: NSInteger; operation: IKImageBrowserDropOperation); message 'setDropIndex:dropOperation:';
{$endif}
end;
type
IKImageBrowserDelegate = objccategory external (NSObject)
procedure imageBrowserSelectionDidChange (aBrowser: IKImageBrowserView); message 'imageBrowserSelectionDidChange:';
procedure imageBrowser_cellWasDoubleClickedAtIndex (aBrowser: IKImageBrowserView; index: NSUInteger); message 'imageBrowser:cellWasDoubleClickedAtIndex:';
procedure imageBrowser_cellWasRightClickedAtIndex_withEvent (aBrowser: IKImageBrowserView; index: NSUInteger; event: NSEvent); message 'imageBrowser:cellWasRightClickedAtIndex:withEvent:';
procedure imageBrowser_backgroundWasRightClickedWithEvent (aBrowser: IKImageBrowserView; event: NSEvent); message 'imageBrowser:backgroundWasRightClickedWithEvent:';
end;
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
var
IKImageBrowserPathRepresentationType: NSString; cvar; external;
IKImageBrowserNSURLRepresentationType: NSString; cvar; external;
IKImageBrowserNSImageRepresentationType: NSString; cvar; external;
IKImageBrowserCGImageRepresentationType: NSString; cvar; external;
IKImageBrowserCGImageSourceRepresentationType: NSString; cvar; external;
IKImageBrowserNSDataRepresentationType: NSString; cvar; external;
IKImageBrowserNSBitmapImageRepresentationType: NSString; cvar; external;
IKImageBrowserQTMovieRepresentationType: NSString; cvar; external;
IKImageBrowserQTMoviePathRepresentationType: NSString; cvar; external;
IKImageBrowserQCCompositionRepresentationType: NSString; cvar; external;
IKImageBrowserQCCompositionPathRepresentationType: NSString; cvar; external;
IKImageBrowserQuickLookPathRepresentationType: NSString; cvar; external;
IKImageBrowserIconRefPathRepresentationType: NSString; cvar; external;
IKImageBrowserIconRefRepresentationType: NSString; cvar; external;
{$endif}
{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
{$ifdef EXTERNAL_SYMBOLS}
var
IKImageBrowserPDFPageRepresentationType: NSString; cvar; external;
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
var
IKImageBrowserBackgroundColorKey: NSString; cvar; external;
IKImageBrowserSelectionColorKey: NSString; cvar; external;
IKImageBrowserCellsOutlineColorKey: NSString; cvar; external;
IKImageBrowserCellsTitleAttributesKey: NSString; cvar; external;
IKImageBrowserCellsHighlightedTitleAttributesKey: NSString; cvar; external;
IKImageBrowserCellsSubtitleAttributesKey: NSString; cvar; external;
IKImageBrowserGroupRangeKey: NSString; cvar; external;
IKImageBrowserGroupBackgroundColorKey: NSString; cvar; external;
IKImageBrowserGroupTitleKey: NSString; cvar; external;
IKImageBrowserGroupStyleKey: NSString; cvar; external;
IKImageBrowserGroupHeaderLayer: NSString; cvar; external;
IKImageBrowserGroupFooterLayer: NSString; cvar; external;
{$endif}
{$endif}
|