labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

PartMdiView.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : PartMdiView.h
3  Project : LabPlot
4  Description : QMdiSubWindow wrapper for aspect views.
5  --------------------------------------------------------------------
6  Copyright : (C) 2013-2019 by Alexander Semke (alexander.semke@web.de)
7  Copyright : (C) 2007,2008 Tilman Benkert (thzs@gmx.net)
8  Copyright : (C) 2007,2008 Knut Franke (knut.franke@gmx.de)
9 
10  ***************************************************************************/
11 
12 /***************************************************************************
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * *
19  * This program is distributed in the hope that it will be useful, *
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22  * GNU General Public License for more details. *
23  * *
24  * You should have received a copy of the GNU General Public License *
25  * along with this program; if not, write to the Free Software *
26  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
27  * Boston, MA 02110-1301 USA *
28  * *
29  ***************************************************************************/
30 #ifndef PART_MDI_VIEW_H
31 #define PART_MDI_VIEW_H
32 
33 #include <QMdiSubWindow>
34 
35 class AbstractAspect;
36 class AbstractPart;
37 
38 class PartMdiView : public QMdiSubWindow {
39  Q_OBJECT
40 
41 public:
42  explicit PartMdiView(AbstractPart*);
43  ~PartMdiView() override;
44  AbstractPart* part() const;
45 
46 private:
47  void closeEvent(QCloseEvent*) override;
49  bool m_closing{false};
50 
51 private slots:
54  void slotWindowStateChanged(Qt::WindowStates oldState, Qt::WindowStates newState);
55 };
56 
57 #endif // ifndef PART_MDI_VIEW_H
Base class of all persistent objects in a Project.
Base class of Aspects with MDI windows as views (AspectParts).
Definition: AbstractPart.h:36
QMdiSubWindow wrapper for aspect views.
Definition: PartMdiView.h:38
~PartMdiView() override
Definition: PartMdiView.cpp:59
void handleAspectAboutToBeRemoved(const AbstractAspect *)
Definition: PartMdiView.cpp:74
bool m_closing
Definition: PartMdiView.h:49
void handleAspectDescriptionChanged(const AbstractAspect *)
Definition: PartMdiView.cpp:67
AbstractPart * part() const
Definition: PartMdiView.cpp:63
PartMdiView(AbstractPart *)
Definition: PartMdiView.cpp:45
void closeEvent(QCloseEvent *) override
Definition: PartMdiView.cpp:81
AbstractPart * m_part
Definition: PartMdiView.h:48
void slotWindowStateChanged(Qt::WindowStates oldState, Qt::WindowStates newState)
Definition: PartMdiView.cpp:86