diff --git a/configure.ac b/configure.ac index bda5a50fe..a86dd74fc 100644 --- a/configure.ac +++ b/configure.ac @@ -187,6 +187,7 @@ src/plugins/io_vfield/Makefile src/plugins/io_xyz/Makefile src/plugins/method_mopac71/Makefile src/plugins/method_mopac71/mopac7.1/Makefile +src/plugins/tool_rings/Makefile src/plugins/tool_test/Makefile src/sg/Makefile src/templates/Makefile diff --git a/src/main/plugins.cpp b/src/main/plugins.cpp index a692d7864..569e55e48 100644 --- a/src/main/plugins.cpp +++ b/src/main/plugins.cpp @@ -33,6 +33,9 @@ bool Aten::registerPlugin(QObject* plugin, QString filename) FilePluginInterface* filePlugin = qobject_cast(plugin); if (filePlugin) { + // If the plugin is disabled, don't register it + if (!filePlugin->enabled()) return true; + filePlugin->setPluginFilename(filename); filePlugin->setPluginStore(&pluginStore_); pluginStore_.registerFilePlugin(filePlugin); @@ -43,6 +46,9 @@ bool Aten::registerPlugin(QObject* plugin, QString filename) MethodPluginInterface* methodPlugin = qobject_cast(plugin); if (methodPlugin) { + // If the plugin is disabled, don't register it + if (!methodPlugin->enabled()) return true; + methodPlugin->setPluginFilename(filename); methodPlugin->setPluginStore(&pluginStore_); pluginStore_.registerMethodPlugin(methodPlugin); @@ -53,6 +59,9 @@ bool Aten::registerPlugin(QObject* plugin, QString filename) ToolPluginInterface* toolPlugin = qobject_cast(plugin); if (toolPlugin) { + // If the plugin is disabled, don't register it + if (!toolPlugin->enabled()) return true; + toolPlugin->setPluginFilename(filename); toolPlugin->setPluginStore(&pluginStore_); pluginStore_.registerToolPlugin(toolPlugin); diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 17421f397..8df274b58 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -36,4 +36,5 @@ add_subdirectory(io_sybylmol2) add_subdirectory(io_vfield) add_subdirectory(io_xyz) add_subdirectory(method_mopac71) +add_subdirectory(tool_rings) add_subdirectory(tool_test) diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 11588055c..393251311 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -2,7 +2,7 @@ SUBDIRS = interfaces SUBDIRS += io_akf io_chemshell io_cif io_cube io_dlpoly io_dlputils io_epsr io_ff io_gamessus io_gromacs io_mdlmol io_mopac io_msi io_pdb io_rmcprofile io_sybylmol2 io_vfield io_xyz #SUBDIRS += io_csd io_espresso io_gaussian io_siesta SUBDIRS += method_mopac71 -SUBDIRS += tool_test +SUBDIRS += tool_rings tool_test noinst_LTLIBRARIES = libplugins.la diff --git a/src/plugins/interfaces/baseplugin.h b/src/plugins/interfaces/baseplugin.h index 9be2d1469..bcfd9ae31 100644 --- a/src/plugins/interfaces/baseplugin.h +++ b/src/plugins/interfaces/baseplugin.h @@ -23,10 +23,8 @@ #define ATEN_BASEPLUGININTERFACE_H #include "plugins/plugintypes.h" -#include "model/model.h" -#include "ff/forcefield.h" -#include "base/grid.h" #include "base/kvmap.h" +#include "base/messenger.h" #include "templates/list.h" #include @@ -76,6 +74,8 @@ class BasePluginInterface : public ListItem virtual QString description() const = 0; // Return nickname of plugin virtual QString nickname() const = 0; + // Return whether plugin is enabled + virtual bool enabled() const = 0; /* @@ -97,15 +97,13 @@ class BasePluginInterface : public ListItem // Options specific to this plugin KVMap pluginOptions_; - protected: + public: // Return conversion of supplied QString to bool - bool toBool(QString string) + static bool toBool(QString string) { - if ((string.toInt() == 1) || (string.toLower() == "false")) return false; - return true; + if ((string.toInt() == 1) || (string.toLower() == "true") || (string.toLower() == "on")) return true; + return false; } - - public: // Set plugin option bool setOption(QString optionName, QString optionValue) { diff --git a/src/plugins/interfaces/fileplugin.h b/src/plugins/interfaces/fileplugin.h index b5f901f50..b1365a60d 100644 --- a/src/plugins/interfaces/fileplugin.h +++ b/src/plugins/interfaces/fileplugin.h @@ -31,6 +31,8 @@ #include "base/messenger.h" #include "base/fileparser.h" #include "base/namespace.h" +#include "base/grid.h" +#include "ff/forcefield.h" #include "templates/reflist.h" #include #include @@ -617,8 +619,6 @@ class FilePluginInterface : public BasePluginInterface protected: // Standard options FilePluginStandardImportOptions standardOptions_; - // Options specific to this plugin - KVMap pluginOptions_; public: // Return whether the plugin has import options @@ -644,39 +644,6 @@ class FilePluginInterface : public BasePluginInterface { return standardOptions_; } - // Set plugin option - bool setOption(QString optionName, QString optionValue) - { - // Search for this option in pluginOptions_ - KVPair* pair = pluginOptions_.search(optionName); - if (pair) pair->setValue(optionValue); - else - { - Messenger::error("Option '" + optionName + "' is not recognised by this plugin."); - Messenger::error("Available options are: " + pluginOptions_.keys()); - return false; - } - return true; - } - // Set plugin options - bool setOptions(KVMap options) - { - bool result = true; - for (KVPair* pair = options.pairs(); pair != NULL; pair = pair->next) if (!setOption(pair->key(), pair->value())) result = false; - - return result; - } - // Return options specific to this plugin (read-only) - const KVMap& pluginOptions() - { - return pluginOptions_; - } - // Return conversion of supplied QString to bool - static bool toBool(QString string) - { - if ((string.toInt() == 1) || (string.toLower() == "true") || (string.toLower() == "on")) return true; - return false; - } }; ATEN_END_NAMESPACE diff --git a/src/plugins/interfaces/methodplugin.h b/src/plugins/interfaces/methodplugin.h index 06279b23e..7557030c5 100644 --- a/src/plugins/interfaces/methodplugin.h +++ b/src/plugins/interfaces/methodplugin.h @@ -185,10 +185,6 @@ class MethodPluginInterface : public BasePluginInterface /* * Options */ - protected: - // Options specific to this plugin - KVMap pluginOptions_; - public: // Return whether the plugin has options virtual bool hasOptions() = 0; diff --git a/src/plugins/interfaces/toolplugin.h b/src/plugins/interfaces/toolplugin.h index 08cad5fd6..ca27a6a8f 100644 --- a/src/plugins/interfaces/toolplugin.h +++ b/src/plugins/interfaces/toolplugin.h @@ -109,8 +109,6 @@ class ToolPluginInterface : public BasePluginInterface * Tool Definition */ protected: - // Options specific to this plugin - KVMap pluginOptions_; // Dialog for tool (if there is one) QDialog* dialog_; @@ -121,8 +119,6 @@ class ToolPluginInterface : public BasePluginInterface virtual QIcon buttonIcon() const = 0; // Return group name for tool (used to group similar tools together) virtual QString groupName() const = 0; - // Return whether the tool is enabled (appears in the GUI) - virtual bool isEnabled() const = 0; // Return whether the tool has a dialog virtual bool hasDialog() const = 0; // Show the dialog for the tool diff --git a/src/plugins/io_akf/akf.hui b/src/plugins/io_akf/akf.hui index 9b081410d..fc3c985a7 100644 --- a/src/plugins/io_akf/akf.hui +++ b/src/plugins/io_akf/akf.hui @@ -76,6 +76,8 @@ class AKFModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_akf/akf_funcs.cpp b/src/plugins/io_akf/akf_funcs.cpp index f8b1e3898..92daac1f3 100644 --- a/src/plugins/io_akf/akf_funcs.cpp +++ b/src/plugins/io_akf/akf_funcs.cpp @@ -112,6 +112,12 @@ QString AKFModelPlugin::nickname() const return QString("akf"); } +// Return whether the plugin is enabled +bool AKFModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString AKFModelPlugin::description() const { diff --git a/src/plugins/io_chemshell/chemshell.hui b/src/plugins/io_chemshell/chemshell.hui index 2ad5f0688..34690cfce 100644 --- a/src/plugins/io_chemshell/chemshell.hui +++ b/src/plugins/io_chemshell/chemshell.hui @@ -65,6 +65,8 @@ class ChemShellModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_chemshell/chemshell_funcs.cpp b/src/plugins/io_chemshell/chemshell_funcs.cpp index a161271ec..8a102fa07 100644 --- a/src/plugins/io_chemshell/chemshell_funcs.cpp +++ b/src/plugins/io_chemshell/chemshell_funcs.cpp @@ -74,6 +74,12 @@ QString ChemShellModelPlugin::nickname() const return QString("chemshell"); } +// Return whether the plugin is enabled +bool ChemShellModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString ChemShellModelPlugin::description() const { diff --git a/src/plugins/io_cif/cif.hui b/src/plugins/io_cif/cif.hui index df2aa315e..9aa9a5c20 100644 --- a/src/plugins/io_cif/cif.hui +++ b/src/plugins/io_cif/cif.hui @@ -64,6 +64,8 @@ class CIFModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_cif/cif_funcs.cpp b/src/plugins/io_cif/cif_funcs.cpp index e9b89c46d..e3511f53b 100644 --- a/src/plugins/io_cif/cif_funcs.cpp +++ b/src/plugins/io_cif/cif_funcs.cpp @@ -71,6 +71,12 @@ QString CIFModelPlugin::nickname() const return QString("cif"); } +// Return whether the plugin is enabled +bool CIFModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString CIFModelPlugin::description() const { diff --git a/src/plugins/io_csd/csd.hui b/src/plugins/io_csd/csd.hui index b41112596..6b85c04d0 100644 --- a/src/plugins/io_csd/csd.hui +++ b/src/plugins/io_csd/csd.hui @@ -64,6 +64,8 @@ class CSDModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_csd/csd_funcs.cpp b/src/plugins/io_csd/csd_funcs.cpp index 27141507e..60fc55171 100644 --- a/src/plugins/io_csd/csd_funcs.cpp +++ b/src/plugins/io_csd/csd_funcs.cpp @@ -70,6 +70,12 @@ QString CSDModelPlugin::nickname() const return QString("csd"); } +// Return whether the plugin is enabled +bool CSDModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString CSDModelPlugin::description() const { diff --git a/src/plugins/io_cube/cube.hui b/src/plugins/io_cube/cube.hui index 2ce38b55b..cb5875c41 100644 --- a/src/plugins/io_cube/cube.hui +++ b/src/plugins/io_cube/cube.hui @@ -64,6 +64,8 @@ class CUBEModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_cube/cube_funcs.cpp b/src/plugins/io_cube/cube_funcs.cpp index 63a60246f..60af81c06 100644 --- a/src/plugins/io_cube/cube_funcs.cpp +++ b/src/plugins/io_cube/cube_funcs.cpp @@ -70,6 +70,12 @@ QString CUBEModelPlugin::nickname() const return QString("cube"); } +// Return whether the plugin is enabled +bool CUBEModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString CUBEModelPlugin::description() const { diff --git a/src/plugins/io_dlpoly/common.cpp b/src/plugins/io_dlpoly/common.cpp index b0eef4bfd..e2dcf6360 100644 --- a/src/plugins/io_dlpoly/common.cpp +++ b/src/plugins/io_dlpoly/common.cpp @@ -130,7 +130,7 @@ bool DLPOLYPluginCommon::readCONFIGModel ( FilePluginInterface* plugin, FilePars } while ( (!parser.eofOrBlank()) ); // Shift atoms by half-cell - bool shift = FilePluginInterface::toBool(plugin->pluginOptions().value("shiftCell")); + bool shift = BasePluginInterface::toBool(plugin->pluginOptions().value("shiftCell")); if (shift && targetModel->isPeriodic()) { targetModel->selectAll(true); @@ -211,8 +211,8 @@ bool DLPOLYPluginCommon::writeCONFIGModel (FilePluginInterface* plugin, FilePars // Write atom information int k=1; - bool useTypeNames = FilePluginInterface::toBool(plugin->pluginOptions().value("useTypeNames")); - bool shift = (FilePluginInterface::toBool(plugin->pluginOptions().value("shiftCell")) && sourceModel->isPeriodic()); + bool useTypeNames = BasePluginInterface::toBool(plugin->pluginOptions().value("useTypeNames")); + bool shift = (BasePluginInterface::toBool(plugin->pluginOptions().value("shiftCell")) && sourceModel->isPeriodic()); Vec3 r; for ( Atom* i = sourceModel->atoms(); i != NULL; i = i->next ) { @@ -385,7 +385,7 @@ bool DLPOLYPluginCommon::readUnformattedFrame(FilePluginInterface* plugin, FileP // Create atoms - if we read in atom information in the header we will have the names and masses // If these arrays are empty, use the parent model. If it doesn't contain enough atoms, create a dummy atom Atom* i = targetModel->parent()->atoms(), *j; - bool shiftCell = FilePluginInterface::toBool(plugin->pluginOptions().value("shiftCell")); + bool shiftCell = BasePluginInterface::toBool(plugin->pluginOptions().value("shiftCell")); Vec3 r; for (int n = 0; n0){ if (nInter>0){ - int readInter=FilePluginInterface::toBool(plugin->pluginOptions().value("interstitial")); + int readInter=BasePluginInterface::toBool(plugin->pluginOptions().value("interstitial")); if (readInter){ do { if ( !parser.parseLine() ) { @@ -635,7 +635,7 @@ bool DLPOLYPluginCommon::readDEFECTSModel ( FilePluginInterface* plugin, FilePar } if (nVac>0) { - int readVac=FilePluginInterface::toBool(plugin->pluginOptions().value("vacancy")); + int readVac=BasePluginInterface::toBool(plugin->pluginOptions().value("vacancy")); if (readVac){ do { if ( !parser.parseLine() ) { @@ -658,7 +658,7 @@ bool DLPOLYPluginCommon::readDEFECTSModel ( FilePluginInterface* plugin, FilePar } // Shift atoms by half-cell - bool shift = FilePluginInterface::toBool(plugin->pluginOptions().value("shiftCell")); + bool shift = BasePluginInterface::toBool(plugin->pluginOptions().value("shiftCell")); if (shift && targetModel->isPeriodic()) { targetModel->selectAll(true); diff --git a/src/plugins/io_dlpoly/defects4.hui b/src/plugins/io_dlpoly/defects4.hui index ba755a46f..780d7f217 100644 --- a/src/plugins/io_dlpoly/defects4.hui +++ b/src/plugins/io_dlpoly/defects4.hui @@ -61,6 +61,8 @@ class DLP4DefectsPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_dlpoly/defects4_funcs.cpp b/src/plugins/io_dlpoly/defects4_funcs.cpp index 9a17d2b87..a6a643bfb 100644 --- a/src/plugins/io_dlpoly/defects4_funcs.cpp +++ b/src/plugins/io_dlpoly/defects4_funcs.cpp @@ -81,6 +81,12 @@ QString DLP4DefectsPlugin::nickname() const return QString("dlpoly4def"); } +// Return whether the plugin is enabled +bool DLP4DefectsPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString DLP4DefectsPlugin::description() const { diff --git a/src/plugins/io_dlpoly/dlp2.hui b/src/plugins/io_dlpoly/dlp2.hui index f91e6f5a7..38f99c633 100644 --- a/src/plugins/io_dlpoly/dlp2.hui +++ b/src/plugins/io_dlpoly/dlp2.hui @@ -65,6 +65,8 @@ class DLP2ModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_dlpoly/dlp2_funcs.cpp b/src/plugins/io_dlpoly/dlp2_funcs.cpp index 2c3e78e77..f25dfd3b4 100644 --- a/src/plugins/io_dlpoly/dlp2_funcs.cpp +++ b/src/plugins/io_dlpoly/dlp2_funcs.cpp @@ -83,6 +83,12 @@ QString DLP2ModelPlugin::nickname() const return QString ( "dlpoly2" ); } +// Return whether the plugin is enabled +bool DLP2ModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString DLP2ModelPlugin::description() const { diff --git a/src/plugins/io_dlpoly/dlp4.hui b/src/plugins/io_dlpoly/dlp4.hui index f6dbaaf7d..1bcad3411 100644 --- a/src/plugins/io_dlpoly/dlp4.hui +++ b/src/plugins/io_dlpoly/dlp4.hui @@ -62,6 +62,8 @@ class DLP4ModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_dlpoly/dlp4_funcs.cpp b/src/plugins/io_dlpoly/dlp4_funcs.cpp index 36da5469c..e3d9235db 100644 --- a/src/plugins/io_dlpoly/dlp4_funcs.cpp +++ b/src/plugins/io_dlpoly/dlp4_funcs.cpp @@ -81,6 +81,12 @@ QString DLP4ModelPlugin::nickname() const return QString ( "dlpoly4" ); } +// Return whether the plugin is enabled +bool DLP4ModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString DLP4ModelPlugin::description() const { diff --git a/src/plugins/io_dlpoly/field.hui b/src/plugins/io_dlpoly/field.hui index ca7ee1790..12ae9696b 100644 --- a/src/plugins/io_dlpoly/field.hui +++ b/src/plugins/io_dlpoly/field.hui @@ -61,6 +61,8 @@ class DLPExpressionPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_dlpoly/field_funcs.cpp b/src/plugins/io_dlpoly/field_funcs.cpp index 66ff23012..6ac5bc2ca 100644 --- a/src/plugins/io_dlpoly/field_funcs.cpp +++ b/src/plugins/io_dlpoly/field_funcs.cpp @@ -78,6 +78,12 @@ QString DLPExpressionPlugin::nickname() const return QString("dlpolyfield"); } +// Return whether the plugin is enabled +bool DLPExpressionPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString DLPExpressionPlugin::description() const { diff --git a/src/plugins/io_dlpoly/history2.hui b/src/plugins/io_dlpoly/history2.hui index c11dfb19a..386e447dc 100644 --- a/src/plugins/io_dlpoly/history2.hui +++ b/src/plugins/io_dlpoly/history2.hui @@ -63,6 +63,8 @@ class DLP2TrajectoryPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_dlpoly/history2_funcs.cpp b/src/plugins/io_dlpoly/history2_funcs.cpp index c3adac302..459908bee 100644 --- a/src/plugins/io_dlpoly/history2_funcs.cpp +++ b/src/plugins/io_dlpoly/history2_funcs.cpp @@ -81,6 +81,12 @@ QString DLP2TrajectoryPlugin::nickname() const return QString("dlpoly2his"); } +// Return whether the plugin is enabled +bool DLP2TrajectoryPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString DLP2TrajectoryPlugin::description() const { diff --git a/src/plugins/io_dlpoly/history4.hui b/src/plugins/io_dlpoly/history4.hui index ee4975462..e83dd96f0 100644 --- a/src/plugins/io_dlpoly/history4.hui +++ b/src/plugins/io_dlpoly/history4.hui @@ -62,6 +62,8 @@ class DLP4TrajectoryPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_dlpoly/history4_funcs.cpp b/src/plugins/io_dlpoly/history4_funcs.cpp index b30c388b9..47150beba 100644 --- a/src/plugins/io_dlpoly/history4_funcs.cpp +++ b/src/plugins/io_dlpoly/history4_funcs.cpp @@ -79,6 +79,12 @@ QString DLP4TrajectoryPlugin::nickname() const return QString("dlpoly4his"); } +// Return whether the plugin is enabled +bool DLP4TrajectoryPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString DLP4TrajectoryPlugin::description() const { diff --git a/src/plugins/io_dlputils/pdens.hui b/src/plugins/io_dlputils/pdens.hui index e05b0b596..90ba5bf77 100644 --- a/src/plugins/io_dlputils/pdens.hui +++ b/src/plugins/io_dlputils/pdens.hui @@ -64,6 +64,8 @@ class PDensGridPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_dlputils/pdens_funcs.cpp b/src/plugins/io_dlputils/pdens_funcs.cpp index bd157cc4a..b222a4560 100644 --- a/src/plugins/io_dlputils/pdens_funcs.cpp +++ b/src/plugins/io_dlputils/pdens_funcs.cpp @@ -70,6 +70,12 @@ QString PDensGridPlugin::nickname() const return QString("pdens"); } +// Return whether the plugin is enabled +bool PDensGridPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString PDensGridPlugin::description() const { diff --git a/src/plugins/io_dlputils/surface.hui b/src/plugins/io_dlputils/surface.hui index a3713a402..389a7fd0c 100644 --- a/src/plugins/io_dlputils/surface.hui +++ b/src/plugins/io_dlputils/surface.hui @@ -64,6 +64,8 @@ class SurfaceGridPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_dlputils/surface_funcs.cpp b/src/plugins/io_dlputils/surface_funcs.cpp index fca74fad9..2f5314719 100644 --- a/src/plugins/io_dlputils/surface_funcs.cpp +++ b/src/plugins/io_dlputils/surface_funcs.cpp @@ -70,6 +70,12 @@ QString SurfaceGridPlugin::nickname() const return QString("dlpsurf"); } +// Return whether the plugin is enabled +bool SurfaceGridPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString SurfaceGridPlugin::description() const { diff --git a/src/plugins/io_epsr/ato.hui b/src/plugins/io_epsr/ato.hui index 308873bcc..6fefb1753 100644 --- a/src/plugins/io_epsr/ato.hui +++ b/src/plugins/io_epsr/ato.hui @@ -64,6 +64,8 @@ class EPSRAtoModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_epsr/ato_funcs.cpp b/src/plugins/io_epsr/ato_funcs.cpp index 8c4cf855b..ab45d9bb5 100644 --- a/src/plugins/io_epsr/ato_funcs.cpp +++ b/src/plugins/io_epsr/ato_funcs.cpp @@ -89,6 +89,12 @@ QString EPSRAtoModelPlugin::nickname() const return QString("epsrato"); } +// Return whether the plugin is enabled +bool EPSRAtoModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString EPSRAtoModelPlugin::description() const { diff --git a/src/plugins/io_epsr/mol.hui b/src/plugins/io_epsr/mol.hui index 6a32e34f8..9e6870a55 100644 --- a/src/plugins/io_epsr/mol.hui +++ b/src/plugins/io_epsr/mol.hui @@ -64,6 +64,8 @@ class EPSRMolModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_epsr/mol_funcs.cpp b/src/plugins/io_epsr/mol_funcs.cpp index 7cbd0931f..859dbea23 100644 --- a/src/plugins/io_epsr/mol_funcs.cpp +++ b/src/plugins/io_epsr/mol_funcs.cpp @@ -84,6 +84,12 @@ QString EPSRMolModelPlugin::nickname() const return QString("epsrmol"); } +// Return whether the plugin is enabled +bool EPSRMolModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString EPSRMolModelPlugin::description() const { diff --git a/src/plugins/io_espresso/espressoin.hui b/src/plugins/io_espresso/espressoin.hui index c9c10fa7f..bee0fedae 100644 --- a/src/plugins/io_espresso/espressoin.hui +++ b/src/plugins/io_espresso/espressoin.hui @@ -59,6 +59,8 @@ class QEInModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_espresso/espressoin_funcs.cpp b/src/plugins/io_espresso/espressoin_funcs.cpp index 51533a383..3f6c07177 100644 --- a/src/plugins/io_espresso/espressoin_funcs.cpp +++ b/src/plugins/io_espresso/espressoin_funcs.cpp @@ -70,6 +70,12 @@ QString QEInModelPlugin::nickname() const return QString("espresso"); } +// Return whether the plugin is enabled +bool QEInModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString QEInModelPlugin::description() const { diff --git a/src/plugins/io_espresso/espressoout.hui b/src/plugins/io_espresso/espressoout.hui index ca37cfbf3..91324f157 100644 --- a/src/plugins/io_espresso/espressoout.hui +++ b/src/plugins/io_espresso/espressoout.hui @@ -59,6 +59,8 @@ class QEOutModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_espresso/espressoout_funcs.cpp b/src/plugins/io_espresso/espressoout_funcs.cpp index 690dabf8f..e96c84a59 100644 --- a/src/plugins/io_espresso/espressoout_funcs.cpp +++ b/src/plugins/io_espresso/espressoout_funcs.cpp @@ -64,6 +64,12 @@ QString QEOutModelPlugin::nickname() const return QString("espresso"); } +// Return whether the plugin is enabled +bool QEOutModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString QEOutModelPlugin::description() const { diff --git a/src/plugins/io_ff/ff.hui b/src/plugins/io_ff/ff.hui index 87b3df10d..1177bda3e 100644 --- a/src/plugins/io_ff/ff.hui +++ b/src/plugins/io_ff/ff.hui @@ -64,6 +64,8 @@ class AtenExpressionPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_ff/ff_funcs.cpp b/src/plugins/io_ff/ff_funcs.cpp index b51eb9d1c..6b7edde13 100644 --- a/src/plugins/io_ff/ff_funcs.cpp +++ b/src/plugins/io_ff/ff_funcs.cpp @@ -71,6 +71,12 @@ QString AtenExpressionPlugin::nickname() const return QString("ff"); } +// Return whether the plugin is enabled +bool AtenExpressionPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString AtenExpressionPlugin::description() const { diff --git a/src/plugins/io_gamessus/gamessus.hui b/src/plugins/io_gamessus/gamessus.hui index 3e12e961b..b417e4f44 100644 --- a/src/plugins/io_gamessus/gamessus.hui +++ b/src/plugins/io_gamessus/gamessus.hui @@ -64,6 +64,8 @@ class GAMESSUSModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_gamessus/gamessus_funcs.cpp b/src/plugins/io_gamessus/gamessus_funcs.cpp index c9ae1e9b0..63651e362 100644 --- a/src/plugins/io_gamessus/gamessus_funcs.cpp +++ b/src/plugins/io_gamessus/gamessus_funcs.cpp @@ -71,6 +71,12 @@ QString GAMESSUSModelPlugin::nickname() const return QString("gamus"); } +// Return whether the plugin is enabled +bool GAMESSUSModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString GAMESSUSModelPlugin::description() const { diff --git a/src/plugins/io_gaussian/gaussian.hui b/src/plugins/io_gaussian/gaussian.hui index 8f7c5d366..7bed053a0 100644 --- a/src/plugins/io_gaussian/gaussian.hui +++ b/src/plugins/io_gaussian/gaussian.hui @@ -64,6 +64,8 @@ class GaussianModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_gaussian/gaussian_funcs.cpp b/src/plugins/io_gaussian/gaussian_funcs.cpp index 0eede080b..462f65af1 100644 --- a/src/plugins/io_gaussian/gaussian_funcs.cpp +++ b/src/plugins/io_gaussian/gaussian_funcs.cpp @@ -70,6 +70,12 @@ QString GaussianModelPlugin::nickname() const return QString("gaussian"); } +// Return whether the plugin is enabled +bool GaussianModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString GaussianModelPlugin::description() const { diff --git a/src/plugins/io_gromacs/gromacs.hui b/src/plugins/io_gromacs/gromacs.hui index c82bf7869..d77e17690 100644 --- a/src/plugins/io_gromacs/gromacs.hui +++ b/src/plugins/io_gromacs/gromacs.hui @@ -64,6 +64,8 @@ class GROMACSModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_gromacs/gromacs_funcs.cpp b/src/plugins/io_gromacs/gromacs_funcs.cpp index 2c5db7fc3..8ad3d707f 100644 --- a/src/plugins/io_gromacs/gromacs_funcs.cpp +++ b/src/plugins/io_gromacs/gromacs_funcs.cpp @@ -70,6 +70,12 @@ QString GROMACSModelPlugin::nickname() const return QString("gromacs"); } +// Return whether the plugin is enabled +bool GROMACSModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString GROMACSModelPlugin::description() const { diff --git a/src/plugins/io_mdlmol/mdlmol.hui b/src/plugins/io_mdlmol/mdlmol.hui index 095a555e8..ab024af84 100644 --- a/src/plugins/io_mdlmol/mdlmol.hui +++ b/src/plugins/io_mdlmol/mdlmol.hui @@ -64,6 +64,8 @@ class MOLModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_mdlmol/mdlmol_funcs.cpp b/src/plugins/io_mdlmol/mdlmol_funcs.cpp index d3e244491..b74e7546a 100644 --- a/src/plugins/io_mdlmol/mdlmol_funcs.cpp +++ b/src/plugins/io_mdlmol/mdlmol_funcs.cpp @@ -70,6 +70,12 @@ QString MOLModelPlugin::nickname() const return QString("mol"); } +// Return whether the plugin is enabled +bool MOLModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString MOLModelPlugin::description() const { diff --git a/src/plugins/io_mopac/mopacarc.hui b/src/plugins/io_mopac/mopacarc.hui index 12dc2bed4..41ddc218b 100644 --- a/src/plugins/io_mopac/mopacarc.hui +++ b/src/plugins/io_mopac/mopacarc.hui @@ -64,6 +64,8 @@ class MOPACArcModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_mopac/mopacarc_funcs.cpp b/src/plugins/io_mopac/mopacarc_funcs.cpp index d5397f80d..655350420 100644 --- a/src/plugins/io_mopac/mopacarc_funcs.cpp +++ b/src/plugins/io_mopac/mopacarc_funcs.cpp @@ -71,6 +71,12 @@ QString MOPACArcModelPlugin::nickname() const return QString("mopacarc"); } +// Return whether the plugin is enabled +bool MOPACArcModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString MOPACArcModelPlugin::description() const { diff --git a/src/plugins/io_mopac/mopaccontrol.hui b/src/plugins/io_mopac/mopaccontrol.hui index 2e6981925..0ad3fdd3a 100644 --- a/src/plugins/io_mopac/mopaccontrol.hui +++ b/src/plugins/io_mopac/mopaccontrol.hui @@ -64,6 +64,8 @@ class MOPACControlModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_mopac/mopaccontrol_funcs.cpp b/src/plugins/io_mopac/mopaccontrol_funcs.cpp index a19a69199..d924a5a18 100644 --- a/src/plugins/io_mopac/mopaccontrol_funcs.cpp +++ b/src/plugins/io_mopac/mopaccontrol_funcs.cpp @@ -83,6 +83,12 @@ QString MOPACControlModelPlugin::nickname() const return QString("mopaccontrol"); } +// Return whether the plugin is enabled +bool MOPACControlModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString MOPACControlModelPlugin::description() const { diff --git a/src/plugins/io_msi/msi.hui b/src/plugins/io_msi/msi.hui index a21561443..fe6f67602 100644 --- a/src/plugins/io_msi/msi.hui +++ b/src/plugins/io_msi/msi.hui @@ -64,6 +64,8 @@ class MSIModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_msi/msi_funcs.cpp b/src/plugins/io_msi/msi_funcs.cpp index 8d7be1651..d08461bbc 100644 --- a/src/plugins/io_msi/msi_funcs.cpp +++ b/src/plugins/io_msi/msi_funcs.cpp @@ -70,6 +70,12 @@ QString MSIModelPlugin::nickname() const return QString("msi"); } +// Return whether the plugin is enabled +bool MSIModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString MSIModelPlugin::description() const { diff --git a/src/plugins/io_pdb/pdb.hui b/src/plugins/io_pdb/pdb.hui index 329a27707..9157d993e 100644 --- a/src/plugins/io_pdb/pdb.hui +++ b/src/plugins/io_pdb/pdb.hui @@ -64,6 +64,8 @@ class PDBModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_pdb/pdb_funcs.cpp b/src/plugins/io_pdb/pdb_funcs.cpp index 5e357d3dc..552d46a12 100644 --- a/src/plugins/io_pdb/pdb_funcs.cpp +++ b/src/plugins/io_pdb/pdb_funcs.cpp @@ -78,6 +78,12 @@ QString PDBModelPlugin::nickname() const return QString("pdb"); } +// Return whether the plugin is enabled +bool PDBModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString PDBModelPlugin::description() const { diff --git a/src/plugins/io_rmcprofile/rmcp3.hui b/src/plugins/io_rmcprofile/rmcp3.hui index 6b9a6e0d0..cdfc224e3 100644 --- a/src/plugins/io_rmcprofile/rmcp3.hui +++ b/src/plugins/io_rmcprofile/rmcp3.hui @@ -64,6 +64,8 @@ class RMCProfile3ModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_rmcprofile/rmcp3_funcs.cpp b/src/plugins/io_rmcprofile/rmcp3_funcs.cpp index dbb5f4a7d..f23a13739 100644 --- a/src/plugins/io_rmcprofile/rmcp3_funcs.cpp +++ b/src/plugins/io_rmcprofile/rmcp3_funcs.cpp @@ -73,6 +73,12 @@ QString RMCProfile3ModelPlugin::nickname() const return QString("rmcp3???"); } +// Return whether the plugin is enabled +bool RMCProfile3ModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString RMCProfile3ModelPlugin::description() const { diff --git a/src/plugins/io_rmcprofile/rmcp6.hui b/src/plugins/io_rmcprofile/rmcp6.hui index 3b58f0a84..2fb5b33ba 100644 --- a/src/plugins/io_rmcprofile/rmcp6.hui +++ b/src/plugins/io_rmcprofile/rmcp6.hui @@ -64,6 +64,8 @@ class RMCProfile6ModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_rmcprofile/rmcp6_funcs.cpp b/src/plugins/io_rmcprofile/rmcp6_funcs.cpp index 819b9b479..198aae15e 100644 --- a/src/plugins/io_rmcprofile/rmcp6_funcs.cpp +++ b/src/plugins/io_rmcprofile/rmcp6_funcs.cpp @@ -75,6 +75,12 @@ QString RMCProfile6ModelPlugin::nickname() const return QString("rmc6f"); } +// Return whether the plugin is enabled +bool RMCProfile6ModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString RMCProfile6ModelPlugin::description() const { diff --git a/src/plugins/io_rmcprofile/rmcp6bonds.hui b/src/plugins/io_rmcprofile/rmcp6bonds.hui index d1ef81afc..fdb773f32 100644 --- a/src/plugins/io_rmcprofile/rmcp6bonds.hui +++ b/src/plugins/io_rmcprofile/rmcp6bonds.hui @@ -61,6 +61,8 @@ class RMCProfile6BondsModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_rmcprofile/rmcp6bonds_funcs.cpp b/src/plugins/io_rmcprofile/rmcp6bonds_funcs.cpp index 088219fe2..e6e515e0f 100644 --- a/src/plugins/io_rmcprofile/rmcp6bonds_funcs.cpp +++ b/src/plugins/io_rmcprofile/rmcp6bonds_funcs.cpp @@ -72,6 +72,12 @@ QString RMCProfile6BondsModelPlugin::nickname() const return QString("rmc6bonds"); } +// Return whether the plugin is enabled +bool RMCProfile6BondsModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString RMCProfile6BondsModelPlugin::description() const { diff --git a/src/plugins/io_siesta/siesta.hui b/src/plugins/io_siesta/siesta.hui index a4b32940b..90a96384b 100644 --- a/src/plugins/io_siesta/siesta.hui +++ b/src/plugins/io_siesta/siesta.hui @@ -64,6 +64,8 @@ class SiestaModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_siesta/siesta_funcs.cpp b/src/plugins/io_siesta/siesta_funcs.cpp index 330bfd93c..4431cfd41 100644 --- a/src/plugins/io_siesta/siesta_funcs.cpp +++ b/src/plugins/io_siesta/siesta_funcs.cpp @@ -70,6 +70,12 @@ QString SiestaModelPlugin::nickname() const return QString("siesta"); } +// Return whether the plugin is enabled +bool SiestaModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString SiestaModelPlugin::description() const { diff --git a/src/plugins/io_sybylmol2/mol2.hui b/src/plugins/io_sybylmol2/mol2.hui index 58da772ef..bdcb24d73 100644 --- a/src/plugins/io_sybylmol2/mol2.hui +++ b/src/plugins/io_sybylmol2/mol2.hui @@ -64,6 +64,8 @@ class Mol2ModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_sybylmol2/mol2_funcs.cpp b/src/plugins/io_sybylmol2/mol2_funcs.cpp index a749ea0e6..de4f5bd6d 100644 --- a/src/plugins/io_sybylmol2/mol2_funcs.cpp +++ b/src/plugins/io_sybylmol2/mol2_funcs.cpp @@ -70,6 +70,12 @@ QString Mol2ModelPlugin::nickname() const return QString("mol2"); } +// Return whether the plugin is enabled +bool Mol2ModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString Mol2ModelPlugin::description() const { diff --git a/src/plugins/io_vfield/vfield.hui b/src/plugins/io_vfield/vfield.hui index d2a66a01f..110e109ee 100644 --- a/src/plugins/io_vfield/vfield.hui +++ b/src/plugins/io_vfield/vfield.hui @@ -64,6 +64,8 @@ class VFieldModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_vfield/vfield_funcs.cpp b/src/plugins/io_vfield/vfield_funcs.cpp index d370c3731..c05575e2d 100644 --- a/src/plugins/io_vfield/vfield_funcs.cpp +++ b/src/plugins/io_vfield/vfield_funcs.cpp @@ -70,6 +70,12 @@ QString VFieldModelPlugin::nickname() const return QString("vfield"); } +// Return whether the plugin is enabled +bool VFieldModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString VFieldModelPlugin::description() const { diff --git a/src/plugins/io_xyz/xyz.hui b/src/plugins/io_xyz/xyz.hui index 0d3956c9c..b942f8c54 100644 --- a/src/plugins/io_xyz/xyz.hui +++ b/src/plugins/io_xyz/xyz.hui @@ -64,6 +64,8 @@ class XYZModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_xyz/xyz_funcs.cpp b/src/plugins/io_xyz/xyz_funcs.cpp index 561946f76..5e3651520 100644 --- a/src/plugins/io_xyz/xyz_funcs.cpp +++ b/src/plugins/io_xyz/xyz_funcs.cpp @@ -76,6 +76,12 @@ QString XYZModelPlugin::nickname() const return QString("xyz"); } +// Return whether the plugin is enabled +bool XYZModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString XYZModelPlugin::description() const { diff --git a/src/plugins/io_xyz/xyztraj.hui b/src/plugins/io_xyz/xyztraj.hui index f404ac439..8f8b4625c 100644 --- a/src/plugins/io_xyz/xyztraj.hui +++ b/src/plugins/io_xyz/xyztraj.hui @@ -64,6 +64,8 @@ class XYZTrajectoryPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/io_xyz/xyztraj_funcs.cpp b/src/plugins/io_xyz/xyztraj_funcs.cpp index 466197c00..741c9213f 100644 --- a/src/plugins/io_xyz/xyztraj_funcs.cpp +++ b/src/plugins/io_xyz/xyztraj_funcs.cpp @@ -73,6 +73,12 @@ QString XYZTrajectoryPlugin::nickname() const return QString("xyz"); } +// Return whether the plugin is enabled +bool XYZTrajectoryPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString XYZTrajectoryPlugin::description() const { diff --git a/src/plugins/method_mopac71/mopac71.hui b/src/plugins/method_mopac71/mopac71.hui index 72b9a8b02..45cf302d3 100644 --- a/src/plugins/method_mopac71/mopac71.hui +++ b/src/plugins/method_mopac71/mopac71.hui @@ -64,6 +64,8 @@ class MOPAC71MethodPlugin : public QObject, public MethodPluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; diff --git a/src/plugins/method_mopac71/mopac71_funcs.cpp b/src/plugins/method_mopac71/mopac71_funcs.cpp index f89909b12..cd9e7eb5f 100644 --- a/src/plugins/method_mopac71/mopac71_funcs.cpp +++ b/src/plugins/method_mopac71/mopac71_funcs.cpp @@ -74,6 +74,12 @@ QString MOPAC71MethodPlugin::nickname() const return QString("mopac71"); } +// Return whether the plugin is enabled +bool MOPAC71MethodPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString MOPAC71MethodPlugin::description() const { diff --git a/src/plugins/method_mopac71/mopac71control.hui b/src/plugins/method_mopac71/mopac71control.hui index c49dd662c..064773ffd 100644 --- a/src/plugins/method_mopac71/mopac71control.hui +++ b/src/plugins/method_mopac71/mopac71control.hui @@ -64,6 +64,8 @@ class MOPAC71ControlModelPlugin : public QObject, public FilePluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; // Return related file extensions diff --git a/src/plugins/method_mopac71/mopac71control_funcs.cpp b/src/plugins/method_mopac71/mopac71control_funcs.cpp index 5eb3e3a0b..f9fd86504 100644 --- a/src/plugins/method_mopac71/mopac71control_funcs.cpp +++ b/src/plugins/method_mopac71/mopac71control_funcs.cpp @@ -74,6 +74,12 @@ QString MOPAC71ControlModelPlugin::nickname() const return QString("mopac71control"); } +// Return whether the plugin is enabled +bool MOPAC71ControlModelPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString MOPAC71ControlModelPlugin::description() const { diff --git a/src/plugins/method_mopac71/mopac71opt.hui b/src/plugins/method_mopac71/mopac71opt.hui index 0cd448fec..6a0d9c1c0 100644 --- a/src/plugins/method_mopac71/mopac71opt.hui +++ b/src/plugins/method_mopac71/mopac71opt.hui @@ -64,6 +64,8 @@ class MOPAC71OptimisationPlugin : public QObject, public MethodPluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; diff --git a/src/plugins/method_mopac71/mopac71opt_funcs.cpp b/src/plugins/method_mopac71/mopac71opt_funcs.cpp index e23164b8a..e129ff8c2 100644 --- a/src/plugins/method_mopac71/mopac71opt_funcs.cpp +++ b/src/plugins/method_mopac71/mopac71opt_funcs.cpp @@ -75,6 +75,12 @@ QString MOPAC71OptimisationPlugin::nickname() const return QString("mopac71opt"); } +// Return whether the plugin is enabled +bool MOPAC71OptimisationPlugin::enabled() const +{ + return true; +} + // Description (long name) of plugin QString MOPAC71OptimisationPlugin::description() const { diff --git a/src/plugins/tool_test/testtool.hui b/src/plugins/tool_test/testtool.hui index 36fd5f2de..450eb4237 100644 --- a/src/plugins/tool_test/testtool.hui +++ b/src/plugins/tool_test/testtool.hui @@ -64,6 +64,8 @@ class TestToolPlugin : public QObject, public ToolPluginInterface QString name() const; // Return nickname of plugin QString nickname() const; + // Return whether plugin is enabled + bool enabled() const; // Return description (long name) of plugin QString description() const; diff --git a/src/plugins/tool_test/testtool_funcs.cpp b/src/plugins/tool_test/testtool_funcs.cpp index 8b71dbedc..e679719f6 100644 --- a/src/plugins/tool_test/testtool_funcs.cpp +++ b/src/plugins/tool_test/testtool_funcs.cpp @@ -79,6 +79,12 @@ QString TestToolPlugin::nickname() const return QString("testtool"); } +// Return whether the plugin is enabled +bool TestToolPlugin::enabled() const +{ + return false; +} + // Description (long name) of plugin QString TestToolPlugin::description() const {