Debian Codegraph @

editor/DoorwayDialog.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 // DoorwayDialog.h : header file
20 //
21
22 #include "KeypadDialog.h"
23 #include "gr.h"
24 #include "doorway.h"
25
26 /////////////////////////////////////////////////////////////////////////////
27 // CDoorwayDialog dialog
28
29 class CDoorwayDialog : public CKeypadDialog {
30 // Construction
31 public:
32 CDoorwayDialog(CWnd *pParent = NULL); // standard constructor
33 void UpdateKeypad(int mask);
34
35 // Dialog Data
36 //{{AFX_DATA(CDoorwayDialog)
37 enum { IDD = IDD_DOORWAYKEYPAD };
38 // NOTE: the ClassWizard will add data members here
39 //}}AFX_DATA
40
41 // Overrides
42 // ClassWizard generated virtual function overrides
43 //{{AFX_VIRTUAL(CDoorwayDialog)
44 protected:
45 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
46 //}}AFX_VIRTUAL
47
48 // Implementation
49 protected:
50 // Generated message map functions
51 //{{AFX_MSG(CDoorwayDialog)
52 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
53 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
54 afx_msg void OnSize(UINT nType, int cx, int cy);
55 afx_msg void OnPaint();
56 virtual BOOL OnInitDialog();
57 afx_msg void OnDoorwayPlaceDoorway();
58 afx_msg void OnNextDoor();
59 afx_msg void OnPrevDoor();
60 afx_msg void OnDoorwayLocked();
61 afx_msg void OnKey1Check();
62 afx_msg void OnKey2Check();
63 afx_msg void OnKey3Check();
64 afx_msg void OnKey4Check();
65 afx_msg void OnKey5Check();
66 afx_msg void OnKey6Check();
67 afx_msg void OnKey7Check();
68 afx_msg void OnKey8Check();
69 afx_msg void OnDoorwayAttachDoor();
70 afx_msg void OnDoorwayAuto();
71 afx_msg void OnKillfocusDoorwayPosEdit();
72 afx_msg void OnKillfocusDoorwayHitpointEdit();
73 afx_msg void OnDoorwayKeyAll();
74 afx_msg void OnDoorwayKeyOnlyOne();
75 afx_msg void OnDoorwayGBIgnoreLocked();
76 //}}AFX_MSG
77 DECLARE_MESSAGE_MAP()
78
79 virtual void OnOK(); // prevent edit controls from closing this window
80
81 private:
82 void UpdateDialog();
83 void DrawDoorwayDoorPic(); // draws a 3d door in the selection box.
84 void EnableCurrentItems(bool state);
85 void OnKeyCheck(int id, int keynum);
86
87 grHardwareSurface m_DoorSurf; // surface for door display
88 };