Mercurial > projects > dwt-addons
comparison dwtx/jface/text/DefaultInformationControl.d @ 133:7d818bd32d63
Fix ctors to this with gvim regexp
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:29:22 +0200 |
parents | c4fb132a086c |
children | 51e6e63f930e |
comparison
equal
deleted
inserted
replaced
132:77bd3bb3d7b8 | 133:7d818bd32d63 |
---|---|
272 * | 272 * |
273 * @param parent the parent shell | 273 * @param parent the parent shell |
274 * @param isResizeable <code>true</code> if the control should be resizable | 274 * @param isResizeable <code>true</code> if the control should be resizable |
275 * @since 3.4 | 275 * @since 3.4 |
276 */ | 276 */ |
277 public DefaultInformationControl(Shell parent, bool isResizeable) { | 277 public this(Shell parent, bool isResizeable) { |
278 super(parent, isResizeable); | 278 super(parent, isResizeable); |
279 fAdditionalTextStyles= isResizeable ? DWT.V_SCROLL | DWT.H_SCROLL : DWT.NONE; | 279 fAdditionalTextStyles= isResizeable ? DWT.V_SCROLL | DWT.H_SCROLL : DWT.NONE; |
280 fPresenter= new HTMLTextPresenter(!isResizeable); | 280 fPresenter= new HTMLTextPresenter(!isResizeable); |
281 create(); | 281 create(); |
282 } | 282 } |
287 * | 287 * |
288 * @param parent the parent shell | 288 * @param parent the parent shell |
289 * @param statusFieldText the text to be used in the status field or <code>null</code> to hide the status field | 289 * @param statusFieldText the text to be used in the status field or <code>null</code> to hide the status field |
290 * @since 3.4 | 290 * @since 3.4 |
291 */ | 291 */ |
292 public DefaultInformationControl(Shell parent, String statusFieldText) { | 292 public this(Shell parent, String statusFieldText) { |
293 this(parent, statusFieldText, new HTMLTextPresenter(true)); | 293 this(parent, statusFieldText, new HTMLTextPresenter(true)); |
294 } | 294 } |
295 | 295 |
296 /** | 296 /** |
297 * Creates a default information control with the given shell as parent. The | 297 * Creates a default information control with the given shell as parent. The |
301 * @param parent the parent shell | 301 * @param parent the parent shell |
302 * @param statusFieldText the text to be used in the status field or <code>null</code> to hide the status field | 302 * @param statusFieldText the text to be used in the status field or <code>null</code> to hide the status field |
303 * @param presenter the presenter to be used, or <code>null</code> if no presenter should be used | 303 * @param presenter the presenter to be used, or <code>null</code> if no presenter should be used |
304 * @since 3.4 | 304 * @since 3.4 |
305 */ | 305 */ |
306 public DefaultInformationControl(Shell parent, String statusFieldText, IInformationPresenter presenter) { | 306 public this(Shell parent, String statusFieldText, IInformationPresenter presenter) { |
307 super(parent, statusFieldText); | 307 super(parent, statusFieldText); |
308 fAdditionalTextStyles= DWT.NONE; | 308 fAdditionalTextStyles= DWT.NONE; |
309 fPresenter= presenter; | 309 fPresenter= presenter; |
310 create(); | 310 create(); |
311 } | 311 } |
317 * | 317 * |
318 * @param parent the parent shell | 318 * @param parent the parent shell |
319 * @param toolBarManager the manager or <code>null</code> if toolbar is not desired | 319 * @param toolBarManager the manager or <code>null</code> if toolbar is not desired |
320 * @since 3.4 | 320 * @since 3.4 |
321 */ | 321 */ |
322 public DefaultInformationControl(Shell parent, ToolBarManager toolBarManager) { | 322 public this(Shell parent, ToolBarManager toolBarManager) { |
323 this(parent, toolBarManager, new HTMLTextPresenter(false)); | 323 this(parent, toolBarManager, new HTMLTextPresenter(false)); |
324 } | 324 } |
325 | 325 |
326 /** | 326 /** |
327 * Creates a resizable default information control with the given shell as | 327 * Creates a resizable default information control with the given shell as |
331 * @param parent the parent shell | 331 * @param parent the parent shell |
332 * @param toolBarManager the manager or <code>null</code> if toolbar is not desired | 332 * @param toolBarManager the manager or <code>null</code> if toolbar is not desired |
333 * @param presenter the presenter to be used, or <code>null</code> if no presenter should be used | 333 * @param presenter the presenter to be used, or <code>null</code> if no presenter should be used |
334 * @since 3.4 | 334 * @since 3.4 |
335 */ | 335 */ |
336 public DefaultInformationControl(Shell parent, ToolBarManager toolBarManager, IInformationPresenter presenter) { | 336 public this(Shell parent, ToolBarManager toolBarManager, IInformationPresenter presenter) { |
337 super(parent, toolBarManager); | 337 super(parent, toolBarManager); |
338 fAdditionalTextStyles= DWT.V_SCROLL | DWT.H_SCROLL; | 338 fAdditionalTextStyles= DWT.V_SCROLL | DWT.H_SCROLL; |
339 fPresenter= presenter; | 339 fPresenter= presenter; |
340 create(); | 340 create(); |
341 } | 341 } |
345 * No information presenter is used to process the information | 345 * No information presenter is used to process the information |
346 * to be displayed. | 346 * to be displayed. |
347 * | 347 * |
348 * @param parent the parent shell | 348 * @param parent the parent shell |
349 */ | 349 */ |
350 public DefaultInformationControl(Shell parent) { | 350 public this(Shell parent) { |
351 this(parent, (String)null, null); | 351 this(parent, (String)null, null); |
352 } | 352 } |
353 | 353 |
354 /** | 354 /** |
355 * Creates a default information control with the given shell as parent. The given | 355 * Creates a default information control with the given shell as parent. The given |
356 * information presenter is used to process the information to be displayed. | 356 * information presenter is used to process the information to be displayed. |
357 * | 357 * |
358 * @param parent the parent shell | 358 * @param parent the parent shell |
359 * @param presenter the presenter to be used | 359 * @param presenter the presenter to be used |
360 */ | 360 */ |
361 public DefaultInformationControl(Shell parent, IInformationPresenter presenter) { | 361 public this(Shell parent, IInformationPresenter presenter) { |
362 this(parent, (String)null, presenter); | 362 this(parent, (String)null, presenter); |
363 } | 363 } |
364 | 364 |
365 /** | 365 /** |
366 * Creates a default information control with the given shell as parent. The | 366 * Creates a default information control with the given shell as parent. The |
372 * @param shellStyle the additional styles for the shell | 372 * @param shellStyle the additional styles for the shell |
373 * @param style the additional styles for the styled text widget | 373 * @param style the additional styles for the styled text widget |
374 * @param presenter the presenter to be used | 374 * @param presenter the presenter to be used |
375 * @deprecated As of 3.4, replaced by simpler constructors | 375 * @deprecated As of 3.4, replaced by simpler constructors |
376 */ | 376 */ |
377 public DefaultInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter) { | 377 public this(Shell parent, int shellStyle, int style, IInformationPresenter presenter) { |
378 this(parent, shellStyle, style, presenter, null); | 378 this(parent, shellStyle, style, presenter, null); |
379 } | 379 } |
380 | 380 |
381 /** | 381 /** |
382 * Creates a default information control with the given shell as parent. The | 382 * Creates a default information control with the given shell as parent. The |
390 * @param presenter the presenter to be used | 390 * @param presenter the presenter to be used |
391 * @param statusFieldText the text to be used in the status field or <code>null</code> to hide the status field | 391 * @param statusFieldText the text to be used in the status field or <code>null</code> to hide the status field |
392 * @since 3.0 | 392 * @since 3.0 |
393 * @deprecated As of 3.4, replaced by simpler constructors | 393 * @deprecated As of 3.4, replaced by simpler constructors |
394 */ | 394 */ |
395 public DefaultInformationControl(Shell parentShell, int shellStyle, final int style, IInformationPresenter presenter, String statusFieldText) { | 395 public this(Shell parentShell, int shellStyle, final int style, IInformationPresenter presenter, String statusFieldText) { |
396 super(parentShell, DWT.NO_FOCUS | DWT.ON_TOP | shellStyle, statusFieldText, null); | 396 super(parentShell, DWT.NO_FOCUS | DWT.ON_TOP | shellStyle, statusFieldText, null); |
397 fAdditionalTextStyles= style; | 397 fAdditionalTextStyles= style; |
398 fPresenter= presenter; | 398 fPresenter= presenter; |
399 create(); | 399 create(); |
400 } | 400 } |
407 * @param parent the parent shell | 407 * @param parent the parent shell |
408 * @param textStyles the additional styles for the styled text widget | 408 * @param textStyles the additional styles for the styled text widget |
409 * @param presenter the presenter to be used | 409 * @param presenter the presenter to be used |
410 * @deprecated As of 3.4, replaced by {@link #DefaultInformationControl(Shell, DefaultInformationControl.IInformationPresenter)} | 410 * @deprecated As of 3.4, replaced by {@link #DefaultInformationControl(Shell, DefaultInformationControl.IInformationPresenter)} |
411 */ | 411 */ |
412 public DefaultInformationControl(Shell parent, int textStyles, IInformationPresenter presenter) { | 412 public this(Shell parent, int textStyles, IInformationPresenter presenter) { |
413 this(parent, textStyles, presenter, null); | 413 this(parent, textStyles, presenter, null); |
414 } | 414 } |
415 | 415 |
416 /** | 416 /** |
417 * Creates a default information control with the given shell as parent. The | 417 * Creates a default information control with the given shell as parent. The |
423 * @param presenter the presenter to be used | 423 * @param presenter the presenter to be used |
424 * @param statusFieldText the text to be used in the status field or <code>null</code> to hide the status field | 424 * @param statusFieldText the text to be used in the status field or <code>null</code> to hide the status field |
425 * @since 3.0 | 425 * @since 3.0 |
426 * @deprecated As of 3.4, replaced by {@link #DefaultInformationControl(Shell, String, DefaultInformationControl.IInformationPresenter)} | 426 * @deprecated As of 3.4, replaced by {@link #DefaultInformationControl(Shell, String, DefaultInformationControl.IInformationPresenter)} |
427 */ | 427 */ |
428 public DefaultInformationControl(Shell parent, int textStyles, IInformationPresenter presenter, String statusFieldText) { | 428 public this(Shell parent, int textStyles, IInformationPresenter presenter, String statusFieldText) { |
429 super(parent, statusFieldText); | 429 super(parent, statusFieldText); |
430 fAdditionalTextStyles= textStyles; | 430 fAdditionalTextStyles= textStyles; |
431 fPresenter= presenter; | 431 fPresenter= presenter; |
432 create(); | 432 create(); |
433 } | 433 } |