FS2_Open
Open source remastering of the Freespace 2 engine
shiptexturesdlg.h
Go to the documentation of this file.
1 // ShipTexturesDlg.h : header file
2 // Goober5000
3 
4 #include "Management.h"
5 
6 #ifndef _SHIPTEXTURESDLG_H
7 #define _SHIPTEXTURESDLG_H
8 
9 #define SORT_OLD 0
10 #define SORT_NEW 1
11 
13 // CShipTexturesDlg dialog
14 
15 class CShipTexturesDlg : public CDialog
16 {
17 // Construction
18 public:
19  CShipTexturesDlg(CWnd* pParent = NULL); // standard constructor
20 
21  int self_ship;
23  int modified;
25 
26 // Dialog Data
27  //{{AFX_DATA(CShipTexturesDlg)
28  enum { IDD = IDD_SHIP_TEXTURES };
29  CString m_new_texture;
31  //}}AFX_DATA
32 
33 
34 // Overrides
35  // ClassWizard generated virtual function overrides
36  //{{AFX_VIRTUAL(CShipTexturesDlg)
37  public:
38  virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
39  protected:
40  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
41  //}}AFX_VIRTUAL
42 
43 // Implementation
44 protected:
45 
46  // Generated message map functions
47  //{{AFX_MSG(CShipTexturesDlg)
48  virtual void OnOK();
49  virtual BOOL OnInitDialog();
50  afx_msg void OnClose();
51  afx_msg void OnSelchangeOldTextureList();
52  //}}AFX_MSG
53  DECLARE_MESSAGE_MAP()
54 
55 private:
56  int num_model_textures;
57  char old_texture_name[MAX_REPLACEMENT_TEXTURES][MAX_FILENAME_LEN];
58  char new_texture_name[MAX_REPLACEMENT_TEXTURES][MAX_FILENAME_LEN];
59  int query_modified();
60  void sort_textures(int test = SORT_OLD);
61  void swap_strings(char *str1, char *str2);
62  texture_replace *texture_set(texture_replace *dest, const texture_replace *src);
63 };
64 
65 //{{AFX_INSERT_LOCATION(CShipTexturesDlg)
66 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
67 //}}AFX_INSERT_LOCATION
68 
69 #endif
#define MAX_FILENAME_LEN
Definition: pstypes.h:324
afx_msg void OnSelchangeOldTextureList()
afx_msg void OnClose()
CShipTexturesDlg(CWnd *pParent=NULL)
#define IDD_SHIP_TEXTURES
Definition: resource.h:98
unsigned int UINT
Definition: config.h:82
#define SORT_OLD
virtual void DoDataExchange(CDataExchange *pDX)
virtual void OnOK()
unsigned long DWORD
Definition: config.h:90
int BOOL
Definition: config.h:80
#define MAX_REPLACEMENT_TEXTURES
Definition: model.h:690
GLenum src
Definition: Glext.h:5917
virtual BOOL OnInitDialog()
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID, CCreateContext *pContext=NULL)