vnote/src/widgets/editors/plantumlhelper.h
2021-08-19 20:32:52 +08:00

32 lines
890 B
C++

#ifndef PLANTUMLHELPER_H
#define PLANTUMLHELPER_H
#include "graphhelper.h"
namespace vnotex
{
class PlantUmlHelper : public GraphHelper
{
public:
void update(const QString &p_plantUmlJarFile,
const QString &p_graphvizFile,
const QString &p_overriddenCommand);
static PlantUmlHelper &getInst();
static QPair<bool, QString> testPlantUml(const QString &p_plantUmlJarFile);
private:
PlantUmlHelper() = default;
QStringList getFormatArgs(const QString &p_format) Q_DECL_OVERRIDE;
static void prepareProgramAndArgs(const QString &p_plantUmlJarFile,
const QString &p_graphvizFile,
QString &p_program,
QStringList &p_args);
};
}
#endif // PLANTUMLHELPER_H