Changed: Converted to new plugin spec.

This commit is contained in:
sfb 2011-10-22 16:58:55 -05:00
parent 621d0e2c45
commit 97379e3781
4 changed files with 14 additions and 38 deletions

View file

@ -0,0 +1,10 @@
<plugin-spec>
<library-name>ovqt_plugin_translation_manager</library-name>
<name>TranslationManager</name>
<version>0.8</version>
<vendor>Ryzom Core</vendor>
<description>Translation Manager plugin.</description>
<dependencies>
<dependency plugin-name="Core" version="0.8"/>
</dependencies>
</plugin-spec>

View file

@ -19,7 +19,7 @@
// Project system includes
#include "../core/icore.h"
#include "../core/core_constants.h"
#include "../core/imenu_manager.h"
#include "../core/menu_manager.h"
#include "../../extension_system/iplugin_spec.h"
// Qt includes
@ -124,7 +124,7 @@ void CMainWindow::createToolbar()
connect(mergeSingleFileAct, SIGNAL(triggered()), this, SLOT(mergeSingleFile()));
// Windows menu
Core::ICore *core = Core::ICore::instance();
Core::IMenuManager *menuManager = core->menuManager();
Core::MenuManager *menuManager = core->menuManager();
windowMenu = menuManager->menuBar()->addMenu("Window");
updateWindowsList();
connect(windowMenu, SIGNAL(aboutToShow()), this, SLOT(updateWindowsList()));

View file

@ -22,7 +22,7 @@
// Project system includes
#include "../core/icore.h"
#include "../core/core_constants.h"
#include "../core/imenu_manager.h"
#include "../core/menu_manager.h"
#include "../../extension_system/iplugin_spec.h"
// NeL includes
@ -66,7 +66,7 @@ bool TranslationManagerPlugin::initialize(ExtensionSystem::IPluginManager *plugi
void TranslationManagerPlugin::extensionsInitialized()
{
Core::ICore *core = Core::ICore::instance();
Core::IMenuManager *menuManager = core->menuManager();
Core::MenuManager *menuManager = core->menuManager();
//menuManager = _plugMan->getObject<Core::IMenuManager>();
// Menu Actions for plugin
QAction *aboutTManPlugin = new QAction("Translation Manager", this);
@ -89,34 +89,6 @@ void TranslationManagerPlugin::setNelContext(NLMISC::INelContext *nelContext)
_LibContext = new NLMISC::CLibraryContext(*nelContext);
}
QString TranslationManagerPlugin::name() const
{
return "Translation Manager";
}
QString TranslationManagerPlugin::version() const
{
return "0.1";
}
QString TranslationManagerPlugin::vendor() const
{
return "cemycc";
}
QString TranslationManagerPlugin::description() const
{
return "OVQT plugin for translation files.";
}
QStringList TranslationManagerPlugin::dependencies() const
{
QStringList list;
list.append(Core::Constants::OVQT_CORE_PLUGIN);
//list.append("ObjectViewer");
return list;
}
void TranslationManagerPlugin::addAutoReleasedObject(QObject *obj)
{
_plugMan->addObject(obj);

View file

@ -59,12 +59,6 @@ public:
void setNelContext(NLMISC::INelContext *nelContext);
QString name() const;
QString version() const;
QString vendor() const;
QString description() const;
QStringList dependencies() const;
void addAutoReleasedObject(QObject *obj);
QObject *objectByName(const QString &name) const;