72 lines
2.2 KiB
C++
72 lines
2.2 KiB
C++
#if !defined(AFX_DIAMAIN_HPP__E87DBD39_F2A9_11D0_9846_00609736738F__INCLUDED_)
|
|
#define AFX_DIAMAIN_HPP__E87DBD39_F2A9_11D0_9846_00609736738F__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
// diamain.hpp : header file
|
|
//
|
|
|
|
#include "matres.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// DiaMain dialog
|
|
|
|
class DiaMain : public CFormView
|
|
{
|
|
//ANNECY Shaitan DisableFunctions (16/04/98) {
|
|
private:
|
|
BOOL m_bCommonFile;
|
|
//ENDANNECY Shaitan DisableFunctions }
|
|
// Construction
|
|
public:
|
|
DiaMain(); // standard constructor
|
|
DECLARE_DYNCREATE(DiaMain)
|
|
void m_fn_vShowMaterial(GMT_tdxHandleToGameMaterial _hMat);
|
|
CPA_FileObject *m_p_oGetCurrentFileObject();
|
|
void m_vRemoveFile(CPA_FileObject *_p_oFileObject);
|
|
void m_vAddFile(CPA_FileObject *_p_oFileObject);
|
|
void m_vSelectFileOfMaterial(tdoEditorGameMaterial *_p_oGameMaterial);
|
|
void m_vGetListOfFilesToPurge(CPA_List<CPA_FileObject> *p_oListToFill);
|
|
void m_vReflectFileSelectionChange();
|
|
void m_vUpdatePurgeStatus(short _wFileIndex = CB_ERR);
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(DiaMain)
|
|
enum { IDD = IDD_MAIN_DIALOG };
|
|
// NOTE: the ClassWizard will add data members here
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(DiaMain)
|
|
public:
|
|
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
virtual int OnToolHitTest( CPoint point, TOOLINFO* pTI ) const;
|
|
short m_wLastSelectedFileIndex;
|
|
// Generated message map functions
|
|
//{{AFX_MSG(DiaMain)
|
|
afx_msg void OnButtonNew();
|
|
afx_msg void OnButtonCopy();
|
|
afx_msg void OnButtonDelete();
|
|
afx_msg void OnButtonLoadGMT();
|
|
afx_msg void OnButtonUnLoadGMT();
|
|
afx_msg void OnChangeEditName();
|
|
afx_msg void OnComboFileSelChange();
|
|
afx_msg void OnButtonPurge();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DIAMAIN_HPP__E87DBD39_F2A9_11D0_9846_00609736738F__INCLUDED_)
|