home *** CD-ROM | disk | FTP | other *** search
/ Instant Doom Levels / Instant.Doom.Levels.-.Level.Master.II.iso / EDITORS / ZIPPED / WSCDEU52.ZIP / INCLUDE / THINGDLG.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  4KB  |  152 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:         thingdlg.h
  24.  
  25.     OVERVIEW
  26.     ========
  27.     Class definition for TThingEditDialog (TViewBitmapDialog).
  28. */
  29. #if !defined(__thingdlg_h)              // Sentry, use file only if it's not already included.
  30. #define __thingdlg_h
  31.  
  32. #ifndef __common_h
  33.     #include "common.h"
  34. #endif
  35.  
  36. #ifndef __viewbmp_h
  37.     #include "viewbmp.h"
  38. #endif
  39.  
  40. #ifndef __OWL_LISTBOX_H
  41.     class _OWLCLASS TListBox;
  42. #endif
  43.  
  44. #ifndef __OWL_EDIT_H
  45.     class _OWLCLASS TEdit;
  46. #endif
  47.  
  48. #ifndef __OWL_CHECKBOX_H
  49.     class _OWLCLASS TCheckBox;
  50. #endif
  51.  
  52. #ifndef __OWL_RADIOBUT_H
  53.     class _OWLCLASS TRadioButton;
  54. #endif
  55.  
  56. #ifndef __objects_h
  57.     #include "objects.h"    // SelPtr, Thing
  58. #endif
  59.  
  60. #ifndef __levels_h
  61.     #include "levels.h"
  62. #endif
  63.  
  64. #ifndef __things_h
  65.     #include "things.h"
  66. #endif
  67.  
  68. #include "thingdlg.rh"            // Definition of all resources.
  69.  
  70.  
  71. //{{TDialog = TThingEditDialog}}
  72.  
  73. class TThingEditDialog : public TViewBitmapDialog
  74. {
  75. protected:
  76.     SelPtr SelThings;
  77.     Thing  CurThing;
  78.     int    ThingSet;
  79.     char   PictureName[9];
  80.  
  81. protected:
  82.     virtual void InitBitmapControl ();
  83.     void SetupListBox ();
  84.     void InitThingSet ();
  85.     void GetAngle();
  86.     void SetAngle();
  87.     void GetAppearance();
  88.     void SetAppearance();
  89.  
  90. public:
  91.     TThingEditDialog (TWindow* parent, SelPtr SelectedThinges, TResId resId = IDD_THING_EDIT, TModule* module = 0);
  92.     virtual ~TThingEditDialog ();
  93.  
  94. //{{TThingEditDialogVIRTUAL_BEGIN}}
  95. public:
  96.     virtual void SetupWindow ();
  97. //{{TThingEditDialogVIRTUAL_END}}
  98.  
  99. protected:
  100.     TEdit        *pXPosEdit;
  101.     TEdit        *pYPosEdit;
  102.  
  103.     TRadioButton *pPlayerRadio;
  104.     TRadioButton *pEnemyRadio;
  105.     TRadioButton *pWeaponRadio;
  106.     TRadioButton *pBonusRadio;
  107.     TRadioButton *pKeysRadio;
  108.     TRadioButton *pDecorationRadio;
  109.     TRadioButton *pDeadBodiesRadio;
  110.     TRadioButton *pHangingBodiesRadio;
  111.     TRadioButton *pLightSourcesRadio;
  112.  
  113.     TRadioButton *pAngleERadio;
  114.     TRadioButton *pAngleNRadio;
  115.     TRadioButton *pAngleNERadio;
  116.     TRadioButton *pAngleNWRadio;
  117.     TRadioButton *pAngleSRadio;
  118.     TRadioButton *pAngleSERadio;
  119.     TRadioButton *pAngleSWRadio;
  120.     TRadioButton *pAngleWRadio;
  121.  
  122.     TCheckBox *pDeafCheck;
  123.     TCheckBox *pLevel12Check;
  124.     TCheckBox *pLevel3Check;
  125.     TCheckBox *pLevel45Check;
  126.     TCheckBox *pMultiPlayerCheck;
  127.  
  128.     TListBox *pThingList;
  129.  
  130. //{{TThingEditDialogRSP_TBL_BEGIN}}
  131. protected:
  132.     void CmOk ();
  133.     void PlayerClicked ();
  134.     void EnemyClicked ();
  135.     void WeaponClicked ();
  136.     void BonusClicked ();
  137.     void KeysClicked ();
  138.     void DeadBodiesClicked ();
  139.     void HangingBodiesClicked ();
  140.     void DecorationClicked ();
  141.     void LightSourcesClicked ();
  142.     void ThingSelchange ();
  143.     void ThingListDblclk ();
  144.     void ThingTypeChanged ();
  145. //{{TThingEditDialogRSP_TBL_END}}
  146. DECLARE_RESPONSE_TABLE(TThingEditDialog);
  147. };    //{{TThingEditDialogDialog}}
  148.  
  149.  
  150. #endif                                      // __thingdlg_h sentry.
  151.  
  152.