comparison dwt/internal/cocoa/NSRuleEditor.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
60 super(id); 60 super(id);
61 } 61 }
62 62
63 public void addRow (id sender) 63 public void addRow (id sender)
64 { 64 {
65 OS.objc_msgSend(this.id, OS.sel_addRow_1, sender !is null ? sender.id : null); 65 OS.objc_msgSend(this.id_, OS.sel_addRow_1, sender !is null ? sender.id_ : null);
66 } 66 }
67 67
68 public bool canRemoveAllRows () 68 public bool canRemoveAllRows ()
69 { 69 {
70 return OS.objc_msgSend(this.id, OS.sel_canRemoveAllRows) !is null; 70 return OS.objc_msgSend(this.id_, OS.sel_canRemoveAllRows) !is null;
71 } 71 }
72 72
73 public NSArray criteriaForRow (NSInteger row) 73 public NSArray criteriaForRow (NSInteger row)
74 { 74 {
75 objc.id result = OS.objc_msgSend(this.id, OS.sel_criteriaForRow_1, row); 75 objc.id result = OS.objc_msgSend(this.id_, OS.sel_criteriaForRow_1, row);
76 return result !is null ? new NSArray(result) : null; 76 return result !is null ? new NSArray(result) : null;
77 } 77 }
78 78
79 public NSString criteriaKeyPath () 79 public NSString criteriaKeyPath ()
80 { 80 {
81 objc.id result = OS.objc_msgSend(this.id, OS.sel_criteriaKeyPath); 81 objc.id result = OS.objc_msgSend(this.id_, OS.sel_criteriaKeyPath);
82 return result !is null ? new NSString(result) : null; 82 return result !is null ? new NSString(result) : null;
83 } 83 }
84 84
85 public id delegatee () 85 public id delegatee ()
86 { 86 {
87 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); 87 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate);
88 return result !is null ? new id(result) : null; 88 return result !is null ? new id(result) : null;
89 } 89 }
90 90
91 public NSArray displayValuesForRow (NSInteger row) 91 public NSArray displayValuesForRow (NSInteger row)
92 { 92 {
93 objc.id result = OS.objc_msgSend(this.id, OS.sel_displayValuesForRow_1, row); 93 objc.id result = OS.objc_msgSend(this.id_, OS.sel_displayValuesForRow_1, row);
94 return result !is null ? new NSArray(result) : null; 94 return result !is null ? new NSArray(result) : null;
95 } 95 }
96 96
97 public NSString displayValuesKeyPath () 97 public NSString displayValuesKeyPath ()
98 { 98 {
99 objc.id result = OS.objc_msgSend(this.id, OS.sel_displayValuesKeyPath); 99 objc.id result = OS.objc_msgSend(this.id_, OS.sel_displayValuesKeyPath);
100 return result !is null ? new NSString(result) : null; 100 return result !is null ? new NSString(result) : null;
101 } 101 }
102 102
103 public NSDictionary formattingDictionary () 103 public NSDictionary formattingDictionary ()
104 { 104 {
105 objc.id result = OS.objc_msgSend(this.id, OS.sel_formattingDictionary); 105 objc.id result = OS.objc_msgSend(this.id_, OS.sel_formattingDictionary);
106 return result !is null ? new NSDictionary(result) : null; 106 return result !is null ? new NSDictionary(result) : null;
107 } 107 }
108 108
109 public NSString formattingStringsFilename () 109 public NSString formattingStringsFilename ()
110 { 110 {
111 objc.id result = OS.objc_msgSend(this.id, OS.sel_formattingStringsFilename); 111 objc.id result = OS.objc_msgSend(this.id_, OS.sel_formattingStringsFilename);
112 return result !is null ? new NSString(result) : null; 112 return result !is null ? new NSString(result) : null;
113 } 113 }
114 114
115 public void insertRowAtIndex (NSInteger rowIndex, NSRuleEditorRowType rowType, NSInteger parentRow, bool shouldAnimate) 115 public void insertRowAtIndex (NSInteger rowIndex, NSRuleEditorRowType rowType, NSInteger parentRow, bool shouldAnimate)
116 { 116 {
117 OS.objc_msgSend(this.id, OS.sel_insertRowAtIndex_1withType_1asSubrowOfRow_1animate_1, rowIndex, rowType, parentRow, shouldAnimate); 117 OS.objc_msgSend(this.id_, OS.sel_insertRowAtIndex_1withType_1asSubrowOfRow_1animate_1, rowIndex, rowType, parentRow, shouldAnimate);
118 } 118 }
119 119
120 public bool isEditable () 120 public bool isEditable ()
121 { 121 {
122 return OS.objc_msgSend(this.id, OS.sel_isEditable) !is null; 122 return OS.objc_msgSend(this.id_, OS.sel_isEditable) !is null;
123 } 123 }
124 124
125 public NSRuleEditorNestingMode nestingMode () 125 public NSRuleEditorNestingMode nestingMode ()
126 { 126 {
127 return cast(NSRuleEditorNestingMode) OS.objc_msgSend(this.id, OS.sel_nestingMode); 127 return cast(NSRuleEditorNestingMode) OS.objc_msgSend(this.id_, OS.sel_nestingMode);
128 } 128 }
129 129
130 public NSInteger numberOfRows () 130 public NSInteger numberOfRows ()
131 { 131 {
132 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_numberOfRows); 132 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_numberOfRows);
133 } 133 }
134 134
135 public NSInteger parentRowForRow (NSInteger rowIndex) 135 public NSInteger parentRowForRow (NSInteger rowIndex)
136 { 136 {
137 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_parentRowForRow_1, rowIndex); 137 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_parentRowForRow_1, rowIndex);
138 } 138 }
139 139
140 public NSPredicate predicate () 140 public NSPredicate predicate ()
141 { 141 {
142 objc.id result = OS.objc_msgSend(this.id, OS.sel_predicate); 142 objc.id result = OS.objc_msgSend(this.id_, OS.sel_predicate);
143 return result !is null ? new NSPredicate(result) : null; 143 return result !is null ? new NSPredicate(result) : null;
144 } 144 }
145 145
146 public NSPredicate predicateForRow (NSInteger row) 146 public NSPredicate predicateForRow (NSInteger row)
147 { 147 {
148 objc.id result = OS.objc_msgSend(this.id, OS.sel_predicateForRow_1, row); 148 objc.id result = OS.objc_msgSend(this.id_, OS.sel_predicateForRow_1, row);
149 return result !is null ? new NSPredicate(result) : null; 149 return result !is null ? new NSPredicate(result) : null;
150 } 150 }
151 151
152 public void reloadCriteria () 152 public void reloadCriteria ()
153 { 153 {
154 OS.objc_msgSend(this.id, OS.sel_reloadCriteria); 154 OS.objc_msgSend(this.id_, OS.sel_reloadCriteria);
155 } 155 }
156 156
157 public void reloadPredicate () 157 public void reloadPredicate ()
158 { 158 {
159 OS.objc_msgSend(this.id, OS.sel_reloadPredicate); 159 OS.objc_msgSend(this.id_, OS.sel_reloadPredicate);
160 } 160 }
161 161
162 public void removeRowAtIndex (NSInteger rowIndex) 162 public void removeRowAtIndex (NSInteger rowIndex)
163 { 163 {
164 OS.objc_msgSend(this.id, OS.sel_removeRowAtIndex_1, rowIndex); 164 OS.objc_msgSend(this.id_, OS.sel_removeRowAtIndex_1, rowIndex);
165 } 165 }
166 166
167 public void removeRowsAtIndexes (NSIndexSet rowIndexes, bool includeSubrows) 167 public void removeRowsAtIndexes (NSIndexSet rowIndexes, bool includeSubrows)
168 { 168 {
169 OS.objc_msgSend(this.id, OS.sel_removeRowsAtIndexes_1includeSubrows_1, rowIndexes !is null ? rowIndexes.id : null, includeSubrows); 169 OS.objc_msgSend(this.id_, OS.sel_removeRowsAtIndexes_1includeSubrows_1, rowIndexes !is null ? rowIndexes.id_ : null, includeSubrows);
170 } 170 }
171 171
172 public objc.Class rowClass () 172 public objc.Class rowClass ()
173 { 173 {
174 return cast(objc.Class) OS.objc_msgSend(this.id, OS.sel_rowClass); 174 return cast(objc.Class) OS.objc_msgSend(this.id_, OS.sel_rowClass);
175 } 175 }
176 176
177 public NSInteger rowForDisplayValue (id displayValue) 177 public NSInteger rowForDisplayValue (id displayValue)
178 { 178 {
179 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_rowForDisplayValue_1, displayValue !is null ? displayValue.id : null); 179 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_rowForDisplayValue_1, displayValue !is null ? displayValue.id_ : null);
180 } 180 }
181 181
182 public CGFloat rowHeight () 182 public CGFloat rowHeight ()
183 { 183 {
184 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_rowHeight); 184 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_rowHeight);
185 } 185 }
186 186
187 public NSRuleEditorRowType rowTypeForRow (NSInteger rowIndex) 187 public NSRuleEditorRowType rowTypeForRow (NSInteger rowIndex)
188 { 188 {
189 return cast(NSRuleEditorRowType) OS.objc_msgSend(this.id, OS.sel_rowTypeForRow_1, rowIndex); 189 return cast(NSRuleEditorRowType) OS.objc_msgSend(this.id_, OS.sel_rowTypeForRow_1, rowIndex);
190 } 190 }
191 191
192 public NSString rowTypeKeyPath () 192 public NSString rowTypeKeyPath ()
193 { 193 {
194 objc.id result = OS.objc_msgSend(this.id, OS.sel_rowTypeKeyPath); 194 objc.id result = OS.objc_msgSend(this.id_, OS.sel_rowTypeKeyPath);
195 return result !is null ? new NSString(result) : null; 195 return result !is null ? new NSString(result) : null;
196 } 196 }
197 197
198 public void selectRowIndexes (NSIndexSet indexes, bool extend) 198 public void selectRowIndexes (NSIndexSet indexes, bool extend)
199 { 199 {
200 OS.objc_msgSend(this.id, OS.sel_selectRowIndexes_1byExtendingSelection_1, indexes !is null ? indexes.id : null, extend); 200 OS.objc_msgSend(this.id_, OS.sel_selectRowIndexes_1byExtendingSelection_1, indexes !is null ? indexes.id_ : null, extend);
201 } 201 }
202 202
203 public NSIndexSet selectedRowIndexes () 203 public NSIndexSet selectedRowIndexes ()
204 { 204 {
205 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedRowIndexes); 205 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedRowIndexes);
206 return result !is null ? new NSIndexSet(result) : null; 206 return result !is null ? new NSIndexSet(result) : null;
207 } 207 }
208 208
209 public void setCanRemoveAllRows (bool val) 209 public void setCanRemoveAllRows (bool val)
210 { 210 {
211 OS.objc_msgSend(this.id, OS.sel_setCanRemoveAllRows_1, val); 211 OS.objc_msgSend(this.id_, OS.sel_setCanRemoveAllRows_1, val);
212 } 212 }
213 213
214 public void setCriteria (NSArray criteria, NSArray values, NSInteger rowIndex) 214 public void setCriteria (NSArray criteria, NSArray values, NSInteger rowIndex)
215 { 215 {
216 OS.objc_msgSend(this.id, OS.sel_setCriteria_1andDisplayValues_1forRowAtIndex_1, criteria !is null ? criteria.id : null, 216 OS.objc_msgSend(this.id_, OS.sel_setCriteria_1andDisplayValues_1forRowAtIndex_1, criteria !is null ? criteria.id_ : null,
217 values !is null ? values.id : null, rowIndex); 217 values !is null ? values.id_ : null, rowIndex);
218 } 218 }
219 219
220 public void setCriteriaKeyPath (NSString keyPath) 220 public void setCriteriaKeyPath (NSString keyPath)
221 { 221 {
222 OS.objc_msgSend(this.id, OS.sel_setCriteriaKeyPath_1, keyPath !is null ? keyPath.id : null); 222 OS.objc_msgSend(this.id_, OS.sel_setCriteriaKeyPath_1, keyPath !is null ? keyPath.id_ : null);
223 } 223 }
224 224
225 public void setDelegate (id delegatee) 225 public void setDelegate (id delegatee)
226 { 226 {
227 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id : null); 227 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id_ : null);
228 } 228 }
229 229
230 public void setDisplayValuesKeyPath (NSString keyPath) 230 public void setDisplayValuesKeyPath (NSString keyPath)
231 { 231 {
232 OS.objc_msgSend(this.id, OS.sel_setDisplayValuesKeyPath_1, keyPath !is null ? keyPath.id : null); 232 OS.objc_msgSend(this.id_, OS.sel_setDisplayValuesKeyPath_1, keyPath !is null ? keyPath.id_ : null);
233 } 233 }
234 234
235 public void setEditable (bool editable) 235 public void setEditable (bool editable)
236 { 236 {
237 OS.objc_msgSend(this.id, OS.sel_setEditable_1, editable); 237 OS.objc_msgSend(this.id_, OS.sel_setEditable_1, editable);
238 } 238 }
239 239
240 public void setFormattingDictionary (NSDictionary dictionary) 240 public void setFormattingDictionary (NSDictionary dictionary)
241 { 241 {
242 OS.objc_msgSend(this.id, OS.sel_setFormattingDictionary_1, dictionary !is null ? dictionary.id : null); 242 OS.objc_msgSend(this.id_, OS.sel_setFormattingDictionary_1, dictionary !is null ? dictionary.id_ : null);
243 } 243 }
244 244
245 public void setFormattingStringsFilename (NSString stringsFilename) 245 public void setFormattingStringsFilename (NSString stringsFilename)
246 { 246 {
247 OS.objc_msgSend(this.id, OS.sel_setFormattingStringsFilename_1, stringsFilename !is null ? stringsFilename.id : null); 247 OS.objc_msgSend(this.id_, OS.sel_setFormattingStringsFilename_1, stringsFilename !is null ? stringsFilename.id_ : null);
248 } 248 }
249 249
250 public void setNestingMode (NSRuleEditorNestingMode mode) 250 public void setNestingMode (NSRuleEditorNestingMode mode)
251 { 251 {
252 OS.objc_msgSend(this.id, OS.sel_setNestingMode_1, mode); 252 OS.objc_msgSend(this.id_, OS.sel_setNestingMode_1, mode);
253 } 253 }
254 254
255 public void setRowClass (objc.Class rowClass) 255 public void setRowClass (objc.Class rowClass)
256 { 256 {
257 OS.objc_msgSend(this.id, OS.sel_setRowClass_1, rowClass); 257 OS.objc_msgSend(this.id_, OS.sel_setRowClass_1, rowClass);
258 } 258 }
259 259
260 public void setRowHeight (CGFloat height) 260 public void setRowHeight (CGFloat height)
261 { 261 {
262 OS.objc_msgSend(this.id, OS.sel_setRowHeight_1, height); 262 OS.objc_msgSend(this.id_, OS.sel_setRowHeight_1, height);
263 } 263 }
264 264
265 public void setRowTypeKeyPath (NSString keyPath) 265 public void setRowTypeKeyPath (NSString keyPath)
266 { 266 {
267 OS.objc_msgSend(this.id, OS.sel_setRowTypeKeyPath_1, keyPath !is null ? keyPath.id : null); 267 OS.objc_msgSend(this.id_, OS.sel_setRowTypeKeyPath_1, keyPath !is null ? keyPath.id_ : null);
268 } 268 }
269 269
270 public void setSubrowsKeyPath (NSString keyPath) 270 public void setSubrowsKeyPath (NSString keyPath)
271 { 271 {
272 OS.objc_msgSend(this.id, OS.sel_setSubrowsKeyPath_1, keyPath !is null ? keyPath.id : null); 272 OS.objc_msgSend(this.id_, OS.sel_setSubrowsKeyPath_1, keyPath !is null ? keyPath.id_ : null);
273 } 273 }
274 274
275 public NSIndexSet subrowIndexesForRow (NSInteger rowIndex) 275 public NSIndexSet subrowIndexesForRow (NSInteger rowIndex)
276 { 276 {
277 objc.id result = OS.objc_msgSend(this.id, OS.sel_subrowIndexesForRow_1, rowIndex); 277 objc.id result = OS.objc_msgSend(this.id_, OS.sel_subrowIndexesForRow_1, rowIndex);
278 return result !is null ? new NSIndexSet(result) : null; 278 return result !is null ? new NSIndexSet(result) : null;
279 } 279 }
280 280
281 public NSString subrowsKeyPath () 281 public NSString subrowsKeyPath ()
282 { 282 {
283 objc.id result = OS.objc_msgSend(this.id, OS.sel_subrowsKeyPath); 283 objc.id result = OS.objc_msgSend(this.id_, OS.sel_subrowsKeyPath);
284 return result !is null ? new NSString(result) : null; 284 return result !is null ? new NSString(result) : null;
285 } 285 }
286 286
287 } 287 }