42 lines
534 B
C++
42 lines
534 B
C++
#pragma once
|
|
|
|
#include "bindings.h"
|
|
|
|
#include <QWidget>
|
|
|
|
namespace Ui
|
|
{
|
|
class ProjectView;
|
|
}
|
|
|
|
class ProjectModel : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ProjectModel();
|
|
~ProjectModel();
|
|
|
|
bool open(QString fname);
|
|
|
|
private:
|
|
Project data;
|
|
};
|
|
|
|
class ProjectView : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ProjectView(QWidget *parent = nullptr);
|
|
~ProjectView();
|
|
|
|
QSharedPointer<ProjectModel> model();
|
|
|
|
private:
|
|
QSharedPointer<Ui::ProjectView> ui;
|
|
QSharedPointer<ProjectModel> proj;
|
|
};
|
|
|
|
// EOF
|