summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/appkit/NSWindowController.inc
blob: 33b220377b119d12f6f560b24596a4f8baded3f0 (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
{ Parsed from Appkit.framework NSWindowController.h }
{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.4 - Mon Sep 28 15:49:53 ICT 2009 }

{$ifdef HEADER}
{$ifndef NSWINDOWCONTROLLER_PAS_H}
{$define NSWINDOWCONTROLLER_PAS_H}
type
  NSWindowControllerPointer = Pointer;

{$endif}
{$endif}

{$ifdef TYPES}
{$ifndef NSWINDOWCONTROLLER_PAS_T}
{$define NSWINDOWCONTROLLER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSWINDOWCONTROLLER_PAS_R}
{$define NSWINDOWCONTROLLER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSWINDOWCONTROLLER_PAS_F}
{$define NSWINDOWCONTROLLER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSWINDOWCONTROLLER_PAS_S}
{$define NSWINDOWCONTROLLER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSWindowController = objcclass;

{$endif}

{$ifdef CLASSES}
{$ifndef NSWINDOWCONTROLLER_PAS_C}
{$define NSWINDOWCONTROLLER_PAS_C}

{ NSWindowController }
  NSWindowController = objcclass(NSResponder, NSCodingProtocol)
  private
    __window: NSWindow;
    __windowNibName: NSString;
    __document: NSDocument;
    __topLevelObjects: NSArray;
    __owner: id;
    __wcFlags: bitpacked record
        shouldCloseDocument: 0..1;
        shouldCascade: 0..1;
        nibIsLoaded: 0..1;
        nibNameIsPath: 0..1;
        RESERVED: 0..((1 shl 28)-1);
      end;
    __frameAutosaveName: NSString;
    __moreVars: id;
    
  public
    class function alloc: NSWindowController; message 'alloc';

    function initWithWindow(window_: NSWindow): id; message 'initWithWindow:';
    function initWithWindowNibName(windowNibName_: NSString): id; message 'initWithWindowNibName:';
    function initWithWindowNibName_owner(windowNibName_: NSString; owner_: id): id; message 'initWithWindowNibName:owner:';
    function initWithWindowNibPath_owner(windowNibPath_: NSString; owner_: id): id; message 'initWithWindowNibPath:owner:';
    function windowNibName: NSString; message 'windowNibName';
    function windowNibPath: NSString; message 'windowNibPath';
    function owner: id; message 'owner';
    procedure setWindowFrameAutosaveName(name: NSString); message 'setWindowFrameAutosaveName:';
    function windowFrameAutosaveName: NSString; message 'windowFrameAutosaveName';
    procedure setShouldCascadeWindows(flag: Boolean); message 'setShouldCascadeWindows:';
    function shouldCascadeWindows: Boolean; message 'shouldCascadeWindows';
    function document: id; message 'document';
    procedure setDocument(document_: NSDocument); message 'setDocument:';
    procedure setDocumentEdited(dirtyFlag: Boolean); message 'setDocumentEdited:';
    procedure setShouldCloseDocument(flag: Boolean); message 'setShouldCloseDocument:';
    function shouldCloseDocument: Boolean; message 'shouldCloseDocument';
    procedure setWindow(window_: NSWindow); message 'setWindow:';
    function window: NSWindow; message 'window';
    procedure synchronizeWindowTitleWithDocumentName; message 'synchronizeWindowTitleWithDocumentName';
    function windowTitleForDocumentDisplayName(displayName: NSString): NSString; message 'windowTitleForDocumentDisplayName:';
    procedure close; message 'close';
    procedure showWindow(sender: id); message 'showWindow:';
    function isWindowLoaded: Boolean; message 'isWindowLoaded';
    procedure windowWillLoad; message 'windowWillLoad';
    procedure windowDidLoad; message 'windowDidLoad';
    procedure loadWindow; message 'loadWindow';
  end; external;

{$endif}
{$endif}