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

kalgebra

  • sources
  • kde-4.12
  • kdeedu
  • kalgebra
  • src
kalgebra.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 KALGEBRA_H
20 #define KALGEBRA_H
21 
22 #include <KMainWindow>
23 #include <KLineEdit>
24 #include <QTreeView>
25 #include <QPushButton>
26 #include <QTabWidget>
27 #include <QLabel>
28 #include <QListView>
29 #include <config-kalgebra.h>
30 
31 namespace Analitza {
32 class PlotsView2D;
33 class PlotsView3D;
34 class PlotsModel;
35 class VariablesModel;
36 class ExpressionEdit;
37 }
38 
39 class ConsoleHtml;
40 class FunctionEdit;
41 class KRecentFilesAction;
42 
43 namespace Analitza { class Expression; }
44 
45 class KAlgebra : public KMainWindow
46 {
47  Q_OBJECT
48  public:
49  KAlgebra ( QWidget *parent=0 );
50  ~KAlgebra();
51 
52  void add2D(const Analitza::Expression& exp);
53  void add3D(const Analitza::Expression& exp);
54  private:
55  QLabel *m_status;
56  QTabWidget* m_tabs;
57 
58  //consoleeWidget
59  QMenu* c_menu;
60  KRecentFilesAction* c_recentScripts;
61  Analitza::ExpressionEdit *c_exp;
62  ConsoleHtml *c_results;
63  QTreeView *c_variables;
64  QDockWidget *c_dock_vars;
65  Analitza::VariablesModel* c_varsModel;
66 
67  //graf 2d
68  QMenu* b_menu;
69  Analitza::PlotsModel* b_funcsModel;
70  QTreeView *b_funcs;
71  QTabWidget *b_tools;
72  Analitza::PlotsView2D *m_graph2d;
73  QDockWidget *b_dock_funcs;
74  FunctionEdit *b_funced;
75  Analitza::VariablesModel* b_varsModel;
76 
77 #ifdef HAVE_OPENGL
78  //graph 3d
79  QMenu* t_menu;
80  Analitza::ExpressionEdit *t_exp;
81  Analitza::PlotsView3D *m_graph3d;
82  Analitza::PlotsModel* t_model3d;
83 #endif
84  //Dictionary
85  QDockWidget *d_dock;
86  QListView *d_list;
87  KLineEdit *d_filter;
88 
89  private slots:
90  void newInstance();
91  void fullScreen(bool isFull);
92 
93  void initializeRecentScripts();
94  void operate();
95  void loadScript();
96  void loadScript(const KUrl& path);
97  void saveScript();
98  void saveLog();
99  void updateInformation();
100  void consoleCalculate();
101  void consoleEvaluate();
102 
103  void select(const QModelIndex& idx);
104  void new_func();
105  void remove_func();
106  void edit_func ( const QModelIndex & );
107  void edit_var ( const QModelIndex & );
108  void toggleSquares();
109  void toggleKeepAspect();
110  void set_res_low();
111  void set_res_std();
112  void set_res_fine();
113  void set_res_vfine();
114  void valueChanged();
115  void varsContextMenu(const QPoint&);
116 
117  void new_func3d();
118  void set_dots();
119  void set_lines();
120  void set_solid();
121  void save3DGraph();
122 
123  void saveGraph();
124  void functools ( int );
125 
126  void dictionaryFilterChanged(const QString& filter);
127 
128  void changeStatusBar ( const QString & );
129  void tabChanged ( int );
130 };
131 
132 #endif
KAlgebra::add3D
void add3D(const Analitza::Expression &exp)
Definition: kalgebra.cpp:718
QWidget
KAlgebra::~KAlgebra
~KAlgebra()
Definition: kalgebra.cpp:376
ConsoleHtml
The Console widget is able to receive an operation, solve it and show the value.
Definition: consolehtml.h:45
KMainWindow
KAlgebra::add2D
void add2D(const Analitza::Expression &exp)
Definition: kalgebra.cpp:403
FunctionEdit
The FunctionEdit dialog provides a way to specify functions.
Definition: functionedit.h:46
KAlgebra::KAlgebra
KAlgebra(QWidget *parent=0)
Definition: kalgebra.cpp:107
KAlgebra
Definition: kalgebra.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:27 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
  • 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