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

kalgebra

  • sources
  • kde-4.14
  • kdeedu
  • kalgebra
  • mobile
kalgebramobile.h
Go to the documentation of this file.
1 /*************************************************************************************
2  * Copyright (C) 2010 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 KALGEBRAMOBILE_H
20 #define KALGEBRAMOBILE_H
21 
22 #include <QObject>
23 #include <QColor>
24 
25 class QModelIndex;
26 namespace Analitza {
27  class Variables;
28  class PlotsModel;
29 }
30 
31 class KAlgebraMobile : public QObject
32 {
33  Q_OBJECT
34  Q_PROPERTY(Analitza::Variables* variables READ variables NOTIFY variablesChanged)
35  public:
36  explicit KAlgebraMobile(QObject* parent=0);
37 
38  static KAlgebraMobile* self();
39  void notifyVariablesChanged() { variablesChanged(); }
40 
41  public slots:
42  Analitza::PlotsModel* functionsModel();
43  Analitza::Variables* variables() const;
44 
45  private slots:
46  void functionRemoved(const QModelIndex& parent, int start, int end);
47  void functionModified(const QModelIndex& idxA, const QModelIndex& idxB);
48  void functionInserted(const QModelIndex& parent, int start, int end);
49 
50  signals:
51  void variablesChanged();
52 
53  private:
54  static KAlgebraMobile* s_self;
55 
56  Analitza::PlotsModel* m_functionsModel;
57  Analitza::Variables* m_vars;
58 };
59 
60 #endif // KALGEBRAMOBILE_H
QModelIndex
KAlgebraMobile::notifyVariablesChanged
void notifyVariablesChanged()
Definition: kalgebramobile.h:39
KAlgebraMobile::variablesChanged
void variablesChanged()
KAlgebraMobile::functionsModel
Analitza::PlotsModel * functionsModel()
Definition: kalgebramobile.cpp:43
KAlgebraMobile::variables
Analitza::Variables * variables() const
QObject
KAlgebraMobile::KAlgebraMobile
KAlgebraMobile(QObject *parent=0)
Definition: kalgebramobile.cpp:33
QObject::parent
QObject * parent() const
KAlgebraMobile
Definition: kalgebramobile.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalgebra

Skip menu "kalgebra"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • 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