QtNovelUI/WordsIDE/projectpresent.h

34 lines
741 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-08-20 17:22:48 +00:00
class ProjectPresent : public QWidget {
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;
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