mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
32 lines
890 B
C++
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
|