projectmanager.h 522 B

12345678910111213141516171819202122232425262728
  1. #ifndef __PROJECTMANAGER_H__
  2. #define __PROJECTMANAGER_H__
  3. #include <QObject>
  4. #include <libxml/parser.h>
  5. #include <libxml/tree.h>
  6. class ProjectManager : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit ProjectManager(QObject *parent = nullptr);
  11. ~ProjectManager();
  12. bool openProject(const QString &fileName);
  13. void closeProject();
  14. xmlNodePtr canvas(const int &index);
  15. int canvasCount() const;
  16. private:
  17. xmlDocPtr m_xmlDocPtr;
  18. QList<xmlNodePtr> m_canvasList;
  19. };
  20. #endif // PROJECTMANAGER_H