QtNovelUI/WordsIDE/projectview.h

36 lines
846 B
C++

#ifndef PROJECTVIEW_H
#define PROJECTVIEW_H
#include "appcore.h"
#include <QTreeView>
#include <QWidget>
#include <libProjectManager.h>
namespace Components {
class ProjectView : public QTreeView
{
Q_OBJECT
public:
ProjectView(Core::AppCore *src, Project::ProjectManager *project, QWidget *parent=nullptr);
virtual ~ProjectView() = default;
signals:
void activeDocument(const QString &file_path, const QString &name);
private:
Core::AppCore *const rtcore;
Project::ProjectManager *pjtins;
void explicit_active_document(const QModelIndex &curr);
void contexMenuPopup(const QPoint &pos);
void alloc_file(const QModelIndex &idx_it, const QString &type, const QString &suffix);
void project_configration();
};
}
#endif // PROJECTVIEW_H