SBSPSS/Utils/MapEdit/GUILayerThing.cpp

59 lines
1.8 KiB
C++
Raw Normal View History

2001-04-06 18:16:43 +02:00
// GUILayerThing.cpp : implementation file
//
#include "stdafx.h"
#include "mapedit.h"
#include "GUILayerThing.h"
2001-04-07 23:05:33 +02:00
#include "MapEditDoc.h"
#include "MainFrm.h"
2001-04-06 18:16:43 +02:00
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
2001-04-07 23:05:33 +02:00
/////////////////////////////////////////////////////////////////////////////
2001-04-06 18:16:43 +02:00
/////////////////////////////////////////////////////////////////////////////
// CGUILayerThing dialog
CGUILayerThing::CGUILayerThing(CWnd* pParent /*=NULL*/)
: CDialog(CGUILayerThing::IDD, pParent)
{
//{{AFX_DATA_INIT(CGUILayerThing)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CGUILayerThing::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGUILayerThing)
2001-04-07 23:05:33 +02:00
DDX_Control(pDX, IDC_THING_LIST, m_List);
DDX_Control(pDX, IDC_DEF_THING_LIST, m_DefList);
2001-04-06 18:16:43 +02:00
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGUILayerThing, CDialog)
//{{AFX_MSG_MAP(CGUILayerThing)
2001-04-07 23:05:33 +02:00
ON_BN_CLICKED(IDC_THING_DELETE, OnThingDelete)
ON_BN_CLICKED(IDC_THING_GOTO, OnThingGoto)
ON_CBN_SELCHANGE(IDC_DEF_THING_LIST, OnSelchangeDefThingList)
ON_CBN_SELCHANGE(IDC_THING_LIST, OnSelchangeThingList)
2001-04-06 18:16:43 +02:00
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGUILayerThing message handlers
2001-04-07 23:05:33 +02:00
void CGUILayerThing::OnThingDelete() {theApp.GetCurrent()->Command(CmdMsg_ThingListDelete,m_List.GetCurSel());}
void CGUILayerThing::OnThingGoto() {theApp.GetCurrent()->Command(CmdMsg_ThingListGoto,m_List.GetCurSel());}
void CGUILayerThing::OnSelchangeDefThingList() {theApp.GetCurrent()->Command(CmdMsg_ThingListSelect,m_DefList.GetCurSel());}
void CGUILayerThing::OnSelchangeThingList() {theApp.GetCurrent()->Command(CmdMsg_ThingLevelSelect,m_List.GetCurSel());}