2014-02-16 15:16:14 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "BaseExternalTool.h"
|
|
|
|
|
2015-09-05 22:16:57 +05:30
|
|
|
#include "multimc_logic_export.h"
|
|
|
|
|
|
|
|
class MULTIMC_LOGIC_EXPORT MCEditTool : public BaseDetachedTool
|
2014-02-16 15:16:14 +05:30
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2015-02-09 06:21:14 +05:30
|
|
|
explicit MCEditTool(SettingsObjectPtr settings, InstancePtr instance, QObject *parent = 0);
|
2014-02-16 15:16:14 +05:30
|
|
|
|
|
|
|
protected:
|
2015-01-28 03:01:07 +05:30
|
|
|
QString getSave() const;
|
2014-02-16 15:16:14 +05:30
|
|
|
void runImpl() override;
|
|
|
|
};
|
|
|
|
|
2015-09-05 22:16:57 +05:30
|
|
|
class MULTIMC_LOGIC_EXPORT MCEditFactory : public BaseDetachedToolFactory
|
2014-02-16 15:16:14 +05:30
|
|
|
{
|
|
|
|
public:
|
|
|
|
QString name() const override { return "MCEdit"; }
|
2015-02-09 06:21:14 +05:30
|
|
|
void registerSettings(SettingsObjectPtr settings) override;
|
2014-03-30 23:41:05 +05:30
|
|
|
BaseExternalTool *createTool(InstancePtr instance, QObject *parent = 0) override;
|
2014-02-16 15:16:14 +05:30
|
|
|
bool check(QString *error) override;
|
|
|
|
bool check(const QString &path, QString *error) override;
|
|
|
|
};
|