blob: 667939e48c02a0836fb8c7e9eb7c4df07a9dcbef (
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
{ Parsed from Appkit.framework NSOutlineView.h }
{$ifdef TYPES}
{$ifndef NSOUTLINEVIEW_PAS_T}
{$define NSOUTLINEVIEW_PAS_T}
{ Constants }
const
NSOutlineViewDropOnItemIndex = -1;
{$endif}
{$endif}
{$ifdef RECORDS}
{$ifndef NSOUTLINEVIEW_PAS_R}
{$define NSOUTLINEVIEW_PAS_R}
{ Records }
type
__OvFlags = record
case byte of
0: (_anonbitfield_NSOutlineView0: cuint);
1: (data: bitpacked record
{$ifdef fpc_big_endian}
delegateWillDisplayCell: 0..1;
delegateShouldEditTableColumn: 0..1;
delegateShouldSelectItem: 0..1;
delegateShouldSelectTableColumn: 0..1;
delegateSelectionShouldChangeInOutlineView: 0..1;
delegateShouldCollapseItem: 0..1;
delegateShouldExpandItem: 0..1;
autoresizesOutlineColumn: 0..1;
autoSaveExpandItems: 0..1;
enableExpandNotifications: 0..1;
delegateWillDisplayOutlineCell: 0..1;
removeChildInProgress: 0..1;
selectionAdjustmentDisabled: 0..1;
autoExpandFlashState: 0..1;
_unused: 0..1;
delegateHeightOfRowByItem: 0..1;
delayRowEntryFreeDisabled: 0..1;
numberOfRowsDataExpandEntered: 0..1;
validDataSourceMethods: 0..1;
reloadingData: 0..1;
dataSourceDraggingEndedAt: 0..1;
dataSourceDraggedImageMovedTo: 0..1;
delegateShouldShowOutlineCellForItem: 0..1;
delegateAutoExpandItem: 0..1;
delegateAutoCollapseItem: 0..1;
delegateShouldAutoExpandItem: 0..1;
flashingEntireRow: 0..1;
flashingOutlineCell: 0..1;
dontRedisplayOnFrameChange: 0..1;
__reserved: 0..((1 shl 3)-1);
{$else}
__reserved: 0..((1 shl 3)-1);
dontRedisplayOnFrameChange: 0..1;
flashingOutlineCell: 0..1;
flashingEntireRow: 0..1;
delegateShouldAutoExpandItem: 0..1;
delegateAutoCollapseItem: 0..1;
delegateAutoExpandItem: 0..1;
delegateShouldShowOutlineCellForItem: 0..1;
dataSourceDraggedImageMovedTo: 0..1;
dataSourceDraggingEndedAt: 0..1;
reloadingData: 0..1;
validDataSourceMethods: 0..1;
numberOfRowsDataExpandEntered: 0..1;
delayRowEntryFreeDisabled: 0..1;
delegateHeightOfRowByItem: 0..1;
_unused: 0..1;
autoExpandFlashState: 0..1;
selectionAdjustmentDisabled: 0..1;
removeChildInProgress: 0..1;
delegateWillDisplayOutlineCell: 0..1;
enableExpandNotifications: 0..1;
autoSaveExpandItems: 0..1;
autoresizesOutlineColumn: 0..1;
delegateShouldExpandItem: 0..1;
delegateShouldCollapseItem: 0..1;
delegateSelectionShouldChangeInOutlineView: 0..1;
delegateShouldSelectTableColumn: 0..1;
delegateShouldSelectItem: 0..1;
delegateShouldEditTableColumn: 0..1;
delegateWillDisplayCell: 0..1;
{$endif}
end;
);
end;
_OVFlags = __OvFlags;
__OvFlagsPtr = ^__OvFlags;
{$endif}
{$endif}
{$ifdef FUNCTIONS}
{$ifndef NSOUTLINEVIEW_PAS_F}
{$define NSOUTLINEVIEW_PAS_F}
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSOUTLINEVIEW_PAS_S}
{$define NSOUTLINEVIEW_PAS_S}
{ External string constants }
var
NSOutlineViewSelectionDidChangeNotification: NSString; cvar; external;
NSOutlineViewColumnDidMoveNotification: NSString; cvar; external;
NSOutlineViewColumnDidResizeNotification: NSString; cvar; external;
NSOutlineViewSelectionIsChangingNotification: NSString; cvar; external;
NSOutlineViewItemWillExpandNotification: NSString; cvar; external;
NSOutlineViewItemDidExpandNotification: NSString; cvar; external;
NSOutlineViewItemWillCollapseNotification: NSString; cvar; external;
NSOutlineViewItemDidCollapseNotification: NSString; cvar; external;
{$endif}
{$endif}
{$ifdef FORWARD}
NSOutlineViewDataSourceProtocol = objcprotocol;
NSOutlineViewDelegateProtocol = objcprotocol;
NSOutlineView = objcclass;
NSOutlineViewPointer = ^NSOutlineView;
NSOutlineViewPtr = NSOutlineViewPointer;
{$endif}
{$ifdef CLASSES}
{$ifndef NSOUTLINEVIEW_PAS_C}
{$define NSOUTLINEVIEW_PAS_C}
{ NSOutlineView }
NSOutlineView = objcclass external (NSTableView)
private
_numberOfRows: NSInteger;
__rowEntryTree: Pointer;
_itemToEntryMap: CFMutableDictionaryRef;
_unused2: NSInteger;
_unused3: NSInteger;
_unused1: NSInteger;
_outlineTableColumn: NSTableColumn;
_initedRows: Boolean;
_indentationMarkerInCell: Boolean;
_indentationPerLevel: NSInteger;
_outlineCell: NSButtonCell;
_trackingOutlineFrame: NSRect;
_tracker: NSMouseTracker;
_unused4: id;
_ovFlags: _OVFlags;
_ovLock: id;
_indentArray: pclong; {garbage collector: __strong }
_originalWidth: clong;
_expandSet: id;
_expandSetToExpandItemsInto: id;
_indentArraySize: clong;
_trackingOutlineCell: NSButtonCell;
_trackingRow: NSInteger;
_ovReserved: id;
public
procedure setDelegate(anObject: NSOutlineViewDelegateProtocol); message 'setDelegate:';
function delegate: NSOutlineViewDelegateProtocol; message 'delegate';
procedure setDataSource(aSource: NSOutlineViewDataSourceProtocol); message 'setDataSource:';
function dataSource: NSOutlineViewDataSourceProtocol; message 'dataSource';
procedure setOutlineTableColumn(outlineTableColumn_: NSTableColumn); message 'setOutlineTableColumn:';
function outlineTableColumn: NSTableColumn; message 'outlineTableColumn';
function isExpandable(item: id): Boolean; message 'isExpandable:';
procedure expandItem_expandChildren(item: id; expandChildren: Boolean); message 'expandItem:expandChildren:';
procedure expandItem(item: id); message 'expandItem:';
procedure collapseItem_collapseChildren(item: id; collapseChildren: Boolean); message 'collapseItem:collapseChildren:';
procedure collapseItem(item: id); message 'collapseItem:';
procedure reloadItem_reloadChildren(item: id; reloadChildren: Boolean); message 'reloadItem:reloadChildren:';
procedure reloadItem(item: id); message 'reloadItem:';
function parentForItem(item: id): id; message 'parentForItem:';
function itemAtRow(row: NSInteger): id; message 'itemAtRow:';
function rowForItem(item: id): NSInteger; message 'rowForItem:';
function levelForItem(item: id): NSInteger; message 'levelForItem:';
function levelForRow(row: NSInteger): NSInteger; message 'levelForRow:';
function isItemExpanded(item: id): Boolean; message 'isItemExpanded:';
procedure setIndentationPerLevel(indentationPerLevel_: CGFloat); message 'setIndentationPerLevel:';
function indentationPerLevel: CGFloat; message 'indentationPerLevel';
procedure setIndentationMarkerFollowsCell(drawInCell: Boolean); message 'setIndentationMarkerFollowsCell:';
function indentationMarkerFollowsCell: Boolean; message 'indentationMarkerFollowsCell';
procedure setAutoresizesOutlineColumn(resize: Boolean); message 'setAutoresizesOutlineColumn:';
function autoresizesOutlineColumn: Boolean; message 'autoresizesOutlineColumn';
function frameOfOutlineCellAtRow(row: NSInteger): NSRect; message 'frameOfOutlineCellAtRow:';
procedure setDropItem_dropChildIndex(item: id; index: NSInteger); message 'setDropItem:dropChildIndex:';
function shouldCollapseAutoExpandedItemsForDeposited(deposited: Boolean): Boolean; message 'shouldCollapseAutoExpandedItemsForDeposited:';
function autosaveExpandedItems: Boolean; message 'autosaveExpandedItems';
procedure setAutosaveExpandedItems(save: Boolean); message 'setAutosaveExpandedItems:';
end;
{ NSOutlineViewNotificationsCategory }
NSOutlineViewNotificationsCategory = objccategory external (NSObject)
procedure outlineViewSelectionDidChange(notification: NSNotification); message 'outlineViewSelectionDidChange:';
procedure outlineViewColumnDidMove(notification: NSNotification); message 'outlineViewColumnDidMove:';
procedure outlineViewColumnDidResize(notification: NSNotification); message 'outlineViewColumnDidResize:';
procedure outlineViewSelectionIsChanging(notification: NSNotification); message 'outlineViewSelectionIsChanging:';
procedure outlineViewItemWillExpand(notification: NSNotification); message 'outlineViewItemWillExpand:';
procedure outlineViewItemDidExpand(notification: NSNotification); message 'outlineViewItemDidExpand:';
procedure outlineViewItemWillCollapse(notification: NSNotification); message 'outlineViewItemWillCollapse:';
procedure outlineViewItemDidCollapse(notification: NSNotification); message 'outlineViewItemDidCollapse:';
end;
{$endif}
{$endif}
{$ifdef PROTOCOLS}
{$ifndef NSOUTLINEVIEW_PAS_P}
{$define NSOUTLINEVIEW_PAS_P}
{ NSOutlineViewDataSource Protocol }
NSOutlineViewDataSourceProtocol = objcprotocol external name 'NSOutlineViewDataSource'
optional
function outlineView_child_ofItem(outlineView: NSOutlineView; index: NSInteger; item: id): id; message 'outlineView:child:ofItem:';
function outlineView_isItemExpandable(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:isItemExpandable:';
function outlineView_numberOfChildrenOfItem(outlineView: NSOutlineView; item: id): NSInteger; message 'outlineView:numberOfChildrenOfItem:';
function outlineView_objectValueForTableColumn_byItem(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): id; message 'outlineView:objectValueForTableColumn:byItem:';
procedure outlineView_setObjectValue_forTableColumn_byItem(outlineView: NSOutlineView; object_: id; tableColumn: NSTableColumn; item: id); message 'outlineView:setObjectValue:forTableColumn:byItem:';
function outlineView_itemForPersistentObject(outlineView: NSOutlineView; object_: id): id; message 'outlineView:itemForPersistentObject:';
function outlineView_persistentObjectForItem(outlineView: NSOutlineView; item: id): id; message 'outlineView:persistentObjectForItem:';
procedure outlineView_sortDescriptorsDidChange(outlineView: NSOutlineView; oldDescriptors: NSArray); message 'outlineView:sortDescriptorsDidChange:';
function outlineView_writeItems_toPasteboard(outlineView: NSOutlineView; items: NSArray; pasteboard: NSPasteboard): Boolean; message 'outlineView:writeItems:toPasteboard:';
function outlineView_validateDrop_proposedItem_proposedChildIndex(outlineView: NSOutlineView; info: NSDraggingInfoProtocol; item: id; index: NSInteger): NSDragOperation; message 'outlineView:validateDrop:proposedItem:proposedChildIndex:';
function outlineView_acceptDrop_item_childIndex(outlineView: NSOutlineView; info: NSDraggingInfoProtocol; item: id; index: NSInteger): Boolean; message 'outlineView:acceptDrop:item:childIndex:';
function outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems(outlineView: NSOutlineView; dropDestination: NSURL; items: NSArray): NSArray; message 'outlineView:namesOfPromisedFilesDroppedAtDestination:forDraggedItems:';
end;
{ NSOutlineViewDelegate Protocol }
NSOutlineViewDelegateProtocol = objcprotocol external name 'NSOutlineViewDelegate'
optional
procedure outlineView_willDisplayCell_forTableColumn_item(outlineView: NSOutlineView; cell: id; tableColumn: NSTableColumn; item: id); message 'outlineView:willDisplayCell:forTableColumn:item:';
function outlineView_shouldEditTableColumn_item(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): Boolean; message 'outlineView:shouldEditTableColumn:item:';
function selectionShouldChangeInOutlineView(outlineView: NSOutlineView): Boolean; message 'selectionShouldChangeInOutlineView:';
function outlineView_shouldSelectItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:shouldSelectItem:';
function outlineView_selectionIndexesForProposedSelection(outlineView: NSOutlineView; proposedSelectionIndexes: NSIndexSet): NSIndexSet; message 'outlineView:selectionIndexesForProposedSelection:';
function outlineView_shouldSelectTableColumn(outlineView: NSOutlineView; tableColumn: NSTableColumn): Boolean; message 'outlineView:shouldSelectTableColumn:';
procedure outlineView_mouseDownInHeaderOfTableColumn(outlineView: NSOutlineView; tableColumn: NSTableColumn); message 'outlineView:mouseDownInHeaderOfTableColumn:';
procedure outlineView_didClickTableColumn(outlineView: NSOutlineView; tableColumn: NSTableColumn); message 'outlineView:didClickTableColumn:';
procedure outlineView_didDragTableColumn(outlineView: NSOutlineView; tableColumn: NSTableColumn); message 'outlineView:didDragTableColumn:';
function outlineView_toolTipForCell_rect_tableColumn_item_mouseLocation(outlineView: NSOutlineView; cell: NSCell; rect: NSRectPointer; tableColumn: NSTableColumn; item: id; mouseLocation: NSPoint): NSString; message 'outlineView:toolTipForCell:rect:tableColumn:item:mouseLocation:';
function outlineView_heightOfRowByItem(outlineView: NSOutlineView; item: id): CGFloat; message 'outlineView:heightOfRowByItem:';
function outlineView_typeSelectStringForTableColumn_item(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): NSString; message 'outlineView:typeSelectStringForTableColumn:item:';
function outlineView_nextTypeSelectMatchFromItem_toItem_forString(outlineView: NSOutlineView; startItem: id; endItem: id; searchString: NSString): id; message 'outlineView:nextTypeSelectMatchFromItem:toItem:forString:';
function outlineView_shouldTypeSelectForEvent_withCurrentSearchString(outlineView: NSOutlineView; event: NSEvent; searchString: NSString): Boolean; message 'outlineView:shouldTypeSelectForEvent:withCurrentSearchString:';
function outlineView_shouldShowCellExpansionForTableColumn_item(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): Boolean; message 'outlineView:shouldShowCellExpansionForTableColumn:item:';
function outlineView_shouldTrackCell_forTableColumn_item(outlineView: NSOutlineView; cell: NSCell; tableColumn: NSTableColumn; item: id): Boolean; message 'outlineView:shouldTrackCell:forTableColumn:item:';
function outlineView_dataCellForTableColumn_item(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): NSCell; message 'outlineView:dataCellForTableColumn:item:';
function outlineView_isGroupItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:isGroupItem:';
function outlineView_shouldExpandItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:shouldExpandItem:';
function outlineView_shouldCollapseItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:shouldCollapseItem:';
procedure outlineView_willDisplayOutlineCell_forTableColumn_item(outlineView: NSOutlineView; cell: id; tableColumn: NSTableColumn; item: id); message 'outlineView:willDisplayOutlineCell:forTableColumn:item:';
function outlineView_sizeToFitWidthOfColumn(outlineView: NSOutlineView; column: NSInteger): CGFloat; message 'outlineView:sizeToFitWidthOfColumn:';
function outlineView_shouldReorderColumn_toColumn(outlineView: NSOutlineView; columnIndex: NSInteger; newColumnIndex: NSInteger): Boolean; message 'outlineView:shouldReorderColumn:toColumn:';
function outlineView_shouldShowOutlineCellForItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:shouldShowOutlineCellForItem:';
end;
{$endif}
{$endif}
|