#ifndef PROJECTPRESENT_H #define PROJECTPRESENT_H #include "DocsManager.h" #include "manager_docs.h" #include #include #include #include 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