mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 03:40:26 +01:00
97 lines
2.7 KiB
C++
97 lines
2.7 KiB
C++
/* Copyright (c) 2002-2012 Croteam Ltd.
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of version 2 of the GNU General Public License as published by
|
|
the Free Software Foundation
|
|
|
|
|
|
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, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
|
|
|
|
// DlgPgPrimitive.h : header file
|
|
//
|
|
#ifndef DLGPGPRIMITIVE_H
|
|
#define DLGPGPRIMITIVE_H 1
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgPgPrimitive dialog
|
|
|
|
class CDlgPgPrimitive : public CPropertyPage
|
|
{
|
|
DECLARE_DYNCREATE(CDlgPgPrimitive)
|
|
|
|
// Construction
|
|
public:
|
|
CDlgPgPrimitive();
|
|
~CDlgPgPrimitive();
|
|
BOOL OnIdle(LONG lCount);
|
|
void ApplySCGChange();
|
|
|
|
COLOR m_colLastSectorColor;
|
|
COLOR m_colLastPolygonColor;
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDlgPgPrimitive)
|
|
enum { IDD = IDD_PG_PRIMITIVE };
|
|
CPrimitiveHistoryCombo m_comboPrimitiveHistory;
|
|
CComboBox m_comboTopShape;
|
|
CComboBox m_comboBottomShape;
|
|
CColoredButton m_SectorColor;
|
|
CColoredButton m_PolygonColor;
|
|
float m_fHeight;
|
|
float m_fLenght;
|
|
float m_fWidth;
|
|
float m_fEdit1;
|
|
float m_fEdit2;
|
|
float m_fEdit3;
|
|
float m_fEdit4;
|
|
float m_fEdit5;
|
|
BOOL m_bIfRoom;
|
|
BOOL m_bIfSpiral;
|
|
BOOL m_bIfOuter;
|
|
CString m_strDisplacePicture;
|
|
BOOL m_bAutoCreateMipBrushes;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generate virtual function overrides
|
|
//{{AFX_VIRTUAL(CDlgPgPrimitive)
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDlgPgPrimitive)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSelchangeBottomShape();
|
|
afx_msg void OnSelchangeTopShape();
|
|
afx_msg void OnIfRoom();
|
|
afx_msg void OnIfSpiral();
|
|
afx_msg void OnIfOuter();
|
|
afx_msg void OnSelchangePrimitiveHistory();
|
|
afx_msg void OnDropdownPrimitiveHistory();
|
|
afx_msg void OnDisplaceBrowse();
|
|
afx_msg void OnDisplaceNone();
|
|
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
|
|
afx_msg void OnLoadPrimitiveSettings();
|
|
afx_msg void OnSavePrimitiveSettings();
|
|
afx_msg void OnSaveAsPrimitiveSettings();
|
|
afx_msg void OnResetPrimitive();
|
|
afx_msg void OnDropdownTopShape();
|
|
afx_msg void OnDropdownBottomShape();
|
|
afx_msg void OnAutoCreateMipBrushes();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
};
|
|
#endif // DLGPGPRIMITIVE_H
|