summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSTreeController.inc
blob: c56264acd29029a771c6aefc01bbffc96fc4f7c2 (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
{ Parsed from Appkit.framework NSTreeController.h }

{$ifdef TYPES}
{$ifndef NSTREECONTROLLER_PAS_T}
{$define NSTREECONTROLLER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSTREECONTROLLER_PAS_R}
{$define NSTREECONTROLLER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSTREECONTROLLER_PAS_F}
{$define NSTREECONTROLLER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSTREECONTROLLER_PAS_S}
{$define NSTREECONTROLLER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSTreeController = objcclass;
  NSTreeControllerPointer = ^NSTreeController;
  NSTreeControllerPtr = NSTreeControllerPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSTREECONTROLLER_PAS_C}
{$define NSTREECONTROLLER_PAS_C}

{ NSTreeController }
  NSTreeController = objcclass external (NSObjectController)
  private
    _treeControllerReserved1: id;
    _modelObservingKeyPaths: NSArray;
    _treeStructureObservers: id;
    _arrangedObjects: id;
    _rootNode: id;
    _selectionIndexPaths: id;
    __treeControllerFlags: record
      case byte of
       0: (_anonbitfield_NSTreeController0: cuint);
       1: (data: bitpacked record
        _avoidsEmptySelection: 0..1;
        _preservesSelection: 0..1;
        _selectsInsertedObjects: 0..1;
        _explicitlyCannotInsert: 0..1;
        _explicitlyCannotInsertChild: 0..1;
        _explicitlyCannotAddChild: 0..1;
        _alwaysUsesMultipleValuesMarker: 0..1;
        _observingThroughArrangedObjects: 0..1;
        _mutatingNodes: 0..1;
        _performingFetch: 0..1;
        _skipSortingAfterFetch: 0..1;
        _usesIdenticalComparisonOfModelObjects: 0..1;
        _reservedTreeController: 0..((1 shl 20)-1);
       end;
      );
      end;
    _selectedObjects: NSArray;
    _childrenKeyPath: NSString;
    _countKeyPath: NSString;
    _leafKeyPath: NSString;
    _sortDescriptors: NSArray;
    
  public
    procedure rearrangeObjects; message 'rearrangeObjects';
    function arrangedObjects: id; message 'arrangedObjects';
    procedure setChildrenKeyPath(keyPath: NSString); message 'setChildrenKeyPath:';
    function childrenKeyPath: NSString; message 'childrenKeyPath';
    procedure setCountKeyPath(keyPath: NSString); message 'setCountKeyPath:';
    function countKeyPath: NSString; message 'countKeyPath';
    procedure setLeafKeyPath(keyPath: NSString); message 'setLeafKeyPath:';
    function leafKeyPath: NSString; message 'leafKeyPath';
    procedure setSortDescriptors(sortDescriptors_: NSArray); message 'setSortDescriptors:';
    function sortDescriptors: NSArray; message 'sortDescriptors';
    function content: id; message 'content';
    procedure setContent(content_: id); message 'setContent:';
    procedure add(sender: id); message 'add:';
    procedure remove(sender: id); message 'remove:';
    procedure addChild(sender: id); message 'addChild:';
    procedure insert(sender: id); message 'insert:';
    procedure insertChild(sender: id); message 'insertChild:';
    function canInsert: Boolean; message 'canInsert';
    function canInsertChild: Boolean; message 'canInsertChild';
    function canAddChild: Boolean; message 'canAddChild';
    procedure insertObject_atArrangedObjectIndexPath(object_: id; indexPath: NSIndexPath); message 'insertObject:atArrangedObjectIndexPath:';
    procedure insertObjects_atArrangedObjectIndexPaths(objects: NSArray; indexPaths: NSArray); message 'insertObjects:atArrangedObjectIndexPaths:';
    procedure removeObjectAtArrangedObjectIndexPath(indexPath: NSIndexPath); message 'removeObjectAtArrangedObjectIndexPath:';
    procedure removeObjectsAtArrangedObjectIndexPaths(indexPaths: NSArray); message 'removeObjectsAtArrangedObjectIndexPaths:';
    procedure setAvoidsEmptySelection(flag: Boolean); message 'setAvoidsEmptySelection:';
    function avoidsEmptySelection: Boolean; message 'avoidsEmptySelection';
    procedure setPreservesSelection(flag: Boolean); message 'setPreservesSelection:';
    function preservesSelection: Boolean; message 'preservesSelection';
    procedure setSelectsInsertedObjects(flag: Boolean); message 'setSelectsInsertedObjects:';
    function selectsInsertedObjects: Boolean; message 'selectsInsertedObjects';
    procedure setAlwaysUsesMultipleValuesMarker(flag: Boolean); message 'setAlwaysUsesMultipleValuesMarker:';
    function alwaysUsesMultipleValuesMarker: Boolean; message 'alwaysUsesMultipleValuesMarker';
    function selectedObjects: NSArray; message 'selectedObjects';
    function setSelectionIndexPaths(indexPaths: NSArray): Boolean; message 'setSelectionIndexPaths:';
    function selectionIndexPaths: NSArray; message 'selectionIndexPaths';
    function setSelectionIndexPath(indexPath: NSIndexPath): Boolean; message 'setSelectionIndexPath:';
    function selectionIndexPath: NSIndexPath; message 'selectionIndexPath';
    function addSelectionIndexPaths(indexPaths: NSArray): Boolean; message 'addSelectionIndexPaths:';
    function removeSelectionIndexPaths(indexPaths: NSArray): Boolean; message 'removeSelectionIndexPaths:';
    function selectedNodes: NSArray; message 'selectedNodes';
    procedure moveNode_toIndexPath(node: NSTreeNode; indexPath: NSIndexPath); message 'moveNode:toIndexPath:';
    procedure moveNodes_toIndexPath(nodes: NSArray; startingIndexPath: NSIndexPath); message 'moveNodes:toIndexPath:';
    function childrenKeyPathForNode(node: NSTreeNode): NSString; message 'childrenKeyPathForNode:';
    function countKeyPathForNode(node: NSTreeNode): NSString; message 'countKeyPathForNode:';
    function leafKeyPathForNode(node: NSTreeNode): NSString; message 'leafKeyPathForNode:';
  end;

{$endif}
{$endif}