#ifndef PROJECTPRESENT_H #define PROJECTPRESENT_H #include "DocsManager.h" #include "manager_docs.h" #include #include #include #include #include namespace Components { /** * @brief 项目视图 */ class ProjectPresent : public SplitFrame::FnWrap { Q_OBJECT public: explicit ProjectPresent(SplitFrame::ViewPresent *host, Schedule::CommandsDispatcher *core, Core::DocumentsManager *mgr, QWidget *parent = nullptr); QModelIndex currentIndex() const; private: Core::DocumentsManager *const project_manager; Schedule::CommandsDispatcher *const source; QTreeView *const view_present; void menu_popup(const QPoint &p); void open_target(const QModelIndex &t); // FnWrap interface public: virtual void closeProcess() override; }; } #endif // PROJECTPRESENT_H