home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWLINC.PAK / INPUTDIA.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  2KB  |  60 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1991, 1994 by Borland International, All Rights Reserved
  4. //
  5. //   Definition of TInputDialog class
  6. //----------------------------------------------------------------------------
  7. #if !defined(OWL_INPUTDIA_H)
  8. #define OWL_INPUTDIA_H
  9.  
  10. #if !defined(OWL_DIALOG_H)
  11. # include <owl/dialog.h>
  12. #endif
  13. #include <owl/inputdia.rh>
  14.  
  15. class _OWLCLASS TValidator;
  16.  
  17. //
  18. //  class TInputDialog
  19. //  ----- ------------
  20. //
  21. class _OWLCLASS TInputDialog : public TDialog {
  22.   public:
  23.     char far* Prompt;
  24.     char far* Buffer;
  25.     int       BufferSize;
  26.  
  27.     TInputDialog(TWindow*        parent,
  28.                  const char far* title,
  29.                  const char far* prompt,
  30.                  char far*       buffer,
  31.                  int             bufferSize,
  32.                  TModule*        module = 0,
  33.                  TValidator*     valid = 0);  // Optional validator
  34.  
  35.    ~TInputDialog();
  36.  
  37.     //
  38.     // Override TWindow virtual member functions
  39.     //
  40.     void TransferData(TTransferDirection);
  41.  
  42.  
  43.   protected:
  44.     //
  45.     // Override TWindow virtual member functions
  46.     //
  47.     void SetupWindow();
  48.  
  49.   private:
  50.     //
  51.     // hidden to prevent accidental copying or assignment
  52.     //
  53.     TInputDialog(const TInputDialog&);
  54.     TInputDialog& operator=(const TInputDialog&);
  55.  
  56.   DECLARE_STREAMABLE(_OWLCLASS, TInputDialog, 1);
  57. };
  58.  
  59. #endif  // OWL_INPUTDIA_H
  60.