]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/dialogs/TextureResetDialog.cpp
more eol-style
[xonotic/netradiant.git] / contrib / bobtoolz / dialogs / TextureResetDialog.cpp
1 /*
2 BobToolz plugin for GtkRadiant
3 Copyright (C) 2001 Gordon Biggans
4
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.
9
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.
14
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
18 */
19
20 // TextureResetDialog.cpp : implementation file
21 //
22
23 #include "../StdAfx.h"
24 #include "../bobtoolz.h"
25 #include "TextureResetDialog.h"
26
27 #ifdef _DEBUG
28 #define new DEBUG_NEW
29 #undef THIS_FILE
30 static char THIS_FILE[] = __FILE__;
31 #endif
32
33 /////////////////////////////////////////////////////////////////////////////
34 // CTextureResetDialog dialog
35
36
37 CTextureResetDialog::CTextureResetDialog(CWnd* pParent /*=NULL*/)
38         : CDialog(CTextureResetDialog::IDD, pParent)
39 {
40         //{{AFX_DATA_INIT(CTextureResetDialog)
41         m_bAllTextures = FALSE;
42         m_TextureName = _T("");
43         m_nRotation = 0;
44         m_fScaleHorizontal = 0.5f;
45         m_fScaleVertical = 0.5f;
46         m_nShiftHorizontal = 0;
47         m_nShiftVertical = 0;
48         m_bOnlyTexture = FALSE;
49         m_NewTextureName = _T("");
50         //}}AFX_DATA_INIT
51 }
52
53
54 void CTextureResetDialog::DoDataExchange(CDataExchange* pDX)
55 {
56         CDialog::DoDataExchange(pDX);
57         //{{AFX_DATA_MAP(CTextureResetDialog)
58         DDX_Check(pDX, IDC_ALLTEXTURES_CHECK, m_bAllTextures);
59         DDX_Text(pDX, IDC_RESET_TEXTURE_EDIT, m_TextureName);
60         DDV_MaxChars(pDX, m_TextureName, 256);
61         DDX_Text(pDX, IDC_ROTATION_EDIT, m_nRotation);
62         DDV_MinMaxInt(pDX, m_nRotation, 0, 360);
63         DDX_Text(pDX, IDC_SCL_HOR_EDIT, m_fScaleHorizontal);
64         DDX_Text(pDX, IDC_SCL_VERT_EDIT, m_fScaleVertical);
65         DDX_Text(pDX, IDC_SHFT_HOR_EDIT, m_nShiftHorizontal);
66         DDX_Text(pDX, IDC_SHFT_VER_EDIT, m_nShiftVertical);
67         DDX_Check(pDX, IDC_ONLYTEXTURE_CHECK, m_bOnlyTexture);
68         DDX_Text(pDX, IDC_RESET_NEW_TEXTURE_EDIT, m_NewTextureName);
69         DDV_MaxChars(pDX, m_NewTextureName, 256);
70         //}}AFX_DATA_MAP
71 }
72
73
74 BEGIN_MESSAGE_MAP(CTextureResetDialog, CDialog)
75         //{{AFX_MSG_MAP(CTextureResetDialog)
76                 // NOTE: the ClassWizard will add message map macros here
77         //}}AFX_MSG_MAP
78 END_MESSAGE_MAP()
79
80 /////////////////////////////////////////////////////////////////////////////
81 // CTextureResetDialog message handlers