• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/RocsCore

  • sources
  • kde-4.14
  • kdeedu
  • rocs
  • RocsCore
Project.h
Go to the documentation of this file.
1 /*
2  This file is part of Rocs.
3  Copyright 2012 Andreas Cord-Landwehr <cola@uni-paderborn.de>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of
8  the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 
20 #ifndef PROJECT_H
21 #define PROJECT_H
22 
23 #include "RocsCoreExport.h"
24 #include "CoreTypes.h"
25 
26 #include <QList>
27 #include <QString>
28 #include <QScopedPointer>
29 
30 class KUrl;
31 class ProjectPrivate;
32 class Document;
33 
34 namespace KTextEditor
35 {
36 class Document;
37 }
38 
47 class ROCSLIB_EXPORT Project
48 {
49 
50 public:
56  explicit Project();
57 
64  explicit Project(const KUrl &projectFile);
65 
73  explicit Project(const KUrl &projectArchive, const KUrl &projectDirectory);
74 
75  virtual ~Project();
76 
83  QString projectDirectory() const;
84 
85  KUrl projectFile() const;
86 
92  void setProjectFile(const KUrl &fileUrl);
93 
99  void setName(const QString &name);
100 
106  QString name() const;
107 
114  bool isTemporary();
115 
119  void setModified(bool modified=true);
120 
126  bool isModified() const;
127 
133  QList<KUrl> codeFiles() const;
134 
141  QList<KTextEditor::Document*> codeFilesNew() const;
142 
150  void addCodeFileNew(KTextEditor::Document *document);
151 
157  int addCodeFile(const KUrl &file);
158 
167  void saveCodeFileNew(KTextEditor::Document *document, const KUrl &file);
168 
174  void removeCodeFileNew(KTextEditor::Document *document);
175 
181  void removeCodeFile(int fileID);
182 
188  QList<KUrl> graphFiles() const;
189 
197  void addGraphFileNew(Document *document);
198 
204  int addGraphFile(const KUrl &file);
205 
214  void saveGraphFileNew(Document *document, const QString &file);
215 
219  void saveGraphFileAs(Document *document, const QString &file);
220 
226  void removeGraphFileNew(Document *document);
227 
233  void removeGraphFile(int fileID);
234 
240  void setJournalFile(const KUrl &file);
241 
247  KUrl journalFile() const;
248 
257  bool writeProjectFile(const QString& fileUrl = QString());
258 
265  bool exportProject(const KUrl &exportUrl);
266 
267 private:
268  bool writeNewProjectFile();
269  const QScopedPointer<ProjectPrivate> d;
270 };
271 
272 #endif // PROJECT_H
GmlParser::document
Document * document
Definition: GmlGrammar.cpp:40
CoreTypes.h
RocsCoreExport.h
Project
A "Project" object represents the compilation of file pointers that form a Rocs project.
Definition: Project.h:47
QScopedPointer< ProjectPrivate >
QString
QList
Document
Definition: Document.h:41
ROCSLIB_EXPORT
#define ROCSLIB_EXPORT
Definition: RocsCoreExport.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/RocsCore

Skip menu "rocs/RocsCore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal