Source

pynoto / src / Project / ProjectManagerWidget.h

Full commit
#ifndef _PROJECTMANAGERWIDGET_H_
#define _PROJECTMANAGERWIDGET_H_
#include <QTreeView>

class QMenu;
namespace Project {

class IProject;
class ProjectManagerWidget: public QTreeView
{
    Q_OBJECT
public:
    ProjectManagerWidget(QWidget * parent, IProject* project);
    virtual ~ProjectManagerWidget();
private slots:
    void onProjectLoaded();
    void onProjectUnloaded();

    void onItemActivated(const QModelIndex&);
    void onItemCollapsed(const QModelIndex&);
    void onItemExpanded(const QModelIndex&);

    void onMenuShow(const QPoint&);
    virtual QSize minimumSizeHint();
private slots:
    void openFile();
    void addNew();
private:
    void restoreSession();
private:
    IProject * _project;
    QMenu * _menu;
    QMap<QString, QAction*> _actions;
};

}
#endif