Changed the way the application loads elements collections.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1217 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2011-03-15 20:06:40 +00:00
parent 2b537f1f28
commit cf6ebf8f0f
7 changed files with 177 additions and 21 deletions

View File

@@ -52,7 +52,7 @@ class QETDiagramEditor : public QMainWindow {
void closeEvent(QCloseEvent *);
QList<ProjectView *> openedProjects() const;
void addProjectView(ProjectView *);
bool openAndAddProject(const QString &, bool interactive = true);
bool openAndAddProject(const QString &, bool = true, bool = true);
QList<DiagramView *> projectViews() const;
QList<QString> editedFiles() const;
ProjectView *viewForFile(const QString &) const;
@@ -67,7 +67,7 @@ class QETDiagramEditor : public QMainWindow {
virtual bool event(QEvent *);
private:
bool addProject(QETProject *);
bool addProject(QETProject *, bool = true);
ProjectView *currentProject() const;
DiagramView *currentDiagram() const;
ProjectView *findProject(DiagramView *) const;