home *** CD-ROM | disk | FTP | other *** search
/ Instant Doom Levels / Instant.Doom.Levels.-.Level.Master.II.iso / EDITORS / ZIPPED / WSCDEU52.ZIP / INCLUDE / LINEEDIT.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  5KB  |  198 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:         lineedit.h
  24.  
  25.     OVERVIEW
  26.     ========
  27.     Class definition for TLineDefEditDialog (TDialog).
  28. */
  29. #if !defined(__lineedit_h)              // Sentry, use file only if it's not already included.
  30. #define __lineedit_h
  31.  
  32. #ifndef __common_h
  33.     #include "common.h"
  34. #endif
  35.  
  36. #ifndef __objects_h
  37.     #include "objects.h"    // SelPtr
  38. #endif
  39.  
  40. #ifndef __OWL_DIALOG_H
  41.     #include <owl\dialog.h>
  42. #endif
  43.  
  44. #ifndef __OWL_LISTBOX_H
  45.     class _OWLCLASS TListBox;
  46. #endif
  47.  
  48. #ifndef __OWL_STATIC_H
  49.     class _OWLCLASS TStatic;
  50. #endif
  51.  
  52. #ifndef __OWL_EDIT_H
  53.     class _OWLCLASS TEdit;
  54. #endif
  55.  
  56. #ifndef __OWL_RADIOBUT_H
  57.     class _OWLCLASS TRadioButton;
  58. #endif
  59.  
  60. #ifndef __OWL_BUTTON_H
  61.     class _OWLCLASS TButton;
  62. #endif
  63.  
  64. #ifndef __OWL_CHECKBOX_H
  65.     class _OWLCLASS TCheckBox;
  66. #endif
  67.  
  68. #ifndef __levels_h
  69.     #include "levels.h"
  70. #endif
  71.  
  72. #ifndef __cnflddlg_h
  73.     #include "cnflddlg.h"
  74. #endif
  75.  
  76. #ifndef __viewbmp_h
  77.     class TDisplayWallTextureDialog;
  78. #endif
  79.  
  80. #include "lineedit.rh"
  81.  
  82.  
  83. //{{TDialog = TLineDefEditDialog}}
  84.  
  85.  
  86. class TLineDefEditDialog : public TDialog
  87. {
  88. protected:
  89.     SelPtr SelLineDefs;
  90.     int LineDefSet;
  91.     LineDef CurLineDef;
  92.     SideDef CurSD[2];
  93.     char TextureName[9];
  94.     TDisplayWallTextureDialog *pWTextureDialog;
  95.  
  96. protected:
  97.     void InitLineDefSet ();
  98.     void SetLineDefList ();
  99.     void SetTextureList ();
  100.     void SetLineDef ();
  101.     void GetLineDef ();
  102.     void SetSideDef (int sdnum);
  103.     void GetSideDef (int sdnum);
  104.     void SDKillFocus (int sdnum);
  105.     void SDNew (int sdnum);
  106.     void CopySDData (int sdnum, SHORT DestLD, TConfirmLineDefDialogXfer &xfer);
  107.     TStatic *GetPointedStatic (TPoint& point);
  108.     BOOL IsPointInDlgItem (int itemId, TPoint &clientPoint);
  109.  
  110. public:
  111.     TLineDefEditDialog (TWindow* parent, SelPtr Selected, TResId resId = IDD_LINEDEF_EDIT, TModule* module = 0);
  112.     virtual ~TLineDefEditDialog ();
  113.  
  114. //{{TLineDefEditDialogVIRTUAL_BEGIN}}
  115. public:
  116.     virtual void SetupWindow ();
  117. //{{TLineDefEditDialogVIRTUAL_END}}
  118.  
  119. //{{TLineDefEditDialogRSP_TBL_BEGIN}}
  120. protected:
  121.     void CmOk ();
  122.     void CeilingsClicked ();
  123.     void DoorsClicked ();
  124.     void LowerFloorsClicked ();
  125.     void MovingThingsClicked ();
  126.     void RaiseFloorsClicked ();
  127.     void SpecialClicked ();
  128.  
  129.     void SD1Changed ();
  130.     void SD1ClearClicked ();
  131.     void SD1ClearAboveClicked ();
  132.     void SD1ClearBelowClicked ();
  133.     void SD1ClearNormalClicked ();
  134.     void SD1ToAboveClicked ();
  135.     void SD1ToBelowClicked ();
  136.     void SD1ToNormalClicked ();
  137.     void SD1Killfocus ();
  138.     void SD1NewClicked ();
  139.  
  140.     void SD2Change ();
  141.     void SD2ClearAboveClicked ();
  142.     void SD2ClearBelowClicked ();
  143.     void SD2ClearNormalClicked ();
  144.     void SD2ToAboveClicked ();
  145.     void SD2ToBelowClicked ();
  146.     void SD2ToNormalClicked ();
  147.     void SD2Killfocus ();
  148.     void SD2NewClicked ();
  149.  
  150.     void LineDefSelChange ();
  151.     void TextureListDBLClick ();
  152.     void TextureSelchange ();
  153.     void SectorTagNewClicked ();
  154.     void EvSetFocus (HWND hWndLostFocus );
  155.     void EvActivate (UINT active, BOOL minimized, HWND hWndOther );
  156.     void EvLButtonDown (UINT modKeys, TPoint& point);
  157.     void EvLButtonDblClk (UINT modKeys, TPoint& point);
  158. //{{TLineDefEditDialogRSP_TBL_END}}
  159. DECLARE_RESPONSE_TABLE(TLineDefEditDialog);
  160.  
  161. protected:
  162.     TCheckBox *pAboveUnpCheck;
  163.     TCheckBox *pBelowUnpCheck;
  164.     TCheckBox *pBlockSoundCheck;
  165.     TCheckBox *pImpassableCheck;
  166.     TCheckBox *pMonsterCrossCheck;
  167.     TCheckBox *pNotShownCheck;
  168.     TCheckBox *pSecretCheck;
  169.     TCheckBox *pShownCheck;
  170.     TCheckBox *pTwoSidedCheck;
  171.  
  172.     TEdit *pSectorTagEdit;
  173.     TEdit *pVertex1Edit;
  174.     TEdit *pVertex2Edit;
  175.     TEdit *pSDEdit[2];
  176.  
  177.     TEdit *pSDXPosEdit[2];
  178.     TEdit *pSDYPosEdit[2];
  179.     TEdit *pSDSectorEdit[2];
  180.     TStatic *pSDAboveStatic[2];
  181.     TStatic *pSDBelowStatic[2];
  182.     TStatic *pSDNormalStatic[2];
  183.  
  184.     TListBox *pTextureList;
  185.     TListBox *pLineDefList;
  186.  
  187.     TButton *pSDToAbove[2];
  188.     TButton *pSDToBelow[2];
  189.     TButton *pSDToNormal[2];
  190.     TButton *pSDClearAbove[2];
  191.     TButton *pSDClearBelow[2];
  192.     TButton *pSDClearNormal[2];
  193. };    //{{TLineDefEditDialog}}
  194.  
  195.  
  196. #endif                                      // __lineedit_h sentry.
  197.  
  198.