StelModuleMgr.cpp   StelModuleMgr.cpp 
skipping to change at line 30 skipping to change at line 30
#include <QDebug> #include <QDebug>
#include <QPluginLoader> #include <QPluginLoader>
#include <QSettings> #include <QSettings>
#include <QDir> #include <QDir>
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelFileMgr.hpp" #include "StelFileMgr.hpp"
#include "StelPluginInterface.hpp" #include "StelPluginInterface.hpp"
#include "StelPropertyMgr.hpp"
#include "StelIniParser.hpp" #include "StelIniParser.hpp"
StelModuleMgr::StelModuleMgr() : callingListsToRegenerate(true), pluginDesc riptorListLoaded(false) StelModuleMgr::StelModuleMgr() : callingListsToRegenerate(true), pluginDesc riptorListLoaded(false)
{ {
qRegisterMetaType<StelModule::StelModuleSelectAction>("StelModule::S telModuleSelectAction"); qRegisterMetaType<StelModule::StelModuleSelectAction>("StelModule::S telModuleSelectAction");
// Initialize empty call lists for each possible actions // Initialize empty call lists for each possible actions
callOrders[StelModule::ActionDraw]=QList<StelModule*>(); callOrders[StelModule::ActionDraw]=QList<StelModule*>();
callOrders[StelModule::ActionUpdate]=QList<StelModule*>(); callOrders[StelModule::ActionUpdate]=QList<StelModule*>();
callOrders[StelModule::ActionHandleMouseClicks]=QList<StelModule*>() ; callOrders[StelModule::ActionHandleMouseClicks]=QList<StelModule*>() ;
callOrders[StelModule::ActionHandleMouseMoves]=QList<StelModule*>(); callOrders[StelModule::ActionHandleMouseMoves]=QList<StelModule*>();
skipping to change at line 69 skipping to change at line 70
{ {
QString name = m->objectName(); QString name = m->objectName();
if (modules.contains(name)) if (modules.contains(name))
{ {
qWarning() << "Module" << name << "is already loaded."; qWarning() << "Module" << name << "is already loaded.";
return; return;
} }
modules.insert(name, m); modules.insert(name, m);
m->setParent(this); m->setParent(this);
//register with StelPropertyMgr
StelApp::getInstance().getStelPropertyManager()->registerObject(m);
if (fgenerateCallingLists) if (fgenerateCallingLists)
generateCallingLists(); generateCallingLists();
} }
/************************************************************************* /*************************************************************************
Unregister and delete a StelModule. Unregister and delete a StelModule.
*************************************************************************/ *************************************************************************/
void StelModuleMgr::unloadModule(const QString& moduleID, bool alsoDelete) void StelModuleMgr::unloadModule(const QString& moduleID, bool alsoDelete)
{ {
StelModule* m = getModule(moduleID); StelModule* m = getModule(moduleID);
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/