2 BobToolz plugin for GtkRadiant
3 Copyright (C) 2001 Gordon Biggans
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library 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 GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // TextureResetDialog.cpp : implementation file
23 #include "../StdAfx.h"
24 #include "../bobtoolz.h"
25 #include "TextureResetDialog.h"
27 /////////////////////////////////////////////////////////////////////////////
28 // CTextureResetDialog dialog
31 CTextureResetDialog::CTextureResetDialog(CWnd *pParent /*=NULL*/ )
32 : CDialog(CTextureResetDialog::IDD, pParent)
34 //{{AFX_DATA_INIT(CTextureResetDialog)
35 m_bAllTextures = FALSE;
36 m_TextureName = _T("");
38 m_fScaleHorizontal = 0.5f;
39 m_fScaleVertical = 0.5f;
40 m_nShiftHorizontal = 0;
42 m_bOnlyTexture = FALSE;
43 m_NewTextureName = _T("");
48 void CTextureResetDialog::DoDataExchange(CDataExchange *pDX)
50 CDialog::DoDataExchange(pDX);
51 //{{AFX_DATA_MAP(CTextureResetDialog)
52 DDX_Check(pDX, IDC_ALLTEXTURES_CHECK, m_bAllTextures);
53 DDX_Text(pDX, IDC_RESET_TEXTURE_EDIT, m_TextureName);
54 DDV_MaxChars(pDX, m_TextureName, 256);
55 DDX_Text(pDX, IDC_ROTATION_EDIT, m_nRotation);
56 DDV_MinMaxInt(pDX, m_nRotation, 0, 360);
57 DDX_Text(pDX, IDC_SCL_HOR_EDIT, m_fScaleHorizontal);
58 DDX_Text(pDX, IDC_SCL_VERT_EDIT, m_fScaleVertical);
59 DDX_Text(pDX, IDC_SHFT_HOR_EDIT, m_nShiftHorizontal);
60 DDX_Text(pDX, IDC_SHFT_VER_EDIT, m_nShiftVertical);
61 DDX_Check(pDX, IDC_ONLYTEXTURE_CHECK, m_bOnlyTexture);
62 DDX_Text(pDX, IDC_RESET_NEW_TEXTURE_EDIT, m_NewTextureName);
63 DDV_MaxChars(pDX, m_NewTextureName, 256);
68 BEGIN_MESSAGE_MAP( CTextureResetDialog, CDialog
71 //{{AFX_MSG_MAP(CTextureResetDialog)
72 // NOTE: the ClassWizard will add message map macros here
76 /////////////////////////////////////////////////////////////////////////////
77 // CTextureResetDialog message handlers