QtiPlotApplication.h
Go to the documentation of this file.
/***************************************************************************
File : QtiPlotApplication.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2010 - 2011 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : QtiPlot application
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef QTIPLOTAPPLICATION_H
#define QTIPLOTAPPLICATION_H
#include <QApplication>
class ApplicationWindow;
class QtiPlotApplication : public QApplication
{
Q_OBJECT
public:
QtiPlotApplication(int & argc, char ** argv);
void remove(ApplicationWindow *w);
void append(ApplicationWindow *w){if (w) d_windows.append(w);};
void activateWindow(ApplicationWindow *w);
#ifdef Q_WS_MAC
void updateDockMenu();
#endif
protected:
bool event(QEvent *);
private:
QList<ApplicationWindow *> d_windows;
private slots:
void close();
#ifdef Q_WS_MAC
void newWindow();
void activateWindow(QAction *);
#endif
};
#endif // QTIPLOTAPPLICATION_H
QtiPlotApplication::event
bool event(QEvent *)
Definition: QtiPlotApplication.cpp:91
QtiPlotApplication::QtiPlotApplication
QtiPlotApplication(int &argc, char **argv)
Definition: QtiPlotApplication.cpp:41
ApplicationWindow
QtiPlot&#39;s main window.
Definition: ApplicationWindow.h:133
QtiPlotApplication
Definition: QtiPlotApplication.h:37
QtiPlotApplication::append
void append(ApplicationWindow *w)
Definition: QtiPlotApplication.h:43
QtiPlotApplication::activateWindow
void activateWindow(ApplicationWindow *w)
Definition: QtiPlotApplication.cpp:136
QtiPlotApplication::d_windows
QList< ApplicationWindow * > d_windows
Definition: QtiPlotApplication.h:53
QtiPlotApplication::close
void close()
Definition: QtiPlotApplication.cpp:82