home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Languages / python / PyObjC-0.47-MIHS / pyobjc-0.47-src / Demo / ObjC / AlertPanel / AlertPanel.h next >
Encoding:
C/C++ Source or Header  |  1996-09-30  |  1.6 KB  |  72 lines

  1. /* Copyright (c) 1996 by Lele Gaifax.  All Rights Reserved
  2.  *
  3.  * This file is part of Nothing (yet).
  4.  *
  5.  * $RCSfile: AlertPanel.h,v $
  6.  * $Revision: 1.1.1.1 $
  7.  * $Date: 1996/09/30 06:06:48 $
  8.  *
  9.  * Created Wed Sep  4 15:21:26 1996.
  10.  */
  11.  
  12. #ifndef _AlertPanel_H
  13. #define _AlertPanel_H
  14.  
  15. #include <objc/Object.h>
  16. #include <PythonObject.h>
  17.  
  18. /*#C This class does something really interesting... */
  19. @interface AlertPanel : Object
  20. {
  21.   const char *mainTitle;
  22.   const char *message;
  23.   const char *defaultButtonTitle;
  24.   const char *alternateButtonTitle;
  25.   const char *otherButtonTitle;
  26.   enum _alert_panel_status
  27.   {
  28.     ALERT_PANEL_READY,
  29.     ALERT_PANEL_DEFAULT,
  30.     ALERT_PANEL_ALTERNATE,
  31.     ALERT_PANEL_OTHER
  32.   } status;
  33.  
  34.   id <PythonObject> action;
  35. }
  36.  
  37. //#M Initialize the version number of this class.
  38. + (void) initialize;
  39.  
  40. - initWithTitle:(const char *) title;
  41.  
  42. - initWithTitle:(const char *) title
  43.     message:(const char *) msg;
  44.  
  45. - initWithTitle:(const char *) title
  46.     message:(const char *) msg
  47.   defaultButton:(const char *) defButton;
  48.  
  49. - initWithTitle:(const char *) title
  50.     message:(const char *) msg
  51.   defaultButton:(const char *) defButton
  52.       altButton:(const char *) altButton;
  53.  
  54. - initWithTitle:(const char *) title
  55.     message:(const char *) msg
  56.   defaultButton:(const char *) defButton
  57.       altButton:(const char *) altButton
  58.     otherButton:(const char *) otherButton;
  59.  
  60. - (void) setAction:(id <PythonObject>) anAction;
  61.  
  62. - (enum _alert_panel_status) status;
  63.  
  64. - (enum _alert_panel_status) run;
  65.  
  66. - (const char *) buttonTitle;
  67.  
  68. @end /* AlertPanel class interface */
  69.  
  70.  
  71. #endif /* _AlertPanel_H */
  72.