//
// C++ Implementation: kxeshellmanager
//
// Description:
//
//
// Author: Adam Charytoniuk <achary@poczta.onet.pl>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "kxeshellmanager.h"
#include "kxmleditorshell.h"

#include <tqptrlist.h>

KXEShellManager::KXEShellManager()
{
}

KXEShellManager::~KXEShellManager()
{
}

void KXEShellManager::addShell(KXMLEditorShell* pShell)
{
/*
	for (unsigned int i=0; i<m_shells.count();i++)
	{
		m_shells.at(i)->slotShellAdded(pShell);
		pShell->slotShellAdded(m_shells.at(i));
	}
	*/
	m_shells.append(pShell);
}

void KXEShellManager::removeShell(KXMLEditorShell* pShell)
{
	m_shells.remove(pShell);
	/*
	for (unsigned int i=0; i<m_shells.count();i++)
	{
		m_shells.at(i)->slotShellRemoved(pShell);
	}
	*/
}


/*!
    \fn KXEShellManager::shells()
 */
TQPtrList<KXMLEditorShell>* KXEShellManager::shells()
{
	return &m_shells;
}
