|
|
|
@ -99,6 +99,9 @@ bool MainWindow::initialize(QString *errorString)
|
|
|
|
|
void MainWindow::extensionsInitialized()
|
|
|
|
|
{
|
|
|
|
|
readSettings();
|
|
|
|
|
connect(m_contextManager, SIGNAL(currentContextChanged(Core::IContext*)),
|
|
|
|
|
this, SLOT(updateContext(Core::IContext*)));
|
|
|
|
|
updateContext(m_contextManager->currentContext());
|
|
|
|
|
show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -122,6 +125,16 @@ ExtensionSystem::IPluginManager *MainWindow::pluginManager() const
|
|
|
|
|
return m_pluginManager;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::addContextObject(IContext *context)
|
|
|
|
|
{
|
|
|
|
|
m_undoGroup->addStack(context->undoStack());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::removeContextObject(IContext *context)
|
|
|
|
|
{
|
|
|
|
|
m_undoGroup->removeStack(context->undoStack());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::open()
|
|
|
|
|
{
|
|
|
|
|
m_contextManager->currentContext()->open();
|
|
|
|
@ -148,6 +161,11 @@ void MainWindow::about()
|
|
|
|
|
"<p> Ryzom Core team <p>Compiled on %1 %2").arg(__DATE__).arg(__TIME__));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::updateContext(Core::IContext *context)
|
|
|
|
|
{
|
|
|
|
|
m_undoGroup->setActiveStack(context->undoStack());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::closeEvent(QCloseEvent *event)
|
|
|
|
|
{
|
|
|
|
|
QList<ICoreListener *> listeners = m_pluginManager->getObjects<ICoreListener>();
|
|
|
|
|