home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / acdf6 / acdfdlg6.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.4 KB  |  73 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                      SAMPLE CODE
  3. //
  4. // FileName: ACDFDlg6.hpp
  5. //
  6. // ClassName: ATextDialog
  7. //
  8. // Description: Conversion of the Hello World 5 Sample
  9. //
  10. ///////////////////////////////////////////////////////////////////////////////
  11. #ifndef _ADIALOG6_
  12. #define _ADIALOG6_
  13.  
  14. #ifdef IC_TRACE_DEVELOP
  15.     #include <itrace.hpp>
  16. #else
  17.     #define IFUNCTRACE_DEVELOP()
  18.     #define ITRACE_DEVELOP(x)
  19. #endif
  20.  
  21. #include <iframe.hpp>   
  22. #include <icmdhdr.hpp>  
  23. #include <istring.hpp>  
  24. #include <imcelcv.hpp>  
  25. #include <istattxt.hpp> 
  26. #include <ientryfd.hpp> 
  27. #include <isetcv.hpp>   
  28. #include <ipushbut.hpp> 
  29.  
  30. //Forward declarations for other classes:
  31. class ATextDialog;                                                         
  32.  
  33. class ADialogCommandHandler : public ICommandHandler 
  34. {                     
  35. public:                                                                    
  36.                             ADialogCommandHandler(ATextDialog *dialogFrame);
  37.  
  38.   virtual                   ~ADialogCommandHandler() { }
  39.  
  40.  
  41. protected:
  42.  
  43.     virtual Boolean         command(ICommandEvent& cmdEvent);
  44.  
  45. private:                                                                   
  46.             ATextDialog     *frame;
  47. };
  48.  
  49. class ATextDialog : public IFrameWindow                                    
  50. {                                                                          
  51. public:
  52.  
  53.                             ATextDialog(IString & textString,IWindow * ownerWnd);
  54.  
  55.     virtual                 ~ATextDialog();               
  56.  
  57.     virtual ATextDialog     &setTextFromEntryField();                                               
  58.  
  59. private:                                                                 
  60.     IString                 &saveText;
  61.     IMultiCellCanvas        clientCanvas;
  62.     IStaticText             statText;
  63.     IEntryField             textField;
  64.     ISetCanvas              buttons;
  65.     IPushButton             pushButton1,
  66.                             pushButton2;                                  
  67.     ADialogCommandHandler   dialogCommandHandler;
  68.     ATextDialog             &operator=(const ATextDialog&);  
  69. };                                                                         
  70.  
  71. #endif                                                                     
  72.         
  73.