BuildingSettingsDlg.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //===========================================================================//
  2. // Copyright (C) Microsoft Corporation. All rights reserved. //
  3. //===========================================================================//
  4. #if !defined(AFX_BUILDINGSETTINGSDLG_H__66842972_D1C0_48E8_8DF6_930ED43A3896__INCLUDED_)
  5. #define AFX_BUILDINGSETTINGSDLG_H__66842972_D1C0_48E8_8DF6_930ED43A3896__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. // BuildingSettingsDlg.h : header file
  10. //
  11. /////////////////////////////////////////////////////////////////////////////
  12. // BuildingSettingsDlg dialog
  13. #include "EList.h"
  14. #include "Action.h"
  15. class EditorObject;
  16. class BuildingSettingsDlg : public CDialog
  17. {
  18. public:
  19. BuildingSettingsDlg(EList<EditorObject*, EditorObject*>&, ActionUndoMgr &undoMgr); // standard constructor
  20. //{{AFX_DATA(BuildingSettingsDlg)
  21. enum { IDD = IDD_BUILDINGSETTINGS };
  22. CComboBox m_Mech;
  23. CComboBox m_Group;
  24. int m_Alignment;
  25. float m_x;
  26. float m_y;
  27. int m_partID;
  28. CString m_forestName;
  29. //}}AFX_DATA
  30. //{{AFX_VIRTUAL(BuildingSettingsDlg)
  31. protected:
  32. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. protected:
  36. void DoColorBox( CWnd* pWnd );
  37. //{{AFX_MSG(BuildingSettingsDlg)
  38. afx_msg void OnSelchangeGroup();
  39. virtual void OnOK();
  40. virtual BOOL OnInitDialog();
  41. afx_msg void OnSelchangeMech();
  42. virtual void OnCancel();
  43. //}}AFX_MSG
  44. DECLARE_MESSAGE_MAP()
  45. void applyChanges();
  46. ModifyBuildingAction *pAction;
  47. typedef EList< EditorObject*, EditorObject* > EDITOROBJECT_LIST;
  48. EDITOROBJECT_LIST& units;
  49. void updateMemberVariables();
  50. ActionUndoMgr *pUndoMgr;
  51. };
  52. //{{AFX_INSERT_LOCATION}}
  53. #endif // !defined(AFX_BUILDINGSETTINGSDLG_H__66842972_D1C0_48E8_8DF6_930ED43A3896__INCLUDED_)