Debian Codegraph @

editor/MegacellDialog.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 // MegacellDialog.h : header file
20 //
21
22 #include "gr.h"
23
24 /////////////////////////////////////////////////////////////////////////////
25 // CMegacellDialog dialog
26
27 class CMegacellDialog : public CDialog {
28 // Construction
29 public:
30 CMegacellDialog(CWnd *pParent = NULL); // standard constructor
31
32 // Dialog Data
33 //{{AFX_DATA(CMegacellDialog)
34 enum { IDD = IDD_MEGACELL };
35 // NOTE: the ClassWizard will add data members here
36 //}}AFX_DATA
37
38 // Overrides
39 // ClassWizard generated virtual function overrides
40 //{{AFX_VIRTUAL(CMegacellDialog)
41 public:
42 virtual BOOL DestroyWindow();
43
44 protected:
45 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
46 //}}AFX_VIRTUAL
47
48 // Implementation
49
50 private:
51 void SaveMegacellsOnClose();
52 void UpdateDialog();
53 void UpdateTextureView();
54 void UpdateMegacellView();
55 void TextureListUp(int);
56 void TextureListDown(int);
57 void CheckinTexture(int n, int tracklock_num);
58
59 grHardwareSurface m_TextureSurf;
60 int m_TexStart; // Start of texture list.
61 int m_TexListPos; // Current position of textture list.
62 int m_TexPageLen; // length of one view of textures in listbox
63 bool m_RedrawListbox;
64 int m_CheckX, m_CheckY, m_CheckForTextureList;
65
66 protected:
67 // Generated message map functions
68 //{{AFX_MSG(CMegacellDialog)
69 afx_msg void OnNewMegacell();
70 afx_msg void OnLockMegacell();
71 afx_msg void OnCheckinMegacell();
72 afx_msg void OnDeleteMegacell();
73 afx_msg void OnNextMegacell();
74 afx_msg void OnPreviousMegacell();
75 afx_msg void OnSelendokMegacellPulldown();
76 afx_msg void OnMegacellsOut();
77 afx_msg void OnKillfocusMegacellNameEdit();
78 afx_msg void OnKillfocusMegaWidthEdit();
79 afx_msg void OnKillfocusMegaHeightEdit();
80 virtual BOOL OnInitDialog();
81 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
82 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
83 afx_msg void OnPaint();
84 afx_msg void OnRemapMegacell();
85 afx_msg void OnRotateMegacell();
86 afx_msg void OnCopyMegacell();
87 afx_msg void OnPasteMegacell();
88 afx_msg void OnImportTiny();
89 afx_msg BOOL OnHelpInfo(HELPINFO *pHelpInfo);
90 afx_msg void OnImportSky();
91 afx_msg void OnImportSkyBand();
92 //}}AFX_MSG
93 DECLARE_MESSAGE_MAP()
94 };