You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
915 B
56 lines
915 B
//
|
|
// 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;
|
|
}
|