33 lines
826 B
C++
33 lines
826 B
C++
#ifndef PROJECTMANAGER_H
|
|
#define PROJECTMANAGER_H
|
|
|
|
#include <QObject>
|
|
#include "global.h"
|
|
#include "export.hpp"
|
|
/****工程管理类
|
|
* 对工程进行管理
|
|
*****/
|
|
|
|
class DIAGRAM_DESIGNER_PUBLIC ProjectManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ProjectManager(QObject *parent = nullptr);
|
|
~ProjectManager();
|
|
static ProjectManager& instance();
|
|
|
|
void saveEditorDataToDB(QUuid,const QString&,const QString&,QByteArray);
|
|
QByteArray getEditorDataByName(const QString&);
|
|
|
|
void createEditor(const QString&);
|
|
void saveEditor(const QString&);
|
|
signals:
|
|
void createNewEditor(const QString& str,QUuid id);
|
|
void editorSaved(const QString& str,QUuid uid);
|
|
|
|
void prepareSaveEditor(QString);
|
|
private:
|
|
QMap<QString,DiagramEditorProjectInfo> _wizardInfo;
|
|
};
|
|
#endif // PROJECTMANAGER_H
|