Itsa me, quake3io!
This commit is contained in:
parent
dbe4ddb103
commit
5b755058f5
1409 changed files with 798983 additions and 798983 deletions
136
q3radiant/DialogTextures.cpp
Normal file → Executable file
136
q3radiant/DialogTextures.cpp
Normal file → Executable file
|
@ -19,71 +19,71 @@ along with Foobar; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
===========================================================================
|
||||
*/
|
||||
// DialogTextures.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "Radiant.h"
|
||||
#include "DialogTextures.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDialogTextures dialog
|
||||
|
||||
|
||||
CDialogTextures::CDialogTextures(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CDialogTextures::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CDialogTextures)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CDialogTextures::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CDialogTextures)
|
||||
DDX_Control(pDX, IDC_LIST_TEXTURES, m_wndList);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CDialogTextures, CDialog)
|
||||
//{{AFX_MSG_MAP(CDialogTextures)
|
||||
ON_LBN_DBLCLK(IDC_LIST_TEXTURES, OnDblclkListTextures)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDialogTextures message handlers
|
||||
|
||||
void CDialogTextures::OnOK()
|
||||
{
|
||||
m_nSelection = m_wndList.GetCurSel();
|
||||
CDialog::OnOK();
|
||||
}
|
||||
|
||||
void CDialogTextures::OnDblclkListTextures()
|
||||
{
|
||||
OnOK();
|
||||
}
|
||||
|
||||
BOOL CDialogTextures::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
CStringArray sa;
|
||||
FillTextureMenu(&sa);
|
||||
m_nSelection = -1;
|
||||
for (int i = 0; i < sa.GetSize(); i ++)
|
||||
{
|
||||
m_wndList.AddString(sa.GetAt(i));
|
||||
}
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
// DialogTextures.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "Radiant.h"
|
||||
#include "DialogTextures.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDialogTextures dialog
|
||||
|
||||
|
||||
CDialogTextures::CDialogTextures(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CDialogTextures::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CDialogTextures)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CDialogTextures::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CDialogTextures)
|
||||
DDX_Control(pDX, IDC_LIST_TEXTURES, m_wndList);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CDialogTextures, CDialog)
|
||||
//{{AFX_MSG_MAP(CDialogTextures)
|
||||
ON_LBN_DBLCLK(IDC_LIST_TEXTURES, OnDblclkListTextures)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDialogTextures message handlers
|
||||
|
||||
void CDialogTextures::OnOK()
|
||||
{
|
||||
m_nSelection = m_wndList.GetCurSel();
|
||||
CDialog::OnOK();
|
||||
}
|
||||
|
||||
void CDialogTextures::OnDblclkListTextures()
|
||||
{
|
||||
OnOK();
|
||||
}
|
||||
|
||||
BOOL CDialogTextures::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
CStringArray sa;
|
||||
FillTextureMenu(&sa);
|
||||
m_nSelection = -1;
|
||||
for (int i = 0; i < sa.GetSize(); i ++)
|
||||
{
|
||||
m_wndList.AddString(sa.GetAt(i));
|
||||
}
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue