-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// TextureResetDialog.cpp : implementation file\r
-//\r
-\r
-#include "../StdAfx.h"\r
-#include "../bobtoolz.h"\r
-#include "TextureResetDialog.h"\r
-\r
-#ifdef _DEBUG\r
-#define new DEBUG_NEW\r
-#undef THIS_FILE\r
-static char THIS_FILE[] = __FILE__;\r
-#endif\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CTextureResetDialog dialog\r
-\r
-\r
-CTextureResetDialog::CTextureResetDialog(CWnd* pParent /*=NULL*/)\r
- : CDialog(CTextureResetDialog::IDD, pParent)\r
-{\r
- //{{AFX_DATA_INIT(CTextureResetDialog)\r
- m_bAllTextures = FALSE;\r
- m_TextureName = _T("");\r
- m_nRotation = 0;\r
- m_fScaleHorizontal = 0.5f;\r
- m_fScaleVertical = 0.5f;\r
- m_nShiftHorizontal = 0;\r
- m_nShiftVertical = 0;\r
- m_bOnlyTexture = FALSE;\r
- m_NewTextureName = _T("");\r
- //}}AFX_DATA_INIT\r
-}\r
-\r
-\r
-void CTextureResetDialog::DoDataExchange(CDataExchange* pDX)\r
-{\r
- CDialog::DoDataExchange(pDX);\r
- //{{AFX_DATA_MAP(CTextureResetDialog)\r
- DDX_Check(pDX, IDC_ALLTEXTURES_CHECK, m_bAllTextures);\r
- DDX_Text(pDX, IDC_RESET_TEXTURE_EDIT, m_TextureName);\r
- DDV_MaxChars(pDX, m_TextureName, 256);\r
- DDX_Text(pDX, IDC_ROTATION_EDIT, m_nRotation);\r
- DDV_MinMaxInt(pDX, m_nRotation, 0, 360);\r
- DDX_Text(pDX, IDC_SCL_HOR_EDIT, m_fScaleHorizontal);\r
- DDX_Text(pDX, IDC_SCL_VERT_EDIT, m_fScaleVertical);\r
- DDX_Text(pDX, IDC_SHFT_HOR_EDIT, m_nShiftHorizontal);\r
- DDX_Text(pDX, IDC_SHFT_VER_EDIT, m_nShiftVertical);\r
- DDX_Check(pDX, IDC_ONLYTEXTURE_CHECK, m_bOnlyTexture);\r
- DDX_Text(pDX, IDC_RESET_NEW_TEXTURE_EDIT, m_NewTextureName);\r
- DDV_MaxChars(pDX, m_NewTextureName, 256);\r
- //}}AFX_DATA_MAP\r
-}\r
-\r
-\r
-BEGIN_MESSAGE_MAP(CTextureResetDialog, CDialog)\r
- //{{AFX_MSG_MAP(CTextureResetDialog)\r
- // NOTE: the ClassWizard will add message map macros here\r
- //}}AFX_MSG_MAP\r
-END_MESSAGE_MAP()\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CTextureResetDialog message handlers\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// TextureResetDialog.cpp : implementation file
+//
+
+#include "../StdAfx.h"
+#include "../bobtoolz.h"
+#include "TextureResetDialog.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+// CTextureResetDialog dialog
+
+
+CTextureResetDialog::CTextureResetDialog(CWnd* pParent /*=NULL*/)
+ : CDialog(CTextureResetDialog::IDD, pParent)
+{
+ //{{AFX_DATA_INIT(CTextureResetDialog)
+ m_bAllTextures = FALSE;
+ m_TextureName = _T("");
+ m_nRotation = 0;
+ m_fScaleHorizontal = 0.5f;
+ m_fScaleVertical = 0.5f;
+ m_nShiftHorizontal = 0;
+ m_nShiftVertical = 0;
+ m_bOnlyTexture = FALSE;
+ m_NewTextureName = _T("");
+ //}}AFX_DATA_INIT
+}
+
+
+void CTextureResetDialog::DoDataExchange(CDataExchange* pDX)
+{
+ CDialog::DoDataExchange(pDX);
+ //{{AFX_DATA_MAP(CTextureResetDialog)
+ DDX_Check(pDX, IDC_ALLTEXTURES_CHECK, m_bAllTextures);
+ DDX_Text(pDX, IDC_RESET_TEXTURE_EDIT, m_TextureName);
+ DDV_MaxChars(pDX, m_TextureName, 256);
+ DDX_Text(pDX, IDC_ROTATION_EDIT, m_nRotation);
+ DDV_MinMaxInt(pDX, m_nRotation, 0, 360);
+ DDX_Text(pDX, IDC_SCL_HOR_EDIT, m_fScaleHorizontal);
+ DDX_Text(pDX, IDC_SCL_VERT_EDIT, m_fScaleVertical);
+ DDX_Text(pDX, IDC_SHFT_HOR_EDIT, m_nShiftHorizontal);
+ DDX_Text(pDX, IDC_SHFT_VER_EDIT, m_nShiftVertical);
+ DDX_Check(pDX, IDC_ONLYTEXTURE_CHECK, m_bOnlyTexture);
+ DDX_Text(pDX, IDC_RESET_NEW_TEXTURE_EDIT, m_NewTextureName);
+ DDV_MaxChars(pDX, m_NewTextureName, 256);
+ //}}AFX_DATA_MAP
+}
+
+
+BEGIN_MESSAGE_MAP(CTextureResetDialog, CDialog)
+ //{{AFX_MSG_MAP(CTextureResetDialog)
+ // NOTE: the ClassWizard will add message map macros here
+ //}}AFX_MSG_MAP
+END_MESSAGE_MAP()
+
+/////////////////////////////////////////////////////////////////////////////
+// CTextureResetDialog message handlers