DlgCreateEffectTexture.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #if !defined(AFX_DLGCREATEEFFECTTEXTURE_H__C517CED4_FA6C_11D1_82E9_000000000000__INCLUDED_)
  13. #define AFX_DLGCREATEEFFECTTEXTURE_H__C517CED4_FA6C_11D1_82E9_000000000000__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // DlgCreateEffectTexture.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDlgCreateEffectTexture dialog
  21. class CDlgCreateEffectTexture : public CDialog
  22. {
  23. // Construction
  24. public:
  25. CDlgCreateEffectTexture(CTFileName fnInputFile=CTString(""),CWnd* pParent = NULL); // standard constructor
  26. ~CDlgCreateEffectTexture(); // standard destructor
  27. void SetNewBaseTexture( CTFileName fnNewBase);
  28. void SelectPixSizeCombo(void);
  29. void InitializeSizeCombo(void);
  30. void InitializeEffectTypeCombo(void);
  31. void CreateTexture( void);
  32. BOOL m_bPreviewWindowsCreated;
  33. MEX m_mexInitialCreatedWidth;
  34. PIX m_pixInitialCreatedWidth;
  35. PIX m_pixInitialCreatedHeight;
  36. CTFileName m_fnCreatedTextureName;
  37. CWndDisplayTexture m_wndViewCreatedTexture;
  38. CTextureData m_tdCreated;
  39. // Dialog Data
  40. //{{AFX_DATA(CDlgCreateEffectTexture)
  41. enum { IDD = IDD_CREATE_EFFECT_TEXTURE };
  42. CButton m_ctrlCheckButton;
  43. CComboBox m_ctrlMexSizeCombo;
  44. CComboBox m_ctrlPixWidthCombo;
  45. CComboBox m_ctrlPixHeightCombo;
  46. CComboBox m_ctrlEffectClassCombo;
  47. CComboBox m_ctrlEffectTypeCombo;
  48. CString m_strCreatedTextureName;
  49. CString m_strBaseTextureName;
  50. CString m_strRendSpeed;
  51. //}}AFX_DATA
  52. // Overrides
  53. // ClassWizard generated virtual function overrides
  54. //{{AFX_VIRTUAL(CDlgCreateEffectTexture)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. // Generated message map functions
  61. //{{AFX_MSG(CDlgCreateEffectTexture)
  62. afx_msg void OnPaint();
  63. afx_msg void OnChequeredAlpha();
  64. virtual BOOL OnInitDialog();
  65. afx_msg void OnBrowseBase();
  66. afx_msg void OnCreateAs();
  67. afx_msg void OnRemoveAllEffects();
  68. afx_msg void OnSelchangePixHeight();
  69. afx_msg void OnSelchangePixWidth();
  70. afx_msg void OnSelchangeMexSize();
  71. afx_msg void OnCreate();
  72. afx_msg void OnSelchangeEffectClass();
  73. afx_msg void OnSelchangeEffectType();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_DLGCREATEEFFECTTEXTURE_H__C517CED4_FA6C_11D1_82E9_000000000000__INCLUDED_)