COPASI API  4.16.103
Public Member Functions | List of all members
CWindowInterface Class Referenceabstract

#include <CWindowInterface.h>

Inheritance diagram for CWindowInterface:
Inheritance graph
[legend]
Collaboration diagram for CWindowInterface:
Collaboration graph
[legend]

Public Member Functions

void addToMainWindow (CopasiUI3Window *window=NULL)
 
 CWindowInterface (QWidget *parent=NULL, Qt::WindowFlags flags=NULL)
 
virtual QMenu * getWindowMenu () const =0
 
void removeFromMainWindow (CopasiUI3Window *window=NULL)
 
virtual void saveToFile (const QString &fileName) const
 
virtual ~CWindowInterface ()
 

Detailed Description

Definition at line 16 of file CWindowInterface.h.

Constructor & Destructor Documentation

CWindowInterface::CWindowInterface ( QWidget *  parent = NULL,
Qt::WindowFlags  flags = NULL 
)

Definition at line 9 of file CWindowInterface.cpp.

10  : QMainWindow(parent, flags)
11 {
12 }
CWindowInterface::~CWindowInterface ( )
virtual

Definition at line 14 of file CWindowInterface.cpp.

15 {
16 }

Member Function Documentation

void CWindowInterface::addToMainWindow ( CopasiUI3Window window = NULL)

Definition at line 18 of file CWindowInterface.cpp.

References CopasiUI3Window::addWindow(), and CopasiUI3Window::getMainWindow().

Referenced by CQCheckModelWindow::CQCheckModelWindow(), CQLayoutsWidget::createLayoutWindow(), PlotWindow::PlotWindow(), and SliderDialog::SliderDialog().

19 {
20  if (window == NULL)
22 
23  if (window != NULL)
24  window->addWindow(this);
25 }
static CopasiUI3Window * getMainWindow()
void addWindow(QMainWindow *pWindow)
virtual QMenu* CWindowInterface::getWindowMenu ( ) const
pure virtual
void CWindowInterface::removeFromMainWindow ( CopasiUI3Window window = NULL)

Definition at line 32 of file CWindowInterface.cpp.

References CopasiUI3Window::getMainWindow(), and CopasiUI3Window::removeWindow().

Referenced by CQNewMainWindow::closeEvent(), CQAnimationWindow::~CQAnimationWindow(), CQCheckModelWindow::~CQCheckModelWindow(), CQNewMainWindow::~CQNewMainWindow(), PlotWindow::~PlotWindow(), and SliderDialog::~SliderDialog().

33 {
34  if (window == NULL)
36 
37  if (window != NULL)
38  window->removeWindow(this);
39 }
static CopasiUI3Window * getMainWindow()
void removeWindow(QMainWindow *pWindow)
void CWindowInterface::saveToFile ( const QString &  fileName) const
virtual

Saves the current window to the given filename.

This default implementation does nothing

Reimplemented in PlotWindow.

Definition at line 27 of file CWindowInterface.cpp.

Referenced by Worker::slotNotify().

28 {
29  // by default nothing will be saved, overwrite to implement saving to file
30 }

The documentation for this class was generated from the following files: