mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
- extended set of default categories - more tolerand bbcode parser - added a few colors for the bbcode parser - more fixes to qt5 compatibility - started work on ability to unloading (and thus re-loading) of plugins - names of plugins are no longer localizable (because those names are also used to store settings) - added settings to disable individual diagnosis settings - path of dependencies is now configured in a .pri file instead of environment variablees - bugfix: if the modid-input is canceled, the id was saved as -1 and wasn't re-requested from the user - bugfix: moving files with the SHFileOperation-Api didn't update the vfs correctly (still not perfect but better) - bugfix: attempt to remove the deleter-file seems to have caused error messages for some users - bugfix: fixed a couple of cases that might have caused the tutorial to hang
80 lines
2.4 KiB
C++
80 lines
2.4 KiB
C++
#ifndef PROXYPLUGINWRAPPERS_H
|
|
#define PROXYPLUGINWRAPPERS_H
|
|
|
|
|
|
#include <iplugintool.h>
|
|
#include <iplugininstallersimple.h>
|
|
#include <iplugininstallercustom.h>
|
|
|
|
#ifndef Q_MOC_RUN
|
|
#include <boost/python.hpp>
|
|
#endif
|
|
|
|
|
|
class IPluginWrapper : public boost::python::wrapper<MOBase::IPlugin>
|
|
{
|
|
public:
|
|
virtual bool init(MOBase::IOrganizer *moInfo);
|
|
virtual QString name() const;
|
|
virtual QString author() const;
|
|
virtual QString description() const;
|
|
virtual MOBase::VersionInfo version() const;
|
|
virtual bool isActive() const;
|
|
virtual QList<MOBase::PluginSetting> settings() const;
|
|
};
|
|
|
|
|
|
class IPluginToolWrapper: public MOBase::IPluginTool, public boost::python::wrapper<MOBase::IPluginTool>
|
|
{
|
|
Q_OBJECT
|
|
Q_INTERFACES(MOBase::IPlugin MOBase::IPluginTool)
|
|
|
|
public:
|
|
virtual bool init(MOBase::IOrganizer *moInfo);
|
|
virtual QString name() const;
|
|
virtual QString author() const;
|
|
virtual QString description() const;
|
|
virtual MOBase::VersionInfo version() const;
|
|
virtual bool isActive() const;
|
|
virtual QList<MOBase::PluginSetting> settings() const;
|
|
|
|
virtual QString displayName() const;
|
|
virtual QString tooltip() const;
|
|
virtual QIcon icon() const;
|
|
virtual void setParentWidget(QWidget *parent);
|
|
|
|
public slots:
|
|
virtual void display() const;
|
|
};
|
|
|
|
|
|
class IPluginInstallerCustomWrapper: public MOBase::IPluginInstallerCustom, public boost::python::wrapper<MOBase::IPluginInstallerCustom>
|
|
{
|
|
Q_OBJECT
|
|
Q_INTERFACES(MOBase::IPlugin MOBase::IPluginInstaller MOBase::IPluginInstallerCustom)
|
|
|
|
public:
|
|
virtual bool init(MOBase::IOrganizer *moInfo);
|
|
virtual QString name() const;
|
|
virtual QString author() const;
|
|
virtual QString description() const;
|
|
virtual MOBase::VersionInfo version() const;
|
|
virtual bool isActive() const;
|
|
virtual QList<MOBase::PluginSetting> settings() const;
|
|
|
|
virtual unsigned int priority() const;
|
|
virtual bool isManualInstaller() const;
|
|
virtual bool isArchiveSupported(const MOBase::DirectoryTree &tree) const;
|
|
virtual bool isArchiveSupported(const QString &archiveName) const;
|
|
virtual std::set<QString> supportedExtensions() const;
|
|
virtual EInstallResult install(MOBase::GuessedValue<QString> &modName, const QString &archiveName,
|
|
const QString &version, int modID);
|
|
virtual void setParentWidget(QWidget *parent);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // PROXYPLUGINWRAPPERS_H
|