1 /*!
2 	@file
3 	@author		Albert Semenov
4 	@date		07/2012
5 */
6 
7 #include "Precompiled.h"
8 #include "FrameListControl.h"
9 #include "FactoryManager.h"
10 #include "CommandManager.h"
11 
12 namespace tools
13 {
14 
FACTORY_ITEM_ATTRIBUTE(FrameListControl)15 	FACTORY_ITEM_ATTRIBUTE(FrameListControl)
16 
17 	void FrameListControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, const std::string& _layoutName)
18 	{
19 		DataListBaseControl::OnInitialise(_parent, _place, _layoutName);
20 
21 		CommandManager::getInstance().getEvent("Command_CreateFrameData")->connect(static_cast<DataListBaseControl*>(this), &DataListBaseControl::commandCreateData);
22 		CommandManager::getInstance().getEvent("Command_CloneFrameData")->connect(static_cast<DataListBaseControl*>(this), &DataListBaseControl::commandCloneData);
23 		CommandManager::getInstance().getEvent("Command_DestroyFrameData")->connect(static_cast<DataListBaseControl*>(this), &DataListBaseControl::commandDestroyData);
24 
25 		setDataInfo("Index", "Frame", "Point", "");
26 	}
27 
28 }
29