home *** CD-ROM | disk | FTP | other *** search
/ Instant Doom Levels / Instant.Doom.Levels.-.Level.Master.II.iso / EDITORS / ZIPPED / WSCDEU52.ZIP / INCLUDE / CNFLDDLG.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  4KB  |  127 lines

  1. /*----------------------------------------------------------------------------*
  2.  | This file is part of WinDEU, the port of DEU to Windows.                   |
  3.  | WinDEU was created by the DEU team:                                        |
  4.  |  Renaud Paquay, Raphael Quinet, Brendon Wyber and others...                |
  5.  |                                                                            |
  6.  | DEU is an open project: if you think that you can contribute, please join  |
  7.  | the DEU team.  You will be credited for any code (or ideas) included in    |
  8.  | the next version of the program.                                           |
  9.  |                                                                            |
  10.  | If you want to make any modifications and re-distribute them on your own,  |
  11.  | you must follow the conditions of the WinDEU license. Read the file        |
  12.  | LICENSE or README.TXT in the top directory.  If do not  have a copy of     |
  13.  | these files, you can request them from any member of the DEU team, or by   |
  14.  | mail: Raphael Quinet, Rue des Martyrs 9, B-4550 Nandrin (Belgium).         |
  15.  |                                                                            |
  16.  | This program comes with absolutely no warranty.  Use it at your own risks! |
  17.  *----------------------------------------------------------------------------*
  18.  
  19.     Project WinDEU
  20.     DEU team
  21.     Jul-Dec 1994, Jan-Mar 1995
  22.  
  23.     FILE:         cnflddlg.h
  24.  
  25.     OVERVIEW
  26.     ========
  27.     Class definition for TConfirmLineDefDialog (TDialog).
  28. */
  29. #if !defined(__cnflddlg_h)              // Sentry, use file only if it's not already included.
  30. #define __cnflddlg_h
  31.  
  32. #ifndef __common_h
  33.     #include "common.h"
  34. #endif
  35.  
  36. #ifndef __windeu_h
  37.     #include "windeu.h"
  38. #endif
  39.  
  40. #ifndef __OWL_DIALOG_H
  41.     #include <owl\dialog.h>
  42. #endif
  43.  
  44. #ifndef __OWL_CHECKBOX_H
  45.     class _OWLCLASS TCheckBox;
  46. #endif
  47.  
  48. #include "cnflddlg.rh"
  49.  
  50.  
  51. //{{TDialog = TConfirmLineDefDialog}}
  52. struct TConfirmLineDefDialogXfer {
  53.     BOOL    pTypeCheck;
  54.     BOOL    pFlagsCheck;
  55.     BOOL    pSectorCheck;
  56.     BOOL    pVertex1Check;
  57.     BOOL    pVertex2Check;
  58.     BOOL    pSDCheck[2];
  59.     BOOL    pImpassableCheck;
  60.     BOOL    pAboveUnpCheck;
  61.     BOOL    pBelowUnpCheck;
  62.     BOOL    pBlockSoundCheck;
  63.     BOOL    pMonCrossCheck;
  64.     BOOL    pNotShownCheck;
  65.     BOOL    pSecretCheck;
  66.     BOOL    pShownCheck;
  67.     BOOL    pTwoSidedCheck;
  68.     BOOL    pSDAboveCheck[2];
  69.     BOOL    pSDBelowCheck[2];
  70.     BOOL    pSDNormalCheck[2];
  71.     BOOL    pSDSectorCheck[2];
  72.     BOOL    pSDXOfsCheck[2];
  73.     BOOL    pSDYOfsCheck[2];
  74. };
  75.  
  76.  
  77. class TConfirmLineDefDialog : public TDialog
  78. {
  79. public:
  80.     TConfirmLineDefDialog (TWindow* parent, TConfirmLineDefDialogXfer *pXFer, TResId resId = IDD_CONFIRM_LINEDEF, TModule* module = 0);
  81.     virtual ~TConfirmLineDefDialog ();
  82.  
  83. protected:
  84.     void EnableFlags ();
  85.     void EnableSD (int sdnum);
  86.  
  87. protected:
  88.     TCheckBox *pTypeCheck;
  89.     TCheckBox *pFlagsCheck;
  90.     TCheckBox *pSectorCheck;
  91.     TCheckBox *pVertex1Check;
  92.     TCheckBox *pVertex2Check;
  93.     TCheckBox *pSDCheck[2];
  94.     TCheckBox *pImpassableCheck;
  95.     TCheckBox *pAboveUnpCheck;
  96.     TCheckBox *pBelowUnpCheck;
  97.     TCheckBox *pBlockSoundCheck;
  98.     TCheckBox *pMonCrossCheck;
  99.     TCheckBox *pNotShownCheck;
  100.     TCheckBox *pSecretCheck;
  101.     TCheckBox *pShownCheck;
  102.     TCheckBox *pTwoSidedCheck;
  103.     TCheckBox *pSDAboveCheck[2];
  104.     TCheckBox *pSDBelowCheck[2];
  105.     TCheckBox *pSDNormalCheck[2];
  106.     TCheckBox *pSDSectorCheck[2];
  107.     TCheckBox *pSDXOfsCheck[2];
  108.     TCheckBox *pSDYOfsCheck[2];
  109.  
  110. //{{TConfirmLineDefDialogVIRTUAL_BEGIN}}
  111. public:
  112.     virtual void SetupWindow ();
  113. //{{TConfirmLineDefDialogVIRTUAL_END}}
  114.  
  115. //{{TConfirmLineDefDialogRSP_TBL_BEGIN}}
  116. protected:
  117.     void CmOk ();
  118.     void FlagsClicked ();
  119.     void SD1CheckClicked ();
  120.     void SD2CheckClicked ();
  121. //{{TConfirmLineDefDialogRSP_TBL_END}}
  122. DECLARE_RESPONSE_TABLE(TConfirmLineDefDialog);
  123. };    //{{TConfirmLineDefDialog}}
  124.  
  125. #endif                                      // __cnflddlg_h sentry.
  126.  
  127.