Changed: Converted to new plugin spec.
--HG-- branch : gsoc2011-translationovqt
This commit is contained in:
parent
f658be4ab9
commit
b967f41eab
4 changed files with 14 additions and 38 deletions
|
@ -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>
|
|
@ -19,7 +19,7 @@
|
||||||
// Project system includes
|
// Project system includes
|
||||||
#include "../core/icore.h"
|
#include "../core/icore.h"
|
||||||
#include "../core/core_constants.h"
|
#include "../core/core_constants.h"
|
||||||
#include "../core/imenu_manager.h"
|
#include "../core/menu_manager.h"
|
||||||
#include "../../extension_system/iplugin_spec.h"
|
#include "../../extension_system/iplugin_spec.h"
|
||||||
|
|
||||||
// Qt includes
|
// Qt includes
|
||||||
|
@ -124,7 +124,7 @@ void CMainWindow::createToolbar()
|
||||||
connect(mergeSingleFileAct, SIGNAL(triggered()), this, SLOT(mergeSingleFile()));
|
connect(mergeSingleFileAct, SIGNAL(triggered()), this, SLOT(mergeSingleFile()));
|
||||||
// Windows menu
|
// Windows menu
|
||||||
Core::ICore *core = Core::ICore::instance();
|
Core::ICore *core = Core::ICore::instance();
|
||||||
Core::IMenuManager *menuManager = core->menuManager();
|
Core::MenuManager *menuManager = core->menuManager();
|
||||||
windowMenu = menuManager->menuBar()->addMenu("Window");
|
windowMenu = menuManager->menuBar()->addMenu("Window");
|
||||||
updateWindowsList();
|
updateWindowsList();
|
||||||
connect(windowMenu, SIGNAL(aboutToShow()), this, SLOT(updateWindowsList()));
|
connect(windowMenu, SIGNAL(aboutToShow()), this, SLOT(updateWindowsList()));
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// Project system includes
|
// Project system includes
|
||||||
#include "../core/icore.h"
|
#include "../core/icore.h"
|
||||||
#include "../core/core_constants.h"
|
#include "../core/core_constants.h"
|
||||||
#include "../core/imenu_manager.h"
|
#include "../core/menu_manager.h"
|
||||||
#include "../../extension_system/iplugin_spec.h"
|
#include "../../extension_system/iplugin_spec.h"
|
||||||
|
|
||||||
// NeL includes
|
// NeL includes
|
||||||
|
@ -66,7 +66,7 @@ bool TranslationManagerPlugin::initialize(ExtensionSystem::IPluginManager *plugi
|
||||||
void TranslationManagerPlugin::extensionsInitialized()
|
void TranslationManagerPlugin::extensionsInitialized()
|
||||||
{
|
{
|
||||||
Core::ICore *core = Core::ICore::instance();
|
Core::ICore *core = Core::ICore::instance();
|
||||||
Core::IMenuManager *menuManager = core->menuManager();
|
Core::MenuManager *menuManager = core->menuManager();
|
||||||
//menuManager = _plugMan->getObject<Core::IMenuManager>();
|
//menuManager = _plugMan->getObject<Core::IMenuManager>();
|
||||||
// Menu Actions for plugin
|
// Menu Actions for plugin
|
||||||
QAction *aboutTManPlugin = new QAction("Translation Manager", this);
|
QAction *aboutTManPlugin = new QAction("Translation Manager", this);
|
||||||
|
@ -89,34 +89,6 @@ void TranslationManagerPlugin::setNelContext(NLMISC::INelContext *nelContext)
|
||||||
_LibContext = new NLMISC::CLibraryContext(*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)
|
void TranslationManagerPlugin::addAutoReleasedObject(QObject *obj)
|
||||||
{
|
{
|
||||||
_plugMan->addObject(obj);
|
_plugMan->addObject(obj);
|
||||||
|
|
|
@ -59,12 +59,6 @@ public:
|
||||||
|
|
||||||
void setNelContext(NLMISC::INelContext *nelContext);
|
void setNelContext(NLMISC::INelContext *nelContext);
|
||||||
|
|
||||||
QString name() const;
|
|
||||||
QString version() const;
|
|
||||||
QString vendor() const;
|
|
||||||
QString description() const;
|
|
||||||
QStringList dependencies() const;
|
|
||||||
|
|
||||||
void addAutoReleasedObject(QObject *obj);
|
void addAutoReleasedObject(QObject *obj);
|
||||||
|
|
||||||
QObject *objectByName(const QString &name) const;
|
QObject *objectByName(const QString &name) const;
|
||||||
|
|
Loading…
Reference in a new issue