mirror of
https://github.com/id-Software/GtkRadiant.git
synced 2026-03-20 00:49:29 +01:00
The GtkRadiant sources as originally released under the GPL license.
This commit is contained in:
62
contrib/bobtoolz/dialogs/AboutDialog.cpp
Normal file
62
contrib/bobtoolz/dialogs/AboutDialog.cpp
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// AboutDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "AboutDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
//static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAboutDialog dialog
|
||||
|
||||
|
||||
CAboutDialog::CAboutDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CAboutDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CAboutDialog)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CAboutDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CAboutDialog)
|
||||
// NOTE: the ClassWizard will add DDX and DDV calls here
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CAboutDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CAboutDialog)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAboutDialog message handlers
|
||||
|
||||
64
contrib/bobtoolz/dialogs/AboutDialog.h
Normal file
64
contrib/bobtoolz/dialogs/AboutDialog.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)
|
||||
#define AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// AboutDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAboutDialog dialog
|
||||
|
||||
class CAboutDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CAboutDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CAboutDialog)
|
||||
enum { IDD = IDD_ABOUT };
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CAboutDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CAboutDialog)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)
|
||||
63
contrib/bobtoolz/dialogs/AutoCaulkDialog.cpp
Normal file
63
contrib/bobtoolz/dialogs/AutoCaulkDialog.cpp
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// AutoCaulkDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "../bobtoolz.h"
|
||||
#include "AutoCaulkDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAutoCaulkDialog dialog
|
||||
|
||||
|
||||
CAutoCaulkDialog::CAutoCaulkDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CAutoCaulkDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CAutoCaulkDialog)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CAutoCaulkDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CAutoCaulkDialog)
|
||||
DDX_Control(pDX, IDC_PROGRESS2, m_prog2);
|
||||
DDX_Control(pDX, IDC_PROGRESS1, m_prog1);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CAutoCaulkDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CAutoCaulkDialog)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAutoCaulkDialog message handlers
|
||||
66
contrib/bobtoolz/dialogs/AutoCaulkDialog.h
Normal file
66
contrib/bobtoolz/dialogs/AutoCaulkDialog.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_)
|
||||
#define AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// AutoCaulkDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAutoCaulkDialog dialog
|
||||
|
||||
class CAutoCaulkDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CAutoCaulkDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CAutoCaulkDialog)
|
||||
enum { IDD = IDD_AUTOCAULK_DIALOG };
|
||||
CProgressCtrl m_prog2;
|
||||
CProgressCtrl m_prog1;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CAutoCaulkDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CAutoCaulkDialog)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_)
|
||||
66
contrib/bobtoolz/dialogs/AutoCaulkStartDialog.cpp
Normal file
66
contrib/bobtoolz/dialogs/AutoCaulkStartDialog.cpp
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// AutoCaulkStartDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "../bobtoolz.h"
|
||||
#include "AutoCaulkStartDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAutoCaulkStartDialog dialog
|
||||
|
||||
|
||||
CAutoCaulkStartDialog::CAutoCaulkStartDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CAutoCaulkStartDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CAutoCaulkStartDialog)
|
||||
m_bAllowDestruction = FALSE;
|
||||
m_Warning1 = _T("");
|
||||
m_nMode = 0;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CAutoCaulkStartDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CAutoCaulkStartDialog)
|
||||
DDX_Check(pDX, IDC_KILLBRUSHES_CHECK, m_bAllowDestruction);
|
||||
DDX_Text(pDX, IDC_WARNING1_STATIC, m_Warning1);
|
||||
DDX_Radio(pDX, IDC_AC_NORMAL_RADIO, m_nMode);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CAutoCaulkStartDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CAutoCaulkStartDialog)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAutoCaulkStartDialog message handlers
|
||||
71
contrib/bobtoolz/dialogs/AutoCaulkStartDialog.h
Normal file
71
contrib/bobtoolz/dialogs/AutoCaulkStartDialog.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_)
|
||||
#define AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// AutoCaulkStartDialog.h : header file
|
||||
//
|
||||
|
||||
#define MODE_AC_NORMAL 0
|
||||
#define MODE_AC_BUILD_MINI_PRT 1
|
||||
#define MODE_AC_SUPER 2
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAutoCaulkStartDialog dialog
|
||||
|
||||
class CAutoCaulkStartDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CAutoCaulkStartDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CAutoCaulkStartDialog)
|
||||
enum { IDD = IDD_AUTOCAULKSTART_DIALOG };
|
||||
BOOL m_bAllowDestruction;
|
||||
CString m_Warning1;
|
||||
int m_nMode;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CAutoCaulkStartDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CAutoCaulkStartDialog)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_)
|
||||
65
contrib/bobtoolz/dialogs/BrushCheckDialog.h
Normal file
65
contrib/bobtoolz/dialogs/BrushCheckDialog.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_)
|
||||
#define AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// BrushCheckDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBrushCheckDialog dialog
|
||||
|
||||
class CBrushCheckDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CBrushCheckDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CBrushCheckDialog)
|
||||
enum { IDD = IDD_BRUSHCHECKER_DIALOG };
|
||||
CProgressCtrl m_prog1;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CBrushCheckDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CBrushCheckDialog)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_)
|
||||
92
contrib/bobtoolz/dialogs/DoorDialog.cpp
Normal file
92
contrib/bobtoolz/dialogs/DoorDialog.cpp
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// DoorDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "DoorDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDoorDialog dialog
|
||||
|
||||
|
||||
CDoorDialog::CDoorDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CDoorDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CDoorDialog)
|
||||
m_fbTextureName = _T("");
|
||||
m_bSclMainHor = TRUE;
|
||||
m_bSclMainVert = TRUE;
|
||||
m_bSclTrimHor = TRUE;
|
||||
m_bSclTrimVert = FALSE;
|
||||
m_trimTextureName = _T("");
|
||||
m_trimTexSetBox = _T("");
|
||||
m_mainTexSetBox = _T("");
|
||||
m_doorDirection = -1;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CDoorDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CDoorDialog)
|
||||
DDX_Text(pDX, IDC_FBTEXTURE_EDIT, m_fbTextureName);
|
||||
DDX_Check(pDX, IDC_TEXSCALE1_CHECK, m_bSclMainHor);
|
||||
DDX_Check(pDX, IDC_TEXSCALE2_CHECK, m_bSclMainVert);
|
||||
DDX_Check(pDX, IDC_TEXSCALE3_CHECK, m_bSclTrimHor);
|
||||
DDX_Check(pDX, IDC_TEXSCALE4_CHECK, m_bSclTrimVert);
|
||||
DDX_Text(pDX, IDC_TRIMTEXTURE_EDIT, m_trimTextureName);
|
||||
DDX_CBString(pDX, IDC_TRIMTEX_COMBO, m_trimTexSetBox);
|
||||
DDX_CBString(pDX, IDC_MAINTEX_COMBO, m_mainTexSetBox);
|
||||
DDX_Radio(pDX, IDC_DIR_NS_RADIO, m_doorDirection);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CDoorDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CDoorDialog)
|
||||
ON_BN_CLICKED(IDC_SET_MAINTEX_BTN, OnSetMaintexBtn)
|
||||
ON_BN_CLICKED(IDC_SET_TRIMTEX_BTN, OnSetTrimtexBtn)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDoorDialog message handlers
|
||||
|
||||
void CDoorDialog::OnSetMaintexBtn()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
m_fbTextureName = m_mainTexSetBox;
|
||||
UpdateData(FALSE);
|
||||
}
|
||||
|
||||
void CDoorDialog::OnSetTrimtexBtn()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
m_trimTextureName = m_trimTexSetBox;
|
||||
UpdateData(FALSE);
|
||||
}
|
||||
74
contrib/bobtoolz/dialogs/DoorDialog.h
Normal file
74
contrib/bobtoolz/dialogs/DoorDialog.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_)
|
||||
#define AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// DoorDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDoorDialog dialog
|
||||
|
||||
class CDoorDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CDoorDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CDoorDialog)
|
||||
enum { IDD = IDD_DOOR_DIALOG };
|
||||
CString m_fbTextureName;
|
||||
BOOL m_bSclMainHor;
|
||||
BOOL m_bSclMainVert;
|
||||
BOOL m_bSclTrimHor;
|
||||
BOOL m_bSclTrimVert;
|
||||
CString m_trimTextureName;
|
||||
CString m_trimTexSetBox;
|
||||
CString m_mainTexSetBox;
|
||||
int m_doorDirection;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CDoorDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDoorDialog)
|
||||
afx_msg void OnSetMaintexBtn();
|
||||
afx_msg void OnSetTrimtexBtn();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_)
|
||||
65
contrib/bobtoolz/dialogs/IntersectDialog.cpp
Normal file
65
contrib/bobtoolz/dialogs/IntersectDialog.cpp
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// IntersectDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "IntersectDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CIntersectDialog dialog
|
||||
|
||||
|
||||
CIntersectDialog::CIntersectDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CIntersectDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CIntersectDialog)
|
||||
m_nBrushOptions = 1;
|
||||
m_bUseDetail = FALSE;
|
||||
m_bDuplicateOnly = FALSE;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CIntersectDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CIntersectDialog)
|
||||
DDX_Radio(pDX, IDC_WHOLEMAP_RADIO, m_nBrushOptions);
|
||||
DDX_Check(pDX, IDC_DETAIL_INCLUDE_CHECK, m_bUseDetail);
|
||||
DDX_Check(pDX, IDC_DUPLICATEONLY_CHECK, m_bDuplicateOnly);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CIntersectDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CIntersectDialog)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CIntersectDialog message handlers
|
||||
70
contrib/bobtoolz/dialogs/IntersectDialog.h
Normal file
70
contrib/bobtoolz/dialogs/IntersectDialog.h
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_)
|
||||
#define AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// IntersectDialog.h : header file
|
||||
//
|
||||
|
||||
#define BRUSH_OPT_WHOLE_MAP 0
|
||||
#define BRUSH_OPT_SELECTED 1
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CIntersectDialog dialog
|
||||
|
||||
class CIntersectDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CIntersectDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CIntersectDialog)
|
||||
enum { IDD = IDD_INTERSECT_DIALOG };
|
||||
int m_nBrushOptions;
|
||||
BOOL m_bUseDetail;
|
||||
BOOL m_bDuplicateOnly;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CIntersectDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CIntersectDialog)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_)
|
||||
61
contrib/bobtoolz/dialogs/IntersectInfoDialog.cpp
Normal file
61
contrib/bobtoolz/dialogs/IntersectInfoDialog.cpp
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// IntersectInfoDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "../bobtoolz.h"
|
||||
#include "IntersectInfoDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CIntersectInfoDialog dialog
|
||||
|
||||
|
||||
CIntersectInfoDialog::CIntersectInfoDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CIntersectInfoDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CIntersectInfoDialog)
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CIntersectInfoDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CIntersectInfoDialog)
|
||||
DDX_Control(pDX, IDC_PROGRESS1, m_prog1);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CIntersectInfoDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CIntersectInfoDialog)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CIntersectInfoDialog message handlers
|
||||
65
contrib/bobtoolz/dialogs/IntersectInfoDialog.h
Normal file
65
contrib/bobtoolz/dialogs/IntersectInfoDialog.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_)
|
||||
#define AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// IntersectInfoDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CIntersectInfoDialog dialog
|
||||
|
||||
class CIntersectInfoDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CIntersectInfoDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CIntersectInfoDialog)
|
||||
enum { IDD = IDD_INTERSECT_INFO_DIALOG };
|
||||
CProgressCtrl m_prog1;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CIntersectInfoDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CIntersectInfoDialog)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_)
|
||||
116
contrib/bobtoolz/dialogs/PolygonDialog.cpp
Normal file
116
contrib/bobtoolz/dialogs/PolygonDialog.cpp
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// PolygonDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "PolygonDialog.h"
|
||||
#include "../shapes.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPolygonDialog dialog
|
||||
|
||||
|
||||
CPolygonDialog::CPolygonDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CPolygonDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CPolygonDialog)
|
||||
m_nSideCount = 3;
|
||||
m_bInverse = FALSE;
|
||||
m_bBorder = FALSE;
|
||||
m_nBorderSize = 8;
|
||||
m_bAlignTop = FALSE;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
void CPolygonDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CPolygonDialog)
|
||||
DDX_Text(pDX, IDC_EDIT1, m_nSideCount);
|
||||
DDV_MinMaxUInt(pDX, m_nSideCount, 3, MAX_POLYGON_FACES);
|
||||
DDX_Check(pDX, IDC_INVERSE_CHK, m_bInverse);
|
||||
DDX_Check(pDX, IDC_BORDER_CHK, m_bBorder);
|
||||
DDX_Text(pDX, IDC_BORDER_EDIT, m_nBorderSize);
|
||||
DDV_MinMaxUInt(pDX, m_nBorderSize, 1, 1024);
|
||||
DDX_Check(pDX, IDC_ALIGN_CHK, m_bAlignTop);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CPolygonDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CPolygonDialog)
|
||||
ON_BN_CLICKED(IDC_BORDER_CHK, OnBorderChkClicked)
|
||||
ON_BN_CLICKED(IDC_INVERSE_CHK, OnInverseChkClickrd)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPolygonDialog message handlers
|
||||
|
||||
BOOL CPolygonDialog::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
EnableBordered(!GetChkBool(IDC_INVERSE_CHK));
|
||||
EnableBorderEdit(!GetChkBool(IDC_INVERSE_CHK) && GetChkBool(IDC_BORDER_CHK));
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void CPolygonDialog::EnableBordered(BOOL bEnable)
|
||||
{
|
||||
CWnd* dtlChk = GetDlgItem(IDC_BORDER_CHK);
|
||||
if(dtlChk)
|
||||
dtlChk->EnableWindow(bEnable);
|
||||
}
|
||||
|
||||
void CPolygonDialog::EnableBorderEdit(BOOL bEnable)
|
||||
{
|
||||
CWnd* dtlChk = GetDlgItem(IDC_BORDER_EDIT);
|
||||
if(dtlChk)
|
||||
dtlChk->EnableWindow(bEnable);
|
||||
}
|
||||
|
||||
void CPolygonDialog::OnBorderChkClicked()
|
||||
{
|
||||
EnableBorderEdit(!GetChkBool(IDC_INVERSE_CHK) && GetChkBool(IDC_BORDER_CHK));
|
||||
}
|
||||
|
||||
void CPolygonDialog::OnInverseChkClickrd()
|
||||
{
|
||||
EnableBordered(!GetChkBool(IDC_INVERSE_CHK));
|
||||
EnableBorderEdit(!GetChkBool(IDC_INVERSE_CHK) && GetChkBool(IDC_BORDER_CHK));
|
||||
}
|
||||
|
||||
BOOL CPolygonDialog::GetChkBool(int nID)
|
||||
{
|
||||
CButton* btn = (CButton*)GetDlgItem(nID);
|
||||
if(btn)
|
||||
return btn->GetCheck();
|
||||
return FALSE;
|
||||
}
|
||||
74
contrib/bobtoolz/dialogs/PolygonDialog.h
Normal file
74
contrib/bobtoolz/dialogs/PolygonDialog.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_)
|
||||
#define AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// PolygonDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPolygonDialog dialog
|
||||
|
||||
class CPolygonDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
BOOL GetChkBool(int nID);
|
||||
void EnableBorderEdit(BOOL bEnable);
|
||||
void EnableBordered(BOOL bEnable);
|
||||
CPolygonDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPolygonDialog)
|
||||
enum { IDD = IDD_POLYGON_DIALOG };
|
||||
UINT m_nSideCount;
|
||||
BOOL m_bInverse;
|
||||
BOOL m_bBorder;
|
||||
UINT m_nBorderSize;
|
||||
BOOL m_bAlignTop;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPolygonDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPolygonDialog)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnBorderChkClicked();
|
||||
afx_msg void OnInverseChkClickrd();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_)
|
||||
105
contrib/bobtoolz/dialogs/StairDialog.cpp
Normal file
105
contrib/bobtoolz/dialogs/StairDialog.cpp
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// StairDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "StairDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CStairDialog dialog
|
||||
|
||||
|
||||
CStairDialog::CStairDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CStairDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CStairDialog)
|
||||
m_nStairHeight = 8;
|
||||
m_StairDir = 0;
|
||||
m_StairStyle = 0;
|
||||
m_riserTexture = _T("");
|
||||
m_bDetail = TRUE;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
void CStairDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CStairDialog)
|
||||
DDX_Text(pDX, IDC_EDIT1, m_nStairHeight);
|
||||
DDV_MinMaxUInt(pDX, m_nStairHeight, 1, 256);
|
||||
DDX_Radio(pDX, IDC_DIR_N_RADIO, m_StairDir);
|
||||
DDX_Radio(pDX, IDC_STYLE_ORIG_RADIO, m_StairStyle);
|
||||
DDX_Text(pDX, IDC_RISER_EDIT, m_riserTexture);
|
||||
DDV_MaxChars(pDX, m_riserTexture, 256);
|
||||
DDX_Check(pDX, IDC_DETAIL_CHK, m_bDetail);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CStairDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CStairDialog)
|
||||
ON_BN_CLICKED(IDC_STYLE_BOB_RADIO, OnStyleBobClicked)
|
||||
ON_BN_CLICKED(IDC_STYLE_ORIG_RADIO, OnStyleOrigClicked)
|
||||
ON_BN_CLICKED(IDC_STYLE_CORNER_RADIO, OnStyleCornerClicked)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CStairDialog message handlers
|
||||
|
||||
void CStairDialog::OnStyleBobClicked()
|
||||
{
|
||||
EnableDetail(TRUE);
|
||||
}
|
||||
|
||||
void CStairDialog::OnStyleOrigClicked()
|
||||
{
|
||||
EnableDetail(FALSE);
|
||||
}
|
||||
|
||||
void CStairDialog::EnableDetail(BOOL bEnable)
|
||||
{
|
||||
CWnd* dtlChk = GetDlgItem(IDC_DETAIL_CHK);
|
||||
if(dtlChk)
|
||||
dtlChk->EnableWindow(bEnable);
|
||||
}
|
||||
|
||||
|
||||
BOOL CStairDialog::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
EnableDetail(m_StairStyle == 1);
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void CStairDialog::OnStyleCornerClicked()
|
||||
{
|
||||
EnableDetail(FALSE);
|
||||
}
|
||||
74
contrib/bobtoolz/dialogs/StairDialog.h
Normal file
74
contrib/bobtoolz/dialogs/StairDialog.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_)
|
||||
#define AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// StairDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CStairDialog dialog
|
||||
|
||||
class CStairDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CStairDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CStairDialog)
|
||||
enum { IDD = IDD_STAIR_DIALOG };
|
||||
UINT m_nStairHeight;
|
||||
int m_StairDir;
|
||||
int m_StairStyle;
|
||||
CString m_riserTexture;
|
||||
BOOL m_bDetail;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CStairDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CStairDialog)
|
||||
afx_msg void OnStyleBobClicked();
|
||||
afx_msg void OnStyleOrigClicked();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnStyleCornerClicked();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
private:
|
||||
void EnableDetail(BOOL bEnable);
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_)
|
||||
81
contrib/bobtoolz/dialogs/TextureResetDialog.cpp
Normal file
81
contrib/bobtoolz/dialogs/TextureResetDialog.cpp
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
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
|
||||
73
contrib/bobtoolz/dialogs/TextureResetDialog.h
Normal file
73
contrib/bobtoolz/dialogs/TextureResetDialog.h
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_)
|
||||
#define AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// TextureResetDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CTextureResetDialog dialog
|
||||
|
||||
class CTextureResetDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CTextureResetDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CTextureResetDialog)
|
||||
enum { IDD = IDD_TEXTURE_RESET_DIALOG };
|
||||
BOOL m_bAllTextures;
|
||||
CString m_TextureName;
|
||||
int m_nRotation;
|
||||
float m_fScaleHorizontal;
|
||||
float m_fScaleVertical;
|
||||
int m_nShiftHorizontal;
|
||||
int m_nShiftVertical;
|
||||
BOOL m_bOnlyTexture;
|
||||
CString m_NewTextureName;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CTextureResetDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CTextureResetDialog)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_)
|
||||
61
contrib/bobtoolz/dialogs/brushcheckdialog.cpp
Normal file
61
contrib/bobtoolz/dialogs/brushcheckdialog.cpp
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// BrushCheckDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "../bobtoolz.h"
|
||||
#include "BrushCheckDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBrushCheckDialog dialog
|
||||
|
||||
|
||||
CBrushCheckDialog::CBrushCheckDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CBrushCheckDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CBrushCheckDialog)
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CBrushCheckDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CBrushCheckDialog)
|
||||
DDX_Control(pDX, IDC_PROGRESS1, m_prog1);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CBrushCheckDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CBrushCheckDialog)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBrushCheckDialog message handlers
|
||||
1909
contrib/bobtoolz/dialogs/dialogs-gtk.cpp
Normal file
1909
contrib/bobtoolz/dialogs/dialogs-gtk.cpp
Normal file
File diff suppressed because it is too large
Load Diff
98
contrib/bobtoolz/dialogs/dialogs-gtk.h
Normal file
98
contrib/bobtoolz/dialogs/dialogs-gtk.h
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
struct BuildStairsRS{
|
||||
char mainTexture[256];
|
||||
char riserTexture[256];
|
||||
int direction;
|
||||
int style;
|
||||
int stairHeight;
|
||||
bool bUseDetail;
|
||||
};
|
||||
|
||||
struct ResetTextureRS {
|
||||
int bResetTextureName;
|
||||
char textureName[256];
|
||||
char newTextureName[256];
|
||||
|
||||
int bResetScale[2];
|
||||
float fScale[2];
|
||||
|
||||
int bResetShift[2];
|
||||
float fShift[2];
|
||||
|
||||
int bResetRotation;
|
||||
int rotation;
|
||||
};
|
||||
|
||||
struct TrainThingRS {
|
||||
float fRadiusX, fRadiusY;
|
||||
float fStartAngle, fEndAngle;
|
||||
int iNumPoints;
|
||||
float fStartHeight, fEndHeight;
|
||||
};
|
||||
|
||||
struct IntersectRS{
|
||||
int nBrushOptions;
|
||||
bool bUseDetail;
|
||||
bool bDuplicateOnly;
|
||||
};
|
||||
|
||||
struct PolygonRS{
|
||||
bool bUseBorder;
|
||||
bool bInverse;
|
||||
bool bAlignTop;
|
||||
int nSides;
|
||||
int nBorderWidth;
|
||||
};
|
||||
|
||||
struct DoorRS{
|
||||
char mainTexture[256];
|
||||
char trimTexture[256];
|
||||
bool bScaleMainH;
|
||||
bool bScaleMainV;
|
||||
bool bScaleTrimH;
|
||||
bool bScaleTrimV;
|
||||
int nOrientation;
|
||||
};
|
||||
|
||||
struct PathPlotterRS{
|
||||
int nPoints;
|
||||
float fMultiplier;
|
||||
float fGravity;
|
||||
bool bNoUpdate;
|
||||
bool bShowExtra;
|
||||
};
|
||||
|
||||
struct TwinWidget{
|
||||
GtkWidget* one;
|
||||
GtkWidget* two;
|
||||
};
|
||||
|
||||
EMessageBoxReturn DoMessageBox(const char* lpText, const char* lpCaption, EMessageBoxType type);
|
||||
EMessageBoxReturn DoIntersectBox(IntersectRS* rs);
|
||||
EMessageBoxReturn DoPolygonBox(PolygonRS* rs);
|
||||
EMessageBoxReturn DoResetTextureBox (ResetTextureRS* rs);
|
||||
EMessageBoxReturn DoBuildStairsBox(BuildStairsRS* rs);
|
||||
EMessageBoxReturn DoDoorsBox(DoorRS* rs);
|
||||
EMessageBoxReturn DoPathPlotterBox(PathPlotterRS* rs);
|
||||
EMessageBoxReturn DoCTFColourChangeBox();
|
||||
EMessageBoxReturn DoTrainThingBox (TrainThingRS* rs);
|
||||
|
||||
//GtkWidget* GetProgressWindow(char* title, GtkProgressBar* feedback);
|
||||
85
contrib/bobtoolz/dialogs/pathplotterdialog.cpp
Normal file
85
contrib/bobtoolz/dialogs/pathplotterdialog.cpp
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
// PathPlotterDialog.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "../StdAfx.h"
|
||||
#include "../bobtoolz.h"
|
||||
#include "PathPlotterDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPathPlotterDialog dialog
|
||||
|
||||
|
||||
CPathPlotterDialog::CPathPlotterDialog(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CPathPlotterDialog::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CPathPlotterDialog)
|
||||
m_fGravity = -800.0f;
|
||||
m_fMultiplier = 3.0f;
|
||||
m_bNoUpdate = FALSE;
|
||||
m_nPoints = 25;
|
||||
m_bShowExtra = FALSE;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CPathPlotterDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CPathPlotterDialog)
|
||||
DDX_Text(pDX, IDC_GRAVITY_EDIT, m_fGravity);
|
||||
DDV_MinMaxFloat(pDX, m_fGravity, -10000.f, -1.f);
|
||||
DDX_Text(pDX, IDC_MULTIPLIER_EDIT, m_fMultiplier);
|
||||
DDV_MinMaxFloat(pDX, m_fMultiplier, 1.f, 10.f);
|
||||
DDX_Check(pDX, IDC_NOUPDATE_CHECK, m_bNoUpdate);
|
||||
DDX_Text(pDX, IDC_POINTCOUNT_EDIT, m_nPoints);
|
||||
DDV_MinMaxInt(pDX, m_nPoints, 1, 1000);
|
||||
DDX_Check(pDX, IDC_SHOWEXTRA_CHECK, m_bShowExtra);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CPathPlotterDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(CPathPlotterDialog)
|
||||
ON_BN_CLICKED(IDYES, OnYes)
|
||||
ON_BN_CLICKED(IDNO, OnNo)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPathPlotterDialog message handlers
|
||||
|
||||
void CPathPlotterDialog::OnYes()
|
||||
{
|
||||
if(UpdateData())
|
||||
EndModalLoop(IDYES);
|
||||
}
|
||||
|
||||
void CPathPlotterDialog::OnNo()
|
||||
{
|
||||
EndModalLoop(IDNO);
|
||||
}
|
||||
70
contrib/bobtoolz/dialogs/pathplotterdialog.h
Normal file
70
contrib/bobtoolz/dialogs/pathplotterdialog.h
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
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
|
||||
*/
|
||||
|
||||
#if !defined(AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_)
|
||||
#define AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// PathPlotterDialog.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPathPlotterDialog dialog
|
||||
|
||||
class CPathPlotterDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CPathPlotterDialog(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPathPlotterDialog)
|
||||
enum { IDD = IDD_PATHPLOTTER_DIALOG };
|
||||
float m_fGravity;
|
||||
float m_fMultiplier;
|
||||
BOOL m_bNoUpdate;
|
||||
int m_nPoints;
|
||||
BOOL m_bShowExtra;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPathPlotterDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPathPlotterDialog)
|
||||
afx_msg void OnYes();
|
||||
afx_msg void OnNo();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_)
|
||||
Reference in New Issue
Block a user