QtNovelUI/WordsIDE/projectview.h

39 lines
981 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);
void aboutToBoDelete(const QList<QFileInfo> &file_paths);
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();
QList<QStandardItem*> nodes_contained(QStandardItem *root);
};
}
#endif // PROJECTVIEW_H