home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opmsam.zip / GRAPH.HPP < prev    next >
C/C++ Source or Header  |  1993-06-12  |  1KB  |  65 lines

  1. /*  VCS_ID
  2.  *  $Filename:   graph.hxx
  3.  *  $Author  :   John Pompeii
  4.  *  $Revision:   1.1  $
  5.  *  $Date:   28 Dec 1991 14:18:28  $
  6.  */
  7.  
  8. #include "about.h"
  9. #include "graph.h"
  10.  
  11. class OptionsDialog;
  12.  
  13. // Top level window class for graph class
  14.  
  15. class GraphWindow : public wFrameWindow
  16. {
  17.     private:
  18.         wIcon *icon;
  19.         wMenu *menubar;
  20.  
  21.         wFont *scFonts[2];
  22.         wFont **fonts;
  23.         wWindowDevice *winDC;
  24.         short aRotation;
  25.         long xGraphPos;
  26.         long yGraphPos;
  27.         double scale;
  28.         wSubPicture *bracket;
  29.  
  30.         void Paint();
  31.         void PrepPS();
  32.         void DestroyPS();
  33.         void CreateFonts(wFont **);
  34.         void DrawBracket(wDimension siz);
  35.         void PrintGraph();
  36.         long MenuCommand(wCommandMsg);
  37.         wPrinterSetup *prSetup;
  38.         OptionsDialog *optionsDialog;
  39.         friend class OptionsDialog;
  40.  
  41.     public:
  42.         GraphWindow();
  43.         ~GraphWindow();
  44. };
  45.  
  46. // Options Dialog
  47.  
  48. class OptionsDialog : public wFormWindow
  49. {
  50.     private:
  51.         short Init();
  52.  
  53.     public:
  54.         OptionsDialog(GraphWindow *win);
  55. };
  56.  
  57. class AboutDialog : public wDialogWindow
  58. {
  59.     public:
  60.         AboutDialog(wWindow *owner) : wDialogWindow (D_ABOUT) { CreateWindow(owner); }
  61.         long InitDlg(wInitDlgMsg)               { ChangePosition(PosCenter, OwnerWindow()); return FALSE; }
  62.         long PushButtonCommand(wCommandMsg)     { Dismiss(); return FALSE; }
  63. };
  64.  
  65.