Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSPrintPanel.d @ 1:8b48be5454ce
The internal cocoa classes compile now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 17:35:17 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
57 super(id); | 57 super(id); |
58 } | 58 } |
59 | 59 |
60 public NSArray accessoryControllers () | 60 public NSArray accessoryControllers () |
61 { | 61 { |
62 objc.id result = OS.objc_msgSend(this.id, OS.sel_accessoryControllers); | 62 objc.id result = OS.objc_msgSend(this.id_, OS.sel_accessoryControllers); |
63 return result !is null ? new NSArray(result) : null; | 63 return result !is null ? new NSArray(result) : null; |
64 } | 64 } |
65 | 65 |
66 public NSView accessoryView () | 66 public NSView accessoryView () |
67 { | 67 { |
68 objc.id result = OS.objc_msgSend(this.id, OS.sel_accessoryView); | 68 objc.id result = OS.objc_msgSend(this.id_, OS.sel_accessoryView); |
69 return result !is null ? new NSView(result) : null; | 69 return result !is null ? new NSView(result) : null; |
70 } | 70 } |
71 | 71 |
72 public void addAccessoryController (NSViewController accessoryController) | 72 public void addAccessoryController (NSViewController accessoryController) |
73 { | 73 { |
74 OS.objc_msgSend(this.id, OS.sel_addAccessoryController_1, accessoryController !is null ? accessoryController.id : null); | 74 OS.objc_msgSend(this.id_, OS.sel_addAccessoryController_1, accessoryController !is null ? accessoryController.id_ : null); |
75 } | 75 } |
76 | 76 |
77 public void beginSheetWithPrintInfo (NSPrintInfo printInfo, NSWindow docWindow, id delegatee, objc.SEL didEndSelector, void* contextInfo) | 77 public void beginSheetWithPrintInfo (NSPrintInfo printInfo, NSWindow docWindow, id delegatee, objc.SEL didEndSelector, void* contextInfo) |
78 { | 78 { |
79 OS.objc_msgSend(this.id, OS.sel_beginSheetWithPrintInfo_1modalForWindow_1delegate_1didEndSelector_1contextInfo_1, | 79 OS.objc_msgSend(this.id_, OS.sel_beginSheetWithPrintInfo_1modalForWindow_1delegate_1didEndSelector_1contextInfo_1, |
80 printInfo !is null ? printInfo.id : null, docWindow !is null ? docWindow.id : null, delegatee !is null ? delegatee.id : null, | 80 printInfo !is null ? printInfo.id_ : null, docWindow !is null ? docWindow.id_ : null, delegatee !is null ? delegatee.id_ : null, |
81 didEndSelector, contextInfo); | 81 didEndSelector, contextInfo); |
82 } | 82 } |
83 | 83 |
84 public NSString defaultButtonTitle () | 84 public NSString defaultButtonTitle () |
85 { | 85 { |
86 objc.id result = OS.objc_msgSend(this.id, OS.sel_defaultButtonTitle); | 86 objc.id result = OS.objc_msgSend(this.id_, OS.sel_defaultButtonTitle); |
87 return result !is null ? new NSString(result) : null; | 87 return result !is null ? new NSString(result) : null; |
88 } | 88 } |
89 | 89 |
90 public void finalWritePrintInfo () | 90 public void finalWritePrintInfo () |
91 { | 91 { |
92 OS.objc_msgSend(this.id, OS.sel_finalWritePrintInfo); | 92 OS.objc_msgSend(this.id_, OS.sel_finalWritePrintInfo); |
93 } | 93 } |
94 | 94 |
95 public NSString helpAnchor () | 95 public NSString helpAnchor () |
96 { | 96 { |
97 objc.id result = OS.objc_msgSend(this.id, OS.sel_helpAnchor); | 97 objc.id result = OS.objc_msgSend(this.id_, OS.sel_helpAnchor); |
98 return result !is null ? new NSString(result) : null; | 98 return result !is null ? new NSString(result) : null; |
99 } | 99 } |
100 | 100 |
101 public NSString jobStyleHint () | 101 public NSString jobStyleHint () |
102 { | 102 { |
103 objc.id result = OS.objc_msgSend(this.id, OS.sel_jobStyleHint); | 103 objc.id result = OS.objc_msgSend(this.id_, OS.sel_jobStyleHint); |
104 return result !is null ? new NSString(result) : null; | 104 return result !is null ? new NSString(result) : null; |
105 } | 105 } |
106 | 106 |
107 public NSPrintPanelOptions options () | 107 public NSPrintPanelOptions options () |
108 { | 108 { |
109 return cast(NSPrintPanelOptions) OS.objc_msgSend(this.id, OS.sel_options); | 109 return cast(NSPrintPanelOptions) OS.objc_msgSend(this.id_, OS.sel_options); |
110 } | 110 } |
111 | 111 |
112 public NSPrintInfo printInfo () | 112 public NSPrintInfo printInfo () |
113 { | 113 { |
114 objc.id result = OS.objc_msgSend(this.id, OS.sel_printInfo); | 114 objc.id result = OS.objc_msgSend(this.id_, OS.sel_printInfo); |
115 return result !is null ? new NSPrintInfo(result) : null; | 115 return result !is null ? new NSPrintInfo(result) : null; |
116 } | 116 } |
117 | 117 |
118 public static NSPrintPanel printPanel () | 118 public static NSPrintPanel printPanel () |
119 { | 119 { |
121 return result !is null ? new NSPrintPanel(result) : null; | 121 return result !is null ? new NSPrintPanel(result) : null; |
122 } | 122 } |
123 | 123 |
124 public void removeAccessoryController (NSViewController accessoryController) | 124 public void removeAccessoryController (NSViewController accessoryController) |
125 { | 125 { |
126 OS.objc_msgSend(this.id, OS.sel_removeAccessoryController_1, accessoryController !is null ? accessoryController.id : null); | 126 OS.objc_msgSend(this.id_, OS.sel_removeAccessoryController_1, accessoryController !is null ? accessoryController.id_ : null); |
127 } | 127 } |
128 | 128 |
129 public NSInteger runModal () | 129 public NSInteger runModal () |
130 { | 130 { |
131 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_runModal); | 131 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_runModal); |
132 } | 132 } |
133 | 133 |
134 public NSInteger runModalWithPrintInfo (NSPrintInfo printInfo) | 134 public NSInteger runModalWithPrintInfo (NSPrintInfo printInfo) |
135 { | 135 { |
136 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_runModalWithPrintInfo_1, printInfo !is null ? printInfo.id : null); | 136 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_runModalWithPrintInfo_1, printInfo !is null ? printInfo.id_ : null); |
137 } | 137 } |
138 | 138 |
139 public void setAccessoryView (NSView accessoryView) | 139 public void setAccessoryView (NSView accessoryView) |
140 { | 140 { |
141 OS.objc_msgSend(this.id, OS.sel_setAccessoryView_1, accessoryView !is null ? accessoryView.id : null); | 141 OS.objc_msgSend(this.id_, OS.sel_setAccessoryView_1, accessoryView !is null ? accessoryView.id_ : null); |
142 } | 142 } |
143 | 143 |
144 public void setDefaultButtonTitle (NSString defaultButtonTitle) | 144 public void setDefaultButtonTitle (NSString defaultButtonTitle) |
145 { | 145 { |
146 OS.objc_msgSend(this.id, OS.sel_setDefaultButtonTitle_1, defaultButtonTitle !is null ? defaultButtonTitle.id : null); | 146 OS.objc_msgSend(this.id_, OS.sel_setDefaultButtonTitle_1, defaultButtonTitle !is null ? defaultButtonTitle.id_ : null); |
147 } | 147 } |
148 | 148 |
149 public void setHelpAnchor (NSString helpAnchor) | 149 public void setHelpAnchor (NSString helpAnchor) |
150 { | 150 { |
151 OS.objc_msgSend(this.id, OS.sel_setHelpAnchor_1, helpAnchor !is null ? helpAnchor.id : null); | 151 OS.objc_msgSend(this.id_, OS.sel_setHelpAnchor_1, helpAnchor !is null ? helpAnchor.id_ : null); |
152 } | 152 } |
153 | 153 |
154 public void setJobStyleHint (NSString hint) | 154 public void setJobStyleHint (NSString hint) |
155 { | 155 { |
156 OS.objc_msgSend(this.id, OS.sel_setJobStyleHint_1, hint !is null ? hint.id : null); | 156 OS.objc_msgSend(this.id_, OS.sel_setJobStyleHint_1, hint !is null ? hint.id_ : null); |
157 } | 157 } |
158 | 158 |
159 public void setOptions (NSPrintPanelOptions options) | 159 public void setOptions (NSPrintPanelOptions options) |
160 { | 160 { |
161 OS.objc_msgSend(this.id, OS.sel_setOptions_1, options); | 161 OS.objc_msgSend(this.id_, OS.sel_setOptions_1, options); |
162 } | 162 } |
163 | 163 |
164 public void updateFromPrintInfo () | 164 public void updateFromPrintInfo () |
165 { | 165 { |
166 OS.objc_msgSend(this.id, OS.sel_updateFromPrintInfo); | 166 OS.objc_msgSend(this.id_, OS.sel_updateFromPrintInfo); |
167 } | 167 } |
168 | 168 |
169 } | 169 } |