39 lines
804 B
C
39 lines
804 B
C
|
#ifndef PROJECTPRESENT_H
|
||
|
#define PROJECTPRESENT_H
|
||
|
|
||
|
#include "manager_docs.h"
|
||
|
|
||
|
#include <QTreeView>
|
||
|
#include <QWidget>
|
||
|
#include <commandsdispatcher.h>
|
||
|
#include <libProjectManager.h>
|
||
|
|
||
|
namespace Components {
|
||
|
/**
|
||
|
* @brief 项目视图
|
||
|
*/
|
||
|
class ProjectPresent : public QWidget, public Schedule::AccessibleObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit ProjectPresent(Core::AppCore *core,
|
||
|
QWidget *parent = nullptr);
|
||
|
|
||
|
signals:
|
||
|
|
||
|
// AccessibleObject interface
|
||
|
public:
|
||
|
virtual QString name() const override;
|
||
|
|
||
|
private:
|
||
|
Core::AppCore *const source;
|
||
|
QTreeView *const view_present;
|
||
|
|
||
|
void menu_popup(const QPoint &p);
|
||
|
void open_target(const QModelIndex &t);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif // PROJECTPRESENT_H
|