QtNovelUI/WordsIDE/projectview.h

39 lines
981 B
C
Raw Normal View History

2022-11-17 08:26:05 +00:00
#ifndef PROJECTVIEW_H
#define PROJECTVIEW_H
#include "appcore.h"
2022-11-17 08:26:05 +00:00
#include <QTreeView>
#include <QWidget>
2022-11-18 23:47:32 +00:00
#include <libProjectManager.h>
2022-11-17 08:26:05 +00:00
namespace Components {
class ProjectView : public QTreeView
{
Q_OBJECT
public:
ProjectView(Core::AppCore *src, Project::ProjectManager *project, QWidget *parent=nullptr);
2022-11-17 08:26:05 +00:00
virtual ~ProjectView() = default;
signals:
void activeDocument(const QString &file_path, const QString &name);
2022-11-29 03:47:12 +00:00
void aboutToBoDelete(const QList<QFileInfo> &file_paths);
2022-11-17 08:26:05 +00:00
private:
Core::AppCore *const rtcore;
Project::ProjectManager *pjtins;
2022-11-17 08:26:05 +00:00
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();
2022-11-29 03:47:12 +00:00
QList<QStandardItem*> nodes_contained(QStandardItem *root);
2022-11-17 08:26:05 +00:00
};
}
#endif // PROJECTVIEW_H