labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

CantorWorksheetView.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : CantorWorksheetView.h
3  Project : LabPlot
4  Description : View class for CantorWorksheet
5  --------------------------------------------------------------------
6  Copyright : (C) 2015 Garvit Khatri (garvitdelhi@gmail.com)
7 
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  * This program is distributed in the hope that it will be useful, *
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
20  * GNU General Public License for more details. *
21  * *
22  * You should have received a copy of the GNU General Public License *
23  * along with this program; if not, write to the Free Software *
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
25  * Boston, MA 02110-1301 USA *
26  * *
27  ***************************************************************************/
28 #ifndef CANTORWORKSHEETVIEW_H
29 #define CANTORWORKSHEETVIEW_H
30 
31 #include <QWidget>
32 #include <cantor/session.h>
33 
34 class QToolBar;
35 class QMenu;
36 
37 class CantorWorksheet;
38 namespace KParts {
39 class ReadWritePart;
40 }
41 
42 class CantorWorksheetView : public QWidget {
43  Q_OBJECT
44 
45 public:
47  ~CantorWorksheetView() override;
48 
49 public slots:
50  void createContextMenu(QMenu*);
51  void fillToolBar(QToolBar*);
52 
53 private slots:
54  void triggerCantorAction(QAction*);
55 
56 private:
58  KParts::ReadWritePart* m_part{nullptr};
59 
60  QAction* m_evaluateEntryAction{nullptr};
61  QAction* m_insertCommandEntryAction{nullptr};
62  QAction* m_insertTextEntryAction{nullptr};
63  QAction* m_insertMarkdownEntryAction{nullptr};
64  QAction* m_insertLatexEntryAction{nullptr};
65  QAction* m_insertPageBreakAction{nullptr};
66  QAction* m_removeCurrentEntryAction{nullptr};
67  QAction* m_computeEigenvectorsAction{nullptr};
68  QAction* m_createMatrixAction{nullptr};
69  QAction* m_computeEigenvaluesAction{nullptr};
70  QAction* m_invertMatrixAction{nullptr};
71  QAction* m_differentiationAction{nullptr};
72  QAction* m_integrationAction{nullptr};
73  QAction* m_solveEquationsAction{nullptr};
74  QAction* m_restartBackendAction{nullptr};
75  QAction* m_evaluateWorsheetAction{nullptr};
76  QAction* m_zoomIn{nullptr};
77  QAction* m_zoomOut{nullptr};
78  QAction* m_find{nullptr};
79  QAction* m_replace{nullptr};
80  QAction* m_syntaxHighlighting{nullptr};
81  QAction* m_lineNumbers{nullptr};
82  QAction* m_animateWorksheet{nullptr};
83  QAction* m_latexTypesetting{nullptr};
84  QAction* m_showCompletion{nullptr};
85 
86  QMenu* m_worksheetMenu{nullptr};
87  QMenu* m_linearAlgebraMenu{nullptr};
88  QMenu* m_calculateMenu{nullptr};
89  QMenu* m_settingsMenu{nullptr};
90 
91  void initActions();
92  void initMenus();
93 
94 private slots:
95  void statusChanged(Cantor::Session::Status);
96 };
97 
98 #endif // CANTORWORKSHEETVIEW_H
void statusChanged(Cantor::Session::Status)
QAction * m_insertLatexEntryAction
QAction * m_insertMarkdownEntryAction
void triggerCantorAction(QAction *)
CantorWorksheet * m_worksheet
KParts::ReadWritePart * m_part
QAction * m_insertCommandEntryAction
QAction * m_computeEigenvaluesAction
QAction * m_evaluateWorsheetAction
CantorWorksheetView(CantorWorksheet *)
void fillToolBar(QToolBar *)
QAction * m_computeEigenvectorsAction
QAction * m_removeCurrentEntryAction