QtNovelUI/WordsIDE/projectpresent.h

41 lines
1011 B
C
Raw Normal View History

#ifndef PROJECTPRESENT_H
#define PROJECTPRESENT_H
2023-03-17 13:58:38 +00:00
#include "DocsManager.h"
#include "manager_docs.h"
#include <QTreeView>
#include <QWidget>
#include <commandsdispatcher.h>
#include <libProjectManager.h>
2023-08-27 14:09:46 +00:00
#include <splitpanel.h>
namespace Components {
/**
* @brief
*/
2023-08-27 14:09:46 +00:00
class ProjectPresent : public SplitFrame::FnWrap<ProjectPresent, false> {
Q_OBJECT
public:
2023-08-27 14:09:46 +00:00
explicit ProjectPresent(SplitFrame::ViewPresent *host, Schedule::CommandsDispatcher *core, Core::DocumentsManager *mgr,
QWidget *parent = nullptr);
2023-08-27 14:09:46 +00:00
QModelIndex currentIndex() const;
private:
2023-08-27 14:09:46 +00:00
Core::DocumentsManager *const project_manager;
Schedule::CommandsDispatcher *const source;
QTreeView *const view_present;
2023-08-27 14:09:46 +00:00
void menu_popup(const QPoint &p);
void open_target(const QModelIndex &t);
// FnWrap interface
public:
virtual void closeProcess() override;
};
}
#endif // PROJECTPRESENT_H