Descent3/editor/DoorwayDialog.h

89 lines
2.8 KiB
C
Raw Normal View History

/*
2024-06-15 18:12:48 +00:00
* Descent 3
* Copyright (C) 2024 Parallax Software
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// DoorwayDialog.h : header file
//
#include "KeypadDialog.h"
#include "gr.h"
#include "doorway.h"
/////////////////////////////////////////////////////////////////////////////
// CDoorwayDialog dialog
2024-06-15 18:12:48 +00:00
class CDoorwayDialog : public CKeypadDialog {
// Construction
public:
2024-06-15 18:12:48 +00:00
CDoorwayDialog(CWnd *pParent = NULL); // standard constructor
void UpdateKeypad(int mask);
2024-06-15 18:12:48 +00:00
// Dialog Data
//{{AFX_DATA(CDoorwayDialog)
enum { IDD = IDD_DOORWAYKEYPAD };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
2024-06-15 18:12:48 +00:00
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDoorwayDialog)
protected:
2024-06-15 18:12:48 +00:00
virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
//}}AFX_VIRTUAL
2024-06-15 18:12:48 +00:00
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDoorwayDialog)
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
virtual BOOL OnInitDialog();
afx_msg void OnDoorwayPlaceDoorway();
afx_msg void OnNextDoor();
afx_msg void OnPrevDoor();
afx_msg void OnDoorwayLocked();
afx_msg void OnKey1Check();
afx_msg void OnKey2Check();
afx_msg void OnKey3Check();
afx_msg void OnKey4Check();
afx_msg void OnKey5Check();
afx_msg void OnKey6Check();
afx_msg void OnKey7Check();
afx_msg void OnKey8Check();
afx_msg void OnDoorwayAttachDoor();
afx_msg void OnDoorwayAuto();
afx_msg void OnKillfocusDoorwayPosEdit();
afx_msg void OnKillfocusDoorwayHitpointEdit();
afx_msg void OnDoorwayKeyAll();
afx_msg void OnDoorwayKeyOnlyOne();
afx_msg void OnDoorwayGBIgnoreLocked();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
2024-06-15 18:12:48 +00:00
virtual void OnOK(); // prevent edit controls from closing this window
private:
2024-06-15 18:12:48 +00:00
void UpdateDialog();
void DrawDoorwayDoorPic(); // draws a 3d door in the selection box.
void EnableCurrentItems(bool state);
void OnKeyCheck(int id, int keynum);
2024-06-15 18:12:48 +00:00
grHardwareSurface m_DoorSurf; // surface for door display
};