TextureLayout.cpp (2194B)
1 /* 2 =========================================================================== 3 Copyright (C) 1999-2005 Id Software, Inc. 4 5 This file is part of Quake III Arena source code. 6 7 Quake III Arena source code is free software; you can redistribute it 8 and/or modify it under the terms of the GNU General Public License as 9 published by the Free Software Foundation; either version 2 of the License, 10 or (at your option) any later version. 11 12 Quake III Arena source code is distributed in the hope that it will be 13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with Foobar; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 =========================================================================== 21 */ 22 // TextureLayout.cpp : implementation file 23 // 24 25 #include "stdafx.h" 26 #include "Radiant.h" 27 #include "TextureLayout.h" 28 29 #ifdef _DEBUG 30 #define new DEBUG_NEW 31 #undef THIS_FILE 32 static char THIS_FILE[] = __FILE__; 33 #endif 34 35 ///////////////////////////////////////////////////////////////////////////// 36 // CTextureLayout dialog 37 38 39 CTextureLayout::CTextureLayout(CWnd* pParent /*=NULL*/) 40 : CDialog(CTextureLayout::IDD, pParent) 41 { 42 //{{AFX_DATA_INIT(CTextureLayout) 43 m_fX = 4.0f; 44 m_fY = 4.0f; 45 //}}AFX_DATA_INIT 46 } 47 48 49 void CTextureLayout::DoDataExchange(CDataExchange* pDX) 50 { 51 CDialog::DoDataExchange(pDX); 52 //{{AFX_DATA_MAP(CTextureLayout) 53 DDX_Text(pDX, IDC_EDIT_X, m_fX); 54 DDX_Text(pDX, IDC_EDIT_Y, m_fY); 55 //}}AFX_DATA_MAP 56 } 57 58 59 BEGIN_MESSAGE_MAP(CTextureLayout, CDialog) 60 //{{AFX_MSG_MAP(CTextureLayout) 61 //}}AFX_MSG_MAP 62 END_MESSAGE_MAP() 63 64 ///////////////////////////////////////////////////////////////////////////// 65 // CTextureLayout message handlers 66 67 void CTextureLayout::OnOK() 68 { 69 CDialog::OnOK(); 70 } 71 72 BOOL CTextureLayout::OnInitDialog() 73 { 74 CDialog::OnInitDialog(); 75 76 // TODO: Add extra initialization here 77 78 return TRUE; // return TRUE unless you set the focus to a control 79 // EXCEPTION: OCX Property Pages should return FALSE 80 }