Source

pynoto / src / Project / ProjectFile.h

#ifndef _PROJECT_H_
#define _PROJECT_H_
#include <QMap>
#include "IProject.h"

class QSettings;
namespace Project {

class ProjectFile: public IProject
{
    Q_OBJECT
    Q_PROPERTY(QString path READ path WRITE setPath)
    Q_PROPERTY(QString name READ name WRITE setName)
public:
    ProjectFile();
    virtual ~ProjectFile();

    virtual bool load(const QString& fileName);
    virtual void unload();

    virtual QString path();
    void setPath(const QString& p);

    virtual QString name();
    void setName(const QString& name);

    virtual QString fileName();

    virtual QStringList shownFiles();
    void setShownFiles(const QStringList&);

    virtual QStringList openedDirs();
    virtual QStringList openedFiles();
    virtual QString mainScript();
    void setMainScript(const QString& mainScript);
    virtual QString fileDisplayName(const QString& fileName);
    virtual PythonCode::IPythonCode* pythonCode();
    virtual QString interpretName();
    virtual QString interpretExec();
    void setInterpretName(const QString& name);
    virtual QString guiName();
    void setGuiName(const QString& name);

    QMap<QString, QVariant> codeCheck();
    void setCodeCheck(const QMap<QString, QVariant>& check);
public slots:
    virtual void openFile(const QString& fileName, int offset = 0);
private:
    bool _loaded;
    QSettings * _settings;
    PythonCode::IPythonCode* _pythonCode;
};

}
#endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.