COPASI API  4.16.103
CWindowInterface.h
Go to the documentation of this file.
1 // Copyright (C) 2012 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef CWindowInterface_H
7 #define CWindowInterface_H
8 
9 class QMenu;
10 class QWidget;
11 class CopasiUI3Window;
12 
13 #include <QtGui/QMainWindow>
14 #include <QtCore/QString>
15 
16 class CWindowInterface : public QMainWindow
17 {
18  Q_OBJECT
19 public:
20  CWindowInterface(QWidget *parent = NULL, Qt::WindowFlags flags = NULL);
21  virtual ~CWindowInterface();
22 
23  virtual QMenu *getWindowMenu() const = 0;
24 
25  /**
26  * Saves the current window to the given filename.
27  *
28  * This default implementation does nothing
29  */
30  virtual void saveToFile(const QString& fileName) const;
31 
32  void addToMainWindow(CopasiUI3Window *window = NULL);
33  void removeFromMainWindow(CopasiUI3Window *window = NULL);
34 };
35 
36 #endif // CWindowInterface_H
CWindowInterface(QWidget *parent=NULL, Qt::WindowFlags flags=NULL)
void removeFromMainWindow(CopasiUI3Window *window=NULL)
virtual QMenu * getWindowMenu() const =0
virtual void saveToFile(const QString &fileName) const
void addToMainWindow(CopasiUI3Window *window=NULL)
virtual ~CWindowInterface()