scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Project.h
Go to the documentation of this file.
1 
12 
30 #ifndef PROJECT_H
31 #define PROJECT_H
32 
33 #include "core/future_Folder.h"
34 #include "core/interfaces.h"
35 
36 class QString;
37 class ProjectWindow;
38 class QAction;
39 class AbstractScriptingEngine;
40 
42 
46 class Project : public ::future::Folder
47 {
48  Q_OBJECT
49 
50  public:
53  {
57  };
58 
59  public:
60  Project();
61  ~Project();
62 
64 
65  virtual const Project *project() const { return this; }
66  virtual Project *project() { return this; }
67  virtual QUndoStack *undoStack() const;
68  virtual QString path() const { return ""; }
69 #ifndef LEGACY_CODE_0_2_x
70  virtual ProjectWindow *view();
71 #else
72  virtual void *view();
73 #endif
74  virtual QMenu *createContextMenu() const;
76  virtual QMenu *createFolderContextMenu(const ::future::Folder * folder) const;
77 
78  AbstractScriptingEngine * scriptingEngine() const;
79 
82  void setFileName(const QString & file_name);
83  QString fileName() const;
84 
86  static QString configPageLabel();
87 
89 
90  virtual void save(QXmlStreamWriter *) const;
93  virtual bool load(XmlStreamReader *);
95 
96  private:
97  class Private;
99 
100  friend class ProjectConfigPage;
101 };
102 
103 #endif // ifndef PROJECT_H
Project::project
virtual Project * project()
Return the Project this Aspect belongs to, or 0 if it is currently not part of one.
Definition: Project.h:66
Project::undoStack
virtual QUndoStack * undoStack() const
Return the undo stack of the Project, or 0 if this Aspect is not part of a Project.
Definition: Project.cpp:91
Project::scriptingEngine
AbstractScriptingEngine * scriptingEngine() const
Definition: Project.cpp:141
Project::fileName
QString fileName() const
Definition: Project.cpp:162
Project::view
virtual ProjectWindow * view()
Definition: Project.cpp:97
future_Folder.h
Project::setFileName
void setFileName(const QString &file_name)
Definition: Project.cpp:157
interfaces.h
Project::MdiWindowVisibility
MdiWindowVisibility
MDI subwindow visibility setting.
Definition: Project.h:53
ConfigPageWidget
Widget for configuration pages that has an apply slot.
Definition: ConfigPageWidget.h:37
XmlStreamReader
XML stream parser that supports errors as well as warnings.
Definition: XmlStreamReader.h:42
ProjectConfigPage
Helper class for Project.
Definition: ProjectConfigPage.h:37
Project::Private
Definition: Project.cpp:53
Project
Represents a SciDAVis project.
Definition: Project.h:47
Project::setMdiWindowVisibility
void setMdiWindowVisibility(MdiWindowVisibility visibility)
Definition: Project.cpp:128
future::Folder
Folder in a project.
Definition: future_Folder.h:38
AbstractAspect::Private
friend class Private
Definition: AbstractAspect.h:90
Project::save
virtual void save(QXmlStreamWriter *) const
Save as XML.
Definition: Project.cpp:167
Project::createFolderContextMenu
virtual QMenu * createFolderContextMenu(const ::future::Folder *folder) const
Definition: Project.cpp:118
Project::Project
Project()
Definition: Project.cpp:75
Project::configPageLabel
static QString configPageLabel()
Definition: Project.cpp:152
Project::~Project
~Project()
Definition: Project.cpp:86
Project::project
virtual const Project * project() const
Return the Project this Aspect belongs to, or 0 if it is currently not part of one.
Definition: Project.h:65
Project::allMdiWindows
@ allMdiWindows
Definition: Project.h:56
AbstractAspect::folder
future::Folder * folder()
Return the folder the Aspect is contained in or 0 if not.
Definition: AbstractAspect.cpp:316
Project::load
virtual bool load(XmlStreamReader *)
Load from XML.
Definition: Project.cpp:180
Project::folderOnly
@ folderOnly
Definition: Project.h:54
Project::createContextMenu
virtual QMenu * createContextMenu() const
Return a new context menu.
Definition: Project.cpp:109
Project::makeConfigPage
static ConfigPageWidget * makeConfigPage()
Definition: Project.cpp:147
Project::folderAndSubfolders
@ folderAndSubfolders
Definition: Project.h:55
Project::mdiWindowVisibility
MdiWindowVisibility mdiWindowVisibility() const
Definition: Project.cpp:136
Project::path
virtual QString path() const
Return the path that leads from the top-most Aspect (usually a Project) to me.
Definition: Project.h:68
Project::d
Private * d
Definition: Project.h:97