~ubuntu-branches/ubuntu/oneiric/kalgebra/oneiric

« back to all changes in this revision

Viewing changes to mobile/uiconfig.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 UICONFIG_H
 
20
#define UICONFIG_H
 
21
 
 
22
#include <QtGui/QWidget>
 
23
#include <QScriptValue>
 
24
 
 
25
class QAbstractItemModel;
 
26
class VariablesModel;
 
27
class KAlgebraMobile;
 
28
namespace Analitza {
 
29
class Analyzer;
 
30
}
 
31
 
 
32
class UiConfig : public QObject
 
33
{
 
34
        Q_OBJECT
 
35
        public:
 
36
                explicit UiConfig(KAlgebraMobile* a, QObject* parent = 0);
 
37
                
 
38
        public slots:
 
39
                QWidget* newVerticalLayout(const QString& name=QString());
 
40
                QWidget* newQLineEdit(const QString& name);
 
41
                QWidget* newConsole(const QString& name);
 
42
                QWidget* newListWidget(const QString& name);
 
43
                QWidget* newQDoubleSpinBox(const QString& name);
 
44
                QWidget* newTreeView(const QString& name);
 
45
                QWidget* newQPushButton(const QString& name);
 
46
                QWidget* newFunctionsDialog(const QString& name);
 
47
                QWidget* newGraph2D(const QString& name);
 
48
                
 
49
        private:
 
50
                KAlgebraMobile* m_app;
 
51
};
 
52
 
 
53
#endif // UICONFIG_H