• 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
  • analitzagui
operatorsmodel.h
Go to the documentation of this file.
1 /*************************************************************************************
2  * Copyright (C) 2007 by Aleix Pol <aleixpol@kde.org> *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License *
6  * as published by the Free Software Foundation; either version 2 *
7  * of the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the Free Software *
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
17  *************************************************************************************/
18 
19 #ifndef OPERATORSMODEL_H
20 #define OPERATORSMODEL_H
21 
22 #include <QAbstractTableModel>
23 #include "analitzaguiexport.h"
24 
25 namespace Analitza
26 {
27 class Variables;
28 class Operator;
29 }
30 
32 class ANALITZAGUI_EXPORT OperatorsModel : public QAbstractTableModel
33 {
34  public:
36  explicit OperatorsModel(QObject *parent=0);
37 
39  static QString description(const Analitza::Operator& o);
40 
42  static QString sample(const Analitza::Operator& o);
43 
44  static QString example(const Analitza::Operator& o);
45 
47  // void addEntry(int i, const QString&, const QString&, const QString& ex=QString());
48 
50  void updateInformation();
51 
52  QVariant data( const QModelIndex &index, int role=Qt::DisplayRole) const;
53  QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const;
54  int rowCount(const QModelIndex &parent=QModelIndex()) const;
55  int columnCount(const QModelIndex &parent=QModelIndex()) const;
56 
57  void setVariables(const Analitza::Variables* v) { m_vars=v; }
58  QModelIndex indexForOperatorName(const QString& id) const;
59  QString parameterHelp(const QModelIndex& idx, int param, bool inbounds) const;
60  static QString standardFunctionCallHelp(const QString& funcname, int param, int paramcount, bool inbounds, bool isbounded);
61 
62 
63  private:
64  const Analitza::Variables *m_vars;
65 };
66 
67 #endif
analitzaguiexport.h
ANALITZAGUI_EXPORT
#define ANALITZAGUI_EXPORT
Definition: analitzaguiexport.h:28
OperatorsModel
Operators model is a model class that has a relation of all operators string with their OperatorType...
Definition: operatorsmodel.h:32
OperatorsModel::setVariables
void setVariables(const Analitza::Variables *v)
Definition: operatorsmodel.h:57
QAbstractTableModel
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