Skip to content

Commit

Permalink
Simulation Support plugin: removed our handling of the File Handling …
Browse files Browse the repository at this point in the history
…interface (#1630).
  • Loading branch information
agarny committed Apr 30, 2018
1 parent 073babe commit e78cc0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 89 deletions.
Expand Up @@ -43,90 +43,6 @@ PLUGININFO_FUNC SimulationSupportPluginInfo()
descriptions);
}

//==============================================================================
// File handling interface
//==============================================================================

bool SimulationSupportPlugin::saveFile(const QString &pOldFileName,
const QString &pNewFileName,
bool &pNeedFeedback)
{
Q_UNUSED(pOldFileName);
Q_UNUSED(pNewFileName);
Q_UNUSED(pNeedFeedback);

// We don't handle this interface...

return false;
}

//==============================================================================

void SimulationSupportPlugin::fileOpened(const QString &pFileName)
{
Q_UNUSED(pFileName);

// We don't handle this interface...
}

//==============================================================================

void SimulationSupportPlugin::filePermissionsChanged(const QString &pFileName)
{
Q_UNUSED(pFileName);

// We don't handle this interface...
}

//==============================================================================

void SimulationSupportPlugin::fileModified(const QString &pFileName)
{
Q_UNUSED(pFileName);

// We don't handle this interface...
}

//==============================================================================

void SimulationSupportPlugin::fileSaved(const QString &pFileName)
{
// The given file has been saved, so let our simulation manager know about
// it

SimulationManager::instance()->save(pFileName);
}

//==============================================================================

void SimulationSupportPlugin::fileReloaded(const QString &pFileName)
{
// The given file has been reloaded, so let our simulation manager know
// about it

SimulationManager::instance()->reload(pFileName);
}

//==============================================================================

void SimulationSupportPlugin::fileRenamed(const QString &pOldFileName,
const QString &pNewFileName)
{
// The given file has been renamed, so let our simulation manager know
// about it

SimulationManager::instance()->rename(pOldFileName, pNewFileName);
}

//==============================================================================

void SimulationSupportPlugin::fileClosed(const QString &pFileName)
{
Q_UNUSED(pFileName);

// We don't handle this interface...
}

//==============================================================================
// I18n interface
//==============================================================================
Expand Down
Expand Up @@ -25,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "filehandlinginterface.h"
#include "i18ninterface.h"
#include "plugininfo.h"
#include "simulationinterface.h"
Expand All @@ -41,19 +40,17 @@ PLUGININFO_FUNC SimulationSupportPluginInfo();

//==============================================================================

class SimulationSupportPlugin : public QObject, public FileHandlingInterface,
public I18nInterface, public SimulationInterface
class SimulationSupportPlugin : public QObject, public I18nInterface,
public SimulationInterface
{
Q_OBJECT

Q_PLUGIN_METADATA(IID "OpenCOR.SimulationSupportPlugin" FILE "simulationsupportplugin.json")

Q_INTERFACES(OpenCOR::FileHandlingInterface)
Q_INTERFACES(OpenCOR::I18nInterface)
Q_INTERFACES(OpenCOR::SimulationInterface)

public:
#include "filehandlinginterface.inl"
#include "i18ninterface.inl"
#include "simulationinterface.inl"
};
Expand Down

0 comments on commit e78cc0b

Please sign in to comment.