home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC7.DMS / in.adf / classes.lha / Classes / Intuition / Requester.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-31  |  1.4 KB  |  61 lines

  1. #ifndef CPP_INTUITION_REQUESTER_H
  2. #define CPP_INTUITION_REQUESTER_H
  3.  
  4. // Requester Klassen
  5. //
  6. // Autor: Jochen Becher
  7. //
  8. // Historie:
  9. // Version 1.0, am 10. Januar 94
  10.  
  11. #ifndef INTUITION_INTUITION_H
  12. #include <intuition/intuition.h>
  13. #endif
  14.  
  15. #ifndef INCLUDE_TOOLS_STR_H
  16. #include <tools/str.h>
  17. #endif
  18.  
  19. #ifndef CPP_INTUITION_WINDOW_H
  20. #include <classes/intuition/window.h>
  21. #endif
  22.  
  23. class EasyRequesterC {
  24. public:
  25.     EasyRequesterC(WindowC *, ULONG idcmpFlags,
  26.         STRPTR title, STRPTR gadgettext);
  27.     LONG request(STRPTR text, APTR args = NULL);
  28.     LONG request(STRPTR text, ULONG arg1, ...);
  29. protected:
  30.     WindowC *window;
  31.     ULONG idcmp;
  32.     struct EasyStruct easy;
  33. };
  34.  
  35. class InfoRequesterC : public EasyRequesterC {
  36. public:
  37.     InfoRequesterC(WindowC *, STRPTR title, STRPTR gadget);
  38.     VOID request(STRPTR text, APTR args = NULL);
  39.     VOID request(STRPTR text, ULONG arg1, ...);
  40. };
  41.  
  42. class TwoButtonRequesterC : public EasyRequesterC {
  43. public:
  44.     TwoButtonRequesterC(WindowC *, STRPTR title, STRPTR left, STRPTR right);
  45.     BOOL request(STRPTR text, APTR args = NULL);
  46.     BOOL request(STRPTR text, ULONG arg1, ...);
  47. private:
  48.     String gadgettext;
  49. };
  50.  
  51. class ThreeButtonRequesterC : public EasyRequesterC {
  52. public:
  53.     ThreeButtonRequesterC(WindowC *, STRPTR title,
  54.         STRPTR left, STRPTR middle, STRPTR right);
  55.     ULONG request(STRPTR text, APTR args = NULL);
  56.     ULONG request(STRPTR text, ULONG arg1, ...);
  57. private:
  58.     String gadgettext;
  59. };
  60.  
  61. #endif