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 // DoorDialog.cpp : implementation file
23 #include "../StdAfx.h"
24 #include "DoorDialog.h"
26 /////////////////////////////////////////////////////////////////////////////
30 CDoorDialog::CDoorDialog( CWnd* pParent /*=NULL*/ )
31 : CDialog( CDoorDialog::IDD, pParent ){
32 //{{AFX_DATA_INIT(CDoorDialog)
33 m_fbTextureName = _T( "" );
35 m_bSclMainVert = TRUE;
37 m_bSclTrimVert = FALSE;
38 m_trimTextureName = _T( "" );
39 m_trimTexSetBox = _T( "" );
40 m_mainTexSetBox = _T( "" );
46 void CDoorDialog::DoDataExchange( CDataExchange* pDX ){
47 CDialog::DoDataExchange( pDX );
48 //{{AFX_DATA_MAP(CDoorDialog)
49 DDX_Text( pDX, IDC_FBTEXTURE_EDIT, m_fbTextureName );
50 DDX_Check( pDX, IDC_TEXSCALE1_CHECK, m_bSclMainHor );
51 DDX_Check( pDX, IDC_TEXSCALE2_CHECK, m_bSclMainVert );
52 DDX_Check( pDX, IDC_TEXSCALE3_CHECK, m_bSclTrimHor );
53 DDX_Check( pDX, IDC_TEXSCALE4_CHECK, m_bSclTrimVert );
54 DDX_Text( pDX, IDC_TRIMTEXTURE_EDIT, m_trimTextureName );
55 DDX_CBString( pDX, IDC_TRIMTEX_COMBO, m_trimTexSetBox );
56 DDX_CBString( pDX, IDC_MAINTEX_COMBO, m_mainTexSetBox );
57 DDX_Radio( pDX, IDC_DIR_NS_RADIO, m_doorDirection );
62 BEGIN_MESSAGE_MAP( CDoorDialog, CDialog )
63 //{{AFX_MSG_MAP(CDoorDialog)
64 ON_BN_CLICKED( IDC_SET_MAINTEX_BTN, OnSetMaintexBtn )
65 ON_BN_CLICKED( IDC_SET_TRIMTEX_BTN, OnSetTrimtexBtn )
69 /////////////////////////////////////////////////////////////////////////////
70 // CDoorDialog message handlers
72 void CDoorDialog::OnSetMaintexBtn(){
74 m_fbTextureName = m_mainTexSetBox;
78 void CDoorDialog::OnSetTrimtexBtn(){
80 m_trimTextureName = m_trimTexSetBox;