home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / checkbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.5 KB  |  88 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.26.26;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @*** empty log message ***
  30. @
  31. text
  32. @// $Id$
  33. #ifndef CLASS_CHECKBOX_H
  34. #define CLASS_CHECKBOX_H
  35.  
  36. #ifndef EXEC_TYPES_H
  37. #include <exec/types.h>
  38. #endif
  39.  
  40. #ifndef LIBRARIES_GADTOOLS_H
  41. #define PLACETEXT_LEFT  0x0001  /* Right-align text on left side */
  42. #endif
  43.  
  44. #ifndef CLASS_WINDOW_H
  45. class window ;
  46. #endif
  47.  
  48. #ifndef CLASS_GADGETLIST_H
  49. class gadgetlist ;
  50. #endif
  51.  
  52. #ifndef CLASS_GADGET_H
  53. #include "gadgets/gadget.h"
  54. #endif
  55.  
  56. // ========================================================================
  57. // ==========================  CHECKBOX CLASS =============================
  58. // ========================================================================
  59.  
  60. class checkbox : public gadget
  61. {
  62. public:
  63.     long cursel ;
  64.     checkbox(gadgetlist *gl,
  65.              void (window::*func)(gadget *, unsigned long, unsigned short),
  66.              const char *text, long checked=FALSE, long place=PLACETEXT_LEFT, BOOL disable=FALSE) ;
  67.     void set(long flag) ;
  68.     void disable(BOOL flag) ;
  69.     void action(unsigned long, unsigned short) ;
  70.     void keystroke(BOOL shifted) ;
  71. };
  72.  
  73.  
  74. #endif
  75. @
  76.  
  77.  
  78. 1.1
  79. log
  80. @Initial revision
  81. @
  82. text
  83. @d1 1
  84. d35 1
  85. a35 1
  86.              STRPTR text, long checked=FALSE, long place=PLACETEXT_LEFT, BOOL disable=FALSE) ;
  87. @
  88.