home *** CD-ROM | disk | FTP | other *** search
/ Instant Doom Levels / Instant.Doom.Levels.-.Level.Master.II.iso / EDITORS / ZIPPED / WSCDEU52.ZIP / INCLUDE / PREFDLG.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  4KB  |  136 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:         prefdlg.h
  24.  
  25.     OVERVIEW
  26.     ========
  27.     Class definition for TPreferencesDialog (TDialog).
  28. */
  29. #if !defined(__prefdlg_h)              // Sentry, use file only if it's not already included.
  30. #define __prefdlg_h
  31.  
  32. #ifndef __common_h
  33.     #include "common.h"
  34. #endif
  35.  
  36. #include <owl\edit.h>
  37. #include <owl\checkbox.h>
  38. #ifndef __OWL_DIALOG_H
  39.     #include <owl\dialog.h>
  40. #endif
  41.  
  42. #ifndef __OWL_STATIC_H
  43.     class _OWLCLASS TStatic;
  44. #endif
  45.  
  46. #ifndef __OWL_EDIT_H
  47.     class _OWLCLASS TEdit;
  48. #endif
  49.  
  50. #ifndef __OWL_LISTBOX_H
  51.     class _OWLCLASS TListBox;
  52. #endif
  53.  
  54. #ifndef __viewbmp_h
  55.     class TDisplayWallTextureDialog;
  56.     class TDisplayFloorTextureDialog;
  57. #endif
  58.  
  59. #ifndef __prefdlg_rh
  60.     #include "prefdlg.rh"            // Definition of resource
  61. #endif
  62.  
  63.  
  64. //{{TDialog = TPreferencesDialog}}
  65.  
  66.  
  67. class TPreferencesDialog : public TDialog
  68. {
  69. protected:
  70.     TListBox *pWTextureList;
  71.     TListBox *pFTextureList;
  72.     TEdit    *pFloorHeight;
  73.     TStatic  *pNormalText;
  74.     TStatic  *pFloorText;
  75.     TStatic  *pCeilingText;
  76.     TEdit    *pCeilingHeight;
  77.     TStatic  *pBelowText;
  78.     TStatic  *pAboveText;
  79.     TCheckBox *p3DControlsCheck;
  80.     TCheckBox *pAddSelBoxCheck;
  81.     TCheckBox *pDebugCheck;
  82.     TCheckBox *pDrawLengthCheck;
  83.     TCheckBox *pExpertCheck;
  84.     TCheckBox *pInfoBarCheck;
  85.     TCheckBox *pQuietCheck;
  86.     TCheckBox *pQuiterCheck;
  87.     TCheckBox *pSelect0Check;
  88.     TEdit *pSplitFactorEdit;
  89.     TEdit *pPriorityEdit;
  90.  
  91.     char WTextureName[9];
  92.     char FTextureName[9];
  93.  
  94.     TDisplayWallTextureDialog  *pWTextureDialog;
  95.     TDisplayFloorTextureDialog *pFTextureDialog;
  96.  
  97. protected:
  98.     BOOL IsPointInDlgItem (int itemId, TPoint &clientPoint);
  99.     TStatic *GetPointedStatic (TPoint& point);
  100.  
  101. public:
  102.     TPreferencesDialog (TWindow* parent, TResId resId = IDD_PREFERENCES, TModule* module = 0);
  103.     virtual ~TPreferencesDialog ();
  104.  
  105. //{{TPreferencesDialogVIRTUAL_BEGIN}}
  106. public:
  107.     virtual void SetupWindow ();
  108. //{{TPreferencesDialogVIRTUAL_END}}
  109.  
  110. //{{TPreferencesDialogRSP_TBL_BEGIN}}
  111. protected:
  112.     void CmOk ();
  113.     void ToNormalClicked ();
  114.     void ToFloorClicked ();
  115.     void ToCeilingClicked ();
  116.     void ToBelowClicked ();
  117.     void ToAboveClicked ();
  118.     void ClearNormalClicked ();
  119.     void FTextureSelChange ();
  120.     void FTextureDblClk ();
  121.     void ClearFloorClicked ();
  122.     void ClearCeilingClicked ();
  123.     void ClearBelowClicked ();
  124.     void ClearAboveClicked ();
  125.     void WTextureSelChange ();
  126.     void WTextureDblClk ();
  127.     void EvLButtonDown (UINT modKeys, TPoint& point);
  128.     void EvLButtonDblClk (UINT modKeys, TPoint& point);
  129. //{{TPreferencesDialogRSP_TBL_END}}
  130. DECLARE_RESPONSE_TABLE(TPreferencesDialog);
  131. };    //{{TPreferencesDialog}}
  132.  
  133.  
  134. #endif                                      // __prefdlg_h sentry.
  135.  
  136.