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 Class Reference

QMdiSubWindow wrapper for aspect views. More...

#include <PartMdiView.h>

Inheritance diagram for PartMdiView:
[legend]
Collaboration diagram for PartMdiView:
[legend]

Public Member Functions

 PartMdiView (AbstractPart *)
 
 ~PartMdiView () override
 
AbstractPartpart () const
 

Private Slots

void handleAspectDescriptionChanged (const AbstractAspect *)
 
void handleAspectAboutToBeRemoved (const AbstractAspect *)
 
void slotWindowStateChanged (Qt::WindowStates oldState, Qt::WindowStates newState)
 

Private Member Functions

void closeEvent (QCloseEvent *) override
 

Private Attributes

AbstractPartm_part
 
bool m_closing {false}
 

Detailed Description

QMdiSubWindow wrapper for aspect views.

File : PartMdiView.cpp Project : LabPlot

Description : QMdiSubWindow wrapper for aspect views.

Copyright : (C) 2013-2019 by Alexander Semke (alexa.nosp@m.nder.nosp@m..semk.nosp@m.e@we.nosp@m.b.de) Copyright : (C) 2007,2008 Tilman Benkert (thzs@.nosp@m.gmx..nosp@m.net)

  • 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 *

In addition to the functionality provided by QMdiSubWindow, this class automatically updates the window title when AbstractAspect::caption() is changed and holds the connection to the actual data visualized in this window via the pointer to AbstractPart.

Definition at line 38 of file PartMdiView.h.

Constructor & Destructor Documentation

◆ PartMdiView()

◆ ~PartMdiView()

PartMdiView::~PartMdiView ( )
override

Definition at line 59 of file PartMdiView.cpp.

References m_closing.

Member Function Documentation

◆ closeEvent()

void PartMdiView::closeEvent ( QCloseEvent *  event)
overrideprivate

Definition at line 81 of file PartMdiView.cpp.

References AbstractPart::deleteView(), and m_part.

◆ handleAspectAboutToBeRemoved

void PartMdiView::handleAspectAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 74 of file PartMdiView.cpp.

References m_part.

Referenced by PartMdiView().

◆ handleAspectDescriptionChanged

void PartMdiView::handleAspectDescriptionChanged ( const AbstractAspect aspect)
privateslot

Definition at line 67 of file PartMdiView.cpp.

References m_part, and AbstractAspect::name().

Referenced by PartMdiView().

◆ part()

AbstractPart * PartMdiView::part ( ) const

Definition at line 63 of file PartMdiView.cpp.

References m_part.

Referenced by MainWin::updateMdiWindowVisibility().

◆ slotWindowStateChanged

void PartMdiView::slotWindowStateChanged ( Qt::WindowStates  oldState,
Qt::WindowStates  newState 
)
privateslot

Member Data Documentation

◆ m_closing

bool PartMdiView::m_closing {false}
private

Definition at line 49 of file PartMdiView.h.

Referenced by slotWindowStateChanged(), and ~PartMdiView().

◆ m_part


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