1
/*************************************************************************************
2
* Copyright (C) 2010 by Aleix Pol <aleixpol@kde.org> *
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. *
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. *
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
*************************************************************************************/
19
#ifndef KALGEBRAMOBILE_H
20
#define KALGEBRAMOBILE_H
22
#include <QMainWindow>
29
class AnalitzaWrapper;
33
class KAlgebraMobile : public QMainWindow
37
explicit KAlgebraMobile(QWidget* parent = 0, Qt::WindowFlags flags = 0);
39
void displayPlugin(int plugin);
40
FunctionsModel* functionsModel();
41
VariablesModel* variablesModel();
42
QScriptEngine* engine() { return m_engine; }
46
void handleException(const QScriptValue& exception);
51
QScriptEngine* m_engine;
52
QVector<QWidget*> m_pluginUI;
54
AnalitzaWrapper* m_wrapper;
55
FunctionsModel* m_functionsModel;
56
PluginsModel* m_pluginsModel;
60
#endif // KALGEBRAMOBILE_H