QtNovelUI/WordsIDE/projectview.h

33 lines
712 B
C
Raw Normal View History

2022-11-17 08:26:05 +00:00
#ifndef PROJECTVIEW_H
#define PROJECTVIEW_H
#include <QTreeView>
#include <QWidget>
#include <ProjectManager.h>
namespace Components {
class ProjectView : public QTreeView
{
Q_OBJECT
public:
ProjectView(Project::ProjectManager *src, QWidget *parent=nullptr);
virtual ~ProjectView() = default;
signals:
void activeDocument(const QString &file_path, const QString &name);
private:
Project::ProjectManager *const files_mgr;
void explicit_active_document(const QModelIndex &curr);
void contexMenuPopup(const QPoint &pos);
void alloc_file(const QModelIndex &idx_it, const QString &suffix);
};
}
#endif // PROJECTVIEW_H