Debian Codegraph @

editor/MegacellKeypad.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 // MegacellKeypad.h : header file
20 //
21
22 #include "gr.h"
23 #include "KeypadDialog.h"
24
25 /////////////////////////////////////////////////////////////////////////////
26 // CMegacellKeypad dialog
27
28 class CMegacellKeypad : public CKeypadDialog {
29 // Construction
30 public:
31 CMegacellKeypad(CWnd *pParent = NULL); // standard constructor
32
33 // Dialog Data
34 //{{AFX_DATA(CMegacellKeypad)
35 enum { IDD = IDD_MEGAKEYPAD };
36 // NOTE: the ClassWizard will add data members here
37 //}}AFX_DATA
38
39 // Overrides
40 // ClassWizard generated virtual function overrides
41 //{{AFX_VIRTUAL(CMegacellKeypad)
42 protected:
43 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
44 //}}AFX_VIRTUAL
45
46 // Implementation
47 protected:
48 // Generated message map functions
49 //{{AFX_MSG(CMegacellKeypad)
50 afx_msg void OnDestroy();
51 virtual BOOL OnInitDialog();
52 afx_msg void OnSize(UINT nType, int cx, int cy);
53 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
54 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
55 afx_msg void OnNextMegaSet();
56 afx_msg void OnPrevMegaSet();
57 afx_msg void OnPaint();
58 afx_msg void OnFillWithMegacell();
59 afx_msg void OnRandomizeMegacellCheck();
60 afx_msg void OnSelectFromMegacell();
61 afx_msg void OnUnifyMegacell();
62 afx_msg BOOL OnHelpInfo(HELPINFO *pHelpInfo);
63 afx_msg void OnKillfocusXGranularEdit();
64 afx_msg void OnKillfocusYGranularEdit();
65 afx_msg void OnHighlightBorders();
66 afx_msg void OnMegacellSkydome();
67 afx_msg void OnMegacellSkyband();
68 //}}AFX_MSG
69 DECLARE_MESSAGE_MAP()
70
71 private:
72 // loads and saves settings for this keypad
73 void LoadSettings();
74 void SaveSettings();
75
76 void UpdateDialog();
77 void UpdateMegaSetView();
78 grHardwareSurface m_TextureSurf;
79 int m_xgran, m_ygran;
80
81 static int m_Instances; // number of instances of this keypad.
82 };