QtNovelUI/WordsIDE/projectpresent.h

39 lines
909 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>
namespace Components {
/**
* @brief
*/
2023-03-17 13:58:38 +00:00
class ProjectPresent : public QWidget, public MakeTools::PresentBase {
Q_OBJECT
public:
2023-03-17 13:58:38 +00:00
explicit ProjectPresent(Schedule::CommandsDispatcher *core, DataModel::DocumentsManager *mgr, QWidget *parent = nullptr);
2023-03-17 13:58:38 +00:00
QModelIndex currentIndex() const;
2023-03-17 13:58:38 +00:00
// PresentBase interface
public:
2023-03-17 13:58:38 +00:00
virtual QWidget *widget() const override;
virtual QString name() const override;
private:
2023-03-17 13:58:38 +00:00
Schedule::CommandsDispatcher *const source;
QTreeView *const view_present;
2023-03-17 13:58:38 +00:00
void menu_popup(const QPoint &p);
void open_target(const QModelIndex &t);
};
}
#endif // PROJECTPRESENT_H