2001-03-29 21:27:21 +02:00
|
|
|
// GUILayerItem.cpp : implementation file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "mapedit.h"
|
|
|
|
#include "GUILayerItem.h"
|
|
|
|
|
2001-03-31 03:30:53 +02:00
|
|
|
#include "MapEditDoc.h"
|
|
|
|
#include "MainFrm.h"
|
|
|
|
|
2001-03-29 21:27:21 +02:00
|
|
|
#ifdef _DEBUG
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
#undef THIS_FILE
|
|
|
|
static char THIS_FILE[] = __FILE__;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CGUILayerItem dialog
|
|
|
|
|
|
|
|
|
|
|
|
CGUILayerItem::CGUILayerItem(CWnd* pParent /*=NULL*/)
|
|
|
|
: CDialog(CGUILayerItem::IDD, pParent)
|
|
|
|
{
|
|
|
|
//{{AFX_DATA_INIT(CGUILayerItem)
|
|
|
|
// NOTE: the ClassWizard will add member initialization here
|
|
|
|
//}}AFX_DATA_INIT
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CGUILayerItem::DoDataExchange(CDataExchange* pDX)
|
|
|
|
{
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
//{{AFX_DATA_MAP(CGUILayerItem)
|
2001-03-31 03:30:53 +02:00
|
|
|
DDX_Control(pDX, IDC_LEVEL_ITEM_LIST, m_LevelList);
|
|
|
|
DDX_Control(pDX, IDC_ITEM_LIST, m_List);
|
2001-03-29 21:27:21 +02:00
|
|
|
//}}AFX_DATA_MAP
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CGUILayerItem, CDialog)
|
|
|
|
//{{AFX_MSG_MAP(CGUILayerItem)
|
2001-03-31 03:30:53 +02:00
|
|
|
ON_BN_CLICKED(IDC_ITEM_DELETE, OnItemDelete)
|
|
|
|
ON_CBN_SELCHANGE(IDC_LEVEL_ITEM_LIST, OnSelchangeLevelItemList)
|
|
|
|
ON_CBN_SELCHANGE(IDC_ITEM_LIST, OnSelchangeItemList)
|
2001-03-29 21:27:21 +02:00
|
|
|
//}}AFX_MSG_MAP
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CGUILayerItem message handlers
|
2001-03-31 03:30:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
void CGUILayerItem::OnSelchangeItemList() {theApp.GetCurrent()->Command(CmdMsg_ThingListSelect,m_List.GetCurSel());}
|
|
|
|
void CGUILayerItem::OnSelchangeLevelItemList() {theApp.GetCurrent()->Command(CmdMsg_ThingLevelSelect,m_LevelList.GetCurSel());}
|
|
|
|
void CGUILayerItem::OnItemDelete() {theApp.GetCurrent()->Command(CmdMsg_ThingListDelete,m_List.GetCurSel());}
|
|
|
|
|