@ -18,6 +18,7 @@
// Project includes
# include "context_manager.h"
# include "icontext.h"
# include "main_window.h"
// NeL includes
# include <nel/misc/debug.h>
@ -31,26 +32,26 @@ namespace Core
struct ContextManagerPrivate
{
explicit ContextManagerPrivate ( ExtensionSystem: : IPluginManager * pluginManager , QTabWidget * tabWidget ) ;
ExtensionSystem: : IPluginManager * m_pluginManager ;
explicit ContextManagerPrivate ( Core: : MainWindow * mainWindow , QTabWidget * tabWidget ) ;
Core: : MainWindow * m_mainWindow ;
QTabWidget * m_tabWidget ;
QVector < IContext * > m_contexts ;
int m_oldCurrent ;
} ;
ContextManagerPrivate : : ContextManagerPrivate ( ExtensionSystem: : IPluginManager * pluginManager , QTabWidget * tabWidget )
: m_ pluginManager( pluginManager ) ,
ContextManagerPrivate : : ContextManagerPrivate ( Core: : MainWindow * mainWindow , QTabWidget * tabWidget )
: m_ mainWindow( mainWindow ) ,
m_tabWidget ( tabWidget ) ,
m_oldCurrent ( - 1 )
{
}
ContextManager : : ContextManager ( ExtensionSystem: : IPluginManager * pluginManager , QTabWidget * tabWidget )
: d ( new ContextManagerPrivate ( pluginManager , tabWidget ) )
ContextManager : : ContextManager ( Core: : MainWindow * mainWindow , QTabWidget * tabWidget )
: d ( new ContextManagerPrivate ( mainWindow , tabWidget ) )
{
QObject : : connect ( d - > m_ pluginManager, SIGNAL ( objectAdded ( QObject * ) ) ,
QObject : : connect ( d - > m_ mainWindow- > pluginManager( ) , SIGNAL ( objectAdded ( QObject * ) ) ,
this , SLOT ( objectAdded ( QObject * ) ) ) ;
QObject : : connect ( d - > m_ pluginManager, SIGNAL ( aboutToRemoveObject ( QObject * ) ) ,
QObject : : connect ( d - > m_ mainWindow- > pluginManager( ) , SIGNAL ( aboutToRemoveObject ( QObject * ) ) ,
this , SLOT ( aboutToRemoveObject ( QObject * ) ) ) ;
QObject : : connect ( d - > m_tabWidget , SIGNAL ( currentChanged ( int ) ) , this , SLOT ( currentTabChanged ( int ) ) ) ;