tagging release
[dasher.git] / trunk / Src / DasherCore / ControlManagerFactory.cpp
blobf7904d542f67ff5d50baa6befe074df9eac14c27
2 #include "../Common/Common.h"
4 #include "ControlManagerFactory.h"
5 #include "ControlManager.h"
7 using namespace Dasher;
9 // Track memory leaks on Windows to the line that new'd the memory
10 #ifdef _WIN32
11 #ifdef _DEBUG_MEMLEAKS
12 #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
13 #define new DEBUG_NEW
14 #undef THIS_FILE
15 static char THIS_FILE[] = __FILE__;
16 #endif
17 #endif
19 CControlManagerFactory::CControlManagerFactory(CNodeCreationManager *pNCManager) {
20 m_pControlManager = new CControlManager(pNCManager);
23 CControlManagerFactory::~CControlManagerFactory() {
24 delete m_pControlManager;
27 CDasherNode *CControlManagerFactory::GetRoot(CDasherNode *pParent, int iLower, int iUpper, void *pUserData) {
28 return m_pControlManager->GetRoot(pParent, iLower, iUpper, pUserData);
31 void CControlManagerFactory::RegisterNode( int iID, const std::string &strLabel, int iColour ) {
32 m_pControlManager->RegisterNode(iID, strLabel, iColour);
35 void CControlManagerFactory::ConnectNode(int iChild, int iParent, int iAfter) {
36 m_pControlManager->ConnectNode(iChild, iParent, iAfter);
39 void CControlManagerFactory::DisconnectNode(int iChild, int iParent) {
40 m_pControlManager->DisconnectNode(iChild, iParent);