• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

Analitza

  • sources
  • kde-4.12
  • kdeedu
  • analitza
  • analitzaplot
plotsdictionarymodel.h
Go to the documentation of this file.
1 /*************************************************************************************
2  * Copyright (C) 2010-2012 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com> *
3  * Copyright (C) 2012 by Aleix Pol Gonzalez <aleixpol@kde.org> *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License *
7  * as published by the Free Software Foundation; either version 2 *
8  * of the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the Free Software *
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
18  *************************************************************************************/
19 
20 #ifndef ANALITZAPLOT_PLOTSDICTIONARYMODEL_H
21 #define ANALITZAPLOT_PLOTSDICTIONARYMODEL_H
22 
23 #include <QStandardItemModel>
24 #include <QPointer>
25 #include <analitzaplot/plottingenums.h>
26 #include "analitzaplotexport.h"
27 namespace Analitza
28 {
29 class PlotsModel;
30 
31 //WARNING @PlotsDictionaryModel needs dictionary files (*.plots), currently we
32 //are working to add plots files for next version coming (kde >= 4.10.x).
33 
34 class ANALITZAPLOT_EXPORT PlotsDictionaryModel : public QStandardItemModel
35 {
36 Q_OBJECT
37 public:
38  enum Roles { ExpressionRole = Qt::UserRole+1, FileRole };
39  PlotsDictionaryModel(QObject* parent = 0);
40  ~PlotsDictionaryModel();
41 
42  int currentRow() const;
43  void setCurrentRow(int row);
44 
45  PlotsModel* plotModel();
46  void createDictionary(const QString& path);
47  void createAllDictionaries();
48  Analitza::Dimension dimension();
49 
50 public slots:
52  void setCurrentIndex(const QModelIndex& idx);
53 
54 private:
55  void updatePlotsModel();
56  QPointer<PlotsModel> m_plots;
57  int m_currentItem;
58 };
59 
60 }
61 
62 #endif
plottingenums.h
analitzaplotexport.h
Analitza::PlotsModel
Collection of many instances of PlotItem.
Definition: plotsmodel.h:42
QStandardItemModel
Analitza::PlotsDictionaryModel
Definition: plotsdictionarymodel.h:34
Analitza::Dimension
Dimension
Definition: plottingenums.h:27
Analitza::PlotsDictionaryModel::Roles
Roles
Definition: plotsdictionarymodel.h:38
ANALITZAPLOT_EXPORT
#define ANALITZAPLOT_EXPORT
Definition: analitzaplotexport.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Analitza

Skip menu "Analitza"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal