/**********************/ /*** Layer Item ***/ /**********************/ #include "stdafx.h" #include #include #include #include "GLEnabledView.h" #include "MapEdit.h" #include "MapEditDoc.h" #include "MapEditView.h" #include "MainFrm.h" #include "Core.h" #include "LayerThing.h" #include "LayerItem.h" #include "Utils.h" #include "Export.h" /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ CLayerItem::CLayerItem(sLayerDef &Def) { InitLayer(Def); } /*****************************************************************************/ void CLayerItem::InitLayer(sLayerDef &Def) { ThingBank=new CElemBank(-1,-1,false,CElem::CentreModeLR || CElem::CentreModeTB); CLayerThing::InitLayer(Def); LoadThingScript(theApp.GetConfigStr("LayerScript","ItemScript")); DrawPoints=false; } /*****************************************************************************/ void CLayerItem::InitSubView(CCore *Core) { } /*****************************************************************************/ void CLayerItem::LoadDefThing(const char *Name,sLayerThing &ThisDef) { } /*****************************************************************************/ void CLayerItem::LoadOldThing(CFile *File,sLayerThing &ThisThing) { sLayerThingDataOLD OldThing; File->Read(&OldThing,sizeof(sLayerThingDataOLD)); } /*****************************************************************************/ /*** Gui *********************************************************************/ /*****************************************************************************/ void CLayerItem::GUIInit(CCore *Core) { Core->GUIAdd(GUIThing,IDD_LAYER_THING); } /*****************************************************************************/ void CLayerItem::GUIKill(CCore *Core) { Core->GUIRemove(GUIThing,IDD_LAYER_THING); } /*****************************************************************************/ void CLayerItem::GUIUpdate(CCore *Core) { int i,ListSize; CComboBox &List=GUIThing.m_DefList; // Setup Def Item List ListSize=DefList.size(); List.ResetContent(); for (i=0; i