* Remove unused window CSnapPrefs or IDD_OBJECTPREFS

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2361 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-08-08 19:45:37 +00:00
parent 9d148e7f8b
commit 0397a75255
4 changed files with 0 additions and 289 deletions

View File

@ -394,10 +394,6 @@ SOURCE=.\savesegmentdialog.hpp
# End Source File
# Begin Source File
SOURCE=.\snapprefs.h
# End Source File
# Begin Source File
SOURCE=.\stdafx.h
# End Source File
# Begin Source File

View File

@ -834,44 +834,6 @@ BEGIN
LTEXT "Scale Heights (1-64)",IDC_STATIC,27,35,71,12
END
IDD_OBJECTPREFS DIALOG DISCARDABLE 0, 0, 358, 375
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Object Snap Preferences"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,114,328,50,14
PUSHBUTTON "Cancel",IDCANCEL,194,328,50,14
CONTROL "Custom",IDC_SNAPCUSTOM,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,34,45,41,8
CONTROL "No Snap",IDC_SNAPNONE,"Button",BS_AUTORADIOBUTTON,34,
103,55,8
CONTROL "Tile Center",IDC_SNAPTCEN,"Button",BS_AUTORADIOBUTTON,
34,116,55,8
CONTROL "Tile Top Left",IDC_SNAPTL,"Button",BS_AUTORADIOBUTTON,
34,129,61,8
CONTROL "Tile Top Right",IDC_SNAPTR,"Button",BS_AUTORADIOBUTTON,
34,142,70,8
CONTROL "Tile Bottom Left",IDC_SNAPBL,"Button",
BS_AUTORADIOBUTTON,34,156,73,8
CONTROL "Tile Bottom Right",IDC_SNAPBR,"Button",
BS_AUTORADIOBUTTON,34,171,73,8
CONTROL "Tile Quadrant",IDC_SNAPQUAD,"Button",BS_AUTORADIOBUTTON,
34,184,73,8
EDITTEXT IDC_SNAPCUSTOMX,135,44,27,12,ES_AUTOHSCROLL | ES_NUMBER
EDITTEXT IDC_SNAPCUSTOMZ,135,62,27,12,ES_AUTOHSCROLL | ES_NUMBER
LTEXT "X Spacing",IDC_STATIC,83,45,41,11
LTEXT "Z Spacing",IDC_STATIC,83,62,40,11
GROUPBOX "Custom Snap",IDC_STATIC,30,34,137,50
GROUPBOX "Auto Snap",IDC_STATIC,30,89,138,128
GROUPBOX "Gravity",IDC_STATIC,30,231,138,36
CONTROL "Enabled",IDC_ENABLEDGRAVITY,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,36,246,67,10
GROUPBOX "Position",IDC_STATIC,24,21,152,290
GROUPBOX "Rotation",IDC_STATIC,200,21,132,60
EDITTEXT IDC_ROTSNAP,282,33,27,12,ES_AUTOHSCROLL | ES_NUMBER
LTEXT "Angle Snap",IDC_STATIC,225,33,44,12
END
IDD_EDITSTATS DIALOG DISCARDABLE 0, 0, 287, 319
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Stats"
@ -1172,14 +1134,6 @@ BEGIN
BOTTOMMARGIN, 88
END
IDD_OBJECTPREFS, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 351
TOPMARGIN, 7
BOTTOMMARGIN, 368
END
IDD_EDITSTATS, DIALOG
BEGIN
LEFTMARGIN, 6
@ -1276,14 +1230,6 @@ BEGIN
BOTTOMMARGIN, 253
END
IDD_DEBUGINFO, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 459
TOPMARGIN, 7
BOTTOMMARGIN, 288
END
IDD_PASTEPREFS, DIALOG
BEGIN
LEFTMARGIN, 7

View File

@ -1,137 +0,0 @@
/*
This file is part of Warzone 2100.
Copyright (C) 1999-2004 Eidos Interactive
Copyright (C) 2005-2007 Warzone Resurrection Project
Warzone 2100 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 2 of the License, or
(at your option) any later version.
Warzone 2100 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 Warzone 2100; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
$Revision$
$Id$
$HeadURL$
*/
// SnapPrefs.cpp : implementation file
//
#include "stdafx.h"
#include "btedit.h"
#include "snapprefs.h"
//#include "datatypes.h"
/////////////////////////////////////////////////////////////////////////////
// CSnapPrefs dialog
CSnapPrefs::CSnapPrefs(CWnd* pParent /*=NULL*/)
: CDialog(CSnapPrefs::IDD, pParent)
{
//{{AFX_DATA_INIT(CSnapPrefs)
m_EnableGravity = FALSE;
m_SnapX = 0;
m_SnapZ = 0;
m_SnapMode = 0;
m_RotSnap = 0;
//}}AFX_DATA_INIT
}
void CSnapPrefs::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
// Check = m_SnapMode==SNAP_NONE ? TRUE : FALSE;
// DDX_Check(pDX, IDC_SNAPNONE, Check);
// Check = m_SnapMode==SNAP_CENTER ? TRUE : FALSE;
// DDX_Check(pDX, IDC_SNAPTCEN, Check);
// Check = m_SnapMode==SNAP_TOPLEFT ? TRUE : FALSE;
// DDX_Check(pDX, IDC_SNAPTL, Check);
// Check = m_SnapMode==SNAP_TOPRIGHT ? TRUE : FALSE;
// DDX_Check(pDX, IDC_SNAPTR, Check);
// Check = m_SnapMode==SNAP_BOTTOMLEFT ? TRUE : FALSE;
// DDX_Check(pDX, IDC_SNAPBL, Check);
// Check = m_SnapMode==SNAP_BOTTOMRIGHT ? TRUE : FALSE;
// DDX_Check(pDX, IDC_SNAPBR, Check);
// Check = m_SnapMode==SNAP_CUSTOM ? TRUE : FALSE;
// DDX_Check(pDX, IDC_SNAPCUSTOM, Check);
// Check = m_SnapMode==SNAP_QUAD ? TRUE : FALSE;
// DDX_Check(pDX, IDC_SNAPQUAD, Check);
//{{AFX_DATA_MAP(CSnapPrefs)
DDX_Check(pDX, IDC_ENABLEDGRAVITY, m_EnableGravity);
DDX_Text(pDX, IDC_SNAPCUSTOMX, m_SnapX);
DDV_MinMaxDWord(pDX, m_SnapX, 1, 9999);
DDX_Text(pDX, IDC_SNAPCUSTOMZ, m_SnapZ);
DDV_MinMaxDWord(pDX, m_SnapZ, 1, 9999);
DDX_Text(pDX, IDC_ROTSNAP, m_RotSnap);
DDV_MinMaxDWord(pDX, m_RotSnap, 1, 360);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSnapPrefs, CDialog)
//{{AFX_MSG_MAP(CSnapPrefs)
ON_BN_CLICKED(IDC_SNAPNONE, OnSnapnone)
ON_BN_CLICKED(IDC_SNAPTCEN, OnSnaptcen)
ON_BN_CLICKED(IDC_SNAPTL, OnSnaptl)
ON_BN_CLICKED(IDC_SNAPTR, OnSnaptr)
ON_BN_CLICKED(IDC_SNAPBL, OnSnapbl)
ON_BN_CLICKED(IDC_SNAPBR, OnSnapbr)
ON_BN_CLICKED(IDC_SNAPCUSTOM, OnSnapcustom)
ON_BN_CLICKED(IDC_SNAPQUAD, OnSnapquad)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSnapPrefs message handlers
void CSnapPrefs::OnSnapnone()
{
// m_SnapMode = SNAP_NONE;
}
void CSnapPrefs::OnSnaptcen()
{
// m_SnapMode = SNAP_CENTER;
}
void CSnapPrefs::OnSnaptl()
{
// m_SnapMode = SNAP_TOPLEFT;
}
void CSnapPrefs::OnSnaptr()
{
// m_SnapMode = SNAP_TOPRIGHT;
}
void CSnapPrefs::OnSnapbl()
{
// m_SnapMode = SNAP_BOTTOMLEFT;
}
void CSnapPrefs::OnSnapbr()
{
// m_SnapMode = SNAP_BOTTOMRIGHT;
}
void CSnapPrefs::OnSnapcustom()
{
// m_SnapMode = SNAP_CUSTOM;
}
void CSnapPrefs::OnSnapquad()
{
// m_SnapMode = SNAP_QUAD;
}

View File

@ -1,94 +0,0 @@
/*
This file is part of Warzone 2100.
Copyright (C) 1999-2004 Eidos Interactive
Copyright (C) 2005-2007 Warzone Resurrection Project
Warzone 2100 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 2 of the License, or
(at your option) any later version.
Warzone 2100 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 Warzone 2100; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
$Revision$
$Id$
$HeadURL$
*/
// SnapPrefs.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSnapPrefs dialog
// Possible values for SnapMode.
//enum {
// SD_SNAPNONE,
// SD_SNAPCENTER,
// SD_SNAPTOPLEFT,
// SD_SNAPTOPRIGHT,
// SD_SNAPBOTTOMLEFT,
// SD_SNAPBOTTOMRIGHT,
// SD_SNAPQUAD,
// SD_SNAPCUSTOM,
//};
class CSnapPrefs : public CDialog
{
// Construction
public:
CSnapPrefs(CWnd* pParent = NULL); // standard constructor
void SetGravity(BOOL EnableGravity) { m_EnableGravity = EnableGravity; }
void SetSnapMode(DWORD SnapMode) { m_SnapMode = SnapMode; }
void SetSnapX(DWORD SnapX) { m_SnapX = SnapX; }
void SetSnapZ(DWORD SnapZ) { m_SnapZ = SnapZ; }
void SetRotSnap(DWORD RotSnap) { m_RotSnap = RotSnap; }
BOOL GetGravity(void) { return m_EnableGravity; }
DWORD GetSnapMode(void) { return m_SnapMode; }
DWORD GetSnapX(void) { return m_SnapX; }
DWORD GetSnapZ(void) { return m_SnapZ; }
DWORD GetRotSnap(void) { return m_RotSnap; }
// Dialog Data
//{{AFX_DATA(CSnapPrefs)
enum { IDD = IDD_OBJECTPREFS };
BOOL m_EnableGravity;
DWORD m_SnapX;
DWORD m_SnapZ;
DWORD m_RotSnap;
//}}AFX_DATA
DWORD m_SnapMode;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSnapPrefs)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSnapPrefs)
afx_msg void OnSnapnone();
afx_msg void OnSnaptcen();
afx_msg void OnSnaptl();
afx_msg void OnSnaptr();
afx_msg void OnSnapbl();
afx_msg void OnSnapbr();
afx_msg void OnSnapcustom();
afx_msg void OnSnapquad();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};