~ubuntu-branches/ubuntu/trusty/kalgebra/trusty-updates

« back to all changes in this revision

Viewing changes to mobile/kalgebramobile.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-08 20:10:34 UTC
  • Revision ID: james.westby@ubuntu.com-20110708201034-0cqpagx7uz4pu82n
Tags: upstream-4.6.90+repack1
Import upstream version 4.6.90+repack1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 <QMainWindow>
 
23
#include <QPointer>
 
24
 
 
25
class VariablesModel;
 
26
class PluginsModel;
 
27
class FunctionsModel;
 
28
class QScriptValue;
 
29
class AnalitzaWrapper;
 
30
class QScriptEngine;
 
31
class UiConfig;
 
32
 
 
33
class KAlgebraMobile : public QMainWindow
 
34
{
 
35
        Q_OBJECT
 
36
        public:
 
37
                explicit KAlgebraMobile(QWidget* parent = 0, Qt::WindowFlags flags = 0);
 
38
                
 
39
                void displayPlugin(int plugin);
 
40
                FunctionsModel* functionsModel();
 
41
                VariablesModel* variablesModel();
 
42
                QScriptEngine* engine() { return m_engine; }
 
43
        public slots:
 
44
                void selectPlugin();
 
45
                void debug();
 
46
                void handleException(const QScriptValue& exception);
 
47
                
 
48
        private:
 
49
                void findScripts();
 
50
                
 
51
                QScriptEngine* m_engine;
 
52
                QVector<QWidget*> m_pluginUI;
 
53
                
 
54
                AnalitzaWrapper* m_wrapper;
 
55
                FunctionsModel* m_functionsModel;
 
56
                PluginsModel* m_pluginsModel;
 
57
                UiConfig* m_uiconfig;
 
58
};
 
59
 
 
60
#endif // KALGEBRAMOBILE_H