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)  

AbstractDataSource.cpp
Go to the documentation of this file.
1 /***************************************************************************
2 File : AbstractDataSource.cpp
3 Project : LabPlot
4 Description : Abstract interface for data sources
5 --------------------------------------------------------------------
6 Copyright : (C) 2009-2017 Alexander Semke (alexander.semke@web.de)
7 Copyright : (C) 2015 Stefan Gerlach (stefan.gerlach@uni.kn)
8 ***************************************************************************/
9 
10 /***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 * This program is distributed in the hope that it will be useful, *
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
20 * GNU General Public License for more details. *
21 * *
22 * You should have received a copy of the GNU General Public License *
23 * along with this program; if not, write to the Free Software *
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
25 * Boston, MA 02110-1301 USA *
26 * *
27 ***************************************************************************/
28 #include "AbstractDataSource.h"
31 #include "backend/matrix/Matrix.h"
32 
33 /*!
34 \class AbstractDataSource
35 \brief Interface for the data sources.
36 
37 \ingroup datasources
38 */
39 
41  : AbstractPart(name, type) {
42 }
43 
45  int columns = childCount<Column>();
46  for (int i = 0; i < columns; ++i) {
47  child<Column>(i)->setUndoAware(false);
48  child<Column>(i)->setSuppressDataChangedSignal(true);
49  child<Column>(i)->clear();
50  child<Column>(i)->setUndoAware(true);
51  child<Column>(i)->setSuppressDataChangedSignal(false);
52  child<Column>(i)->setChanged();
53  }
54 }
AspectType
AbstractDataSource(const QString &name, AspectType type)
Base class of Aspects with MDI windows as views (AspectParts).
Definition: AbstractPart.h:36