QtNovelUI/WordsIDE/projectpresent.h

34 lines
741 B
C++

#ifndef PROJECTPRESENT_H
#define PROJECTPRESENT_H
#include "DocsManager.h"
#include "manager_docs.h"
#include <QTreeView>
#include <QWidget>
#include <commandsdispatcher.h>
#include <libProjectManager.h>
namespace Components {
/**
* @brief 项目视图
*/
class ProjectPresent : public QWidget {
Q_OBJECT
public:
explicit ProjectPresent(Schedule::CommandsDispatcher *core, DataModel::DocumentsManager *mgr, QWidget *parent = nullptr);
QModelIndex currentIndex() const;
private:
Schedule::CommandsDispatcher *const source;
QTreeView *const view_present;
void menu_popup(const QPoint &p);
void open_target(const QModelIndex &t);
};
}
#endif // PROJECTPRESENT_H