home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / pstoedit.zip / source.zip / pstoedit.2.50 / src / bc5gui / winp2e.h < prev    next >
C/C++ Source or Header  |  1996-11-17  |  2KB  |  80 lines

  1. #ifndef __WMF_h
  2. #define __WMF_h
  3.  
  4. // OWL-Includes
  5. #include <owl/combobox.h>
  6. #include <owl/checkbox.h>
  7. #include <owl/edit.h>
  8. #include <owl/opensave.h>
  9.  
  10. //wogl #include "drvwmf.h"
  11. #include <stdio.h>
  12. #include "menu.h"
  13.  
  14.  
  15. typedef POINT * PPOINT; //JW
  16.  
  17. #define NAMELENGTH 100
  18. struct TMyTransferStruct {
  19.     char NameEdit1[NAMELENGTH];
  20.     char NameEdit2[NAMELENGTH];
  21.     char NameEdit3[NAMELENGTH];
  22.     char NameEdit4[NAMELENGTH];
  23.     uint button1, button2, button3, button4;
  24.    uint button5, button6, button7, button8;
  25.     TComboBoxData ComboBoxData;
  26.    char CBDataEdit[NAMELENGTH];
  27. };
  28.  
  29. // Struktur zur Speicherung der Dialag-Antworten
  30.  
  31. struct TParameter {
  32.     float magnification;
  33.     float flatness;
  34.     bool merging;
  35.     bool drawtext;
  36.     bool display;
  37.     bool verbose;
  38.     char format[10];
  39.     char resolution_x[100];
  40.     char resolution_y[100];
  41.     bool backendonly;
  42.     bool nomaplatin;
  43.     bool noquit;
  44.    bool enhanced;
  45.    };
  46.  
  47.  
  48. _CLASSDEF(TParaDlg)
  49. class TParaDlg : public TDialog {
  50.  
  51.  
  52. public:
  53.     char Name1[NAMELENGTH] ;
  54.     char Name2[NAMELENGTH] ;
  55.     char Name3[NAMELENGTH] ;
  56.     char Name4[NAMELENGTH] ;
  57.  
  58.    TParameter *para_zeiger;  // Struktur zum Speichern der Parameter
  59.  
  60.     TCheckBox *cb1,*cb2,*cb3,*cb4;
  61.     TCheckBox *cb5,*cb6,*cb7,*cb8;
  62.     TComboBox *Combo1;
  63.  
  64.     TParaDlg(TWindow *AParent, TResId , TParameter *, TMyTransferStruct& );
  65.     ~TParaDlg();
  66.  
  67. private:
  68.   void FillBuffers();
  69.     bool ValidField1();
  70.     bool ValidField2();
  71.     bool ValidField3();
  72.     bool ValidField4();
  73.  
  74.     virtual bool CanClose();
  75.  
  76. };
  77.  
  78. #endif
  79.  
  80.