COPASI API  4.16.103
CQExpressionMmlStackedWidget.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 #ifndef CQEXPRESSIONMML_STACKEDWIDGET_H
12 #define CQEXPRESSIONMML_STACKEDWIDGET_H
13 
14 #include <QtCore/QVariant>
15 
16 #include "copasi/UI/ui_CQExpressionMmlStackedWidget.h"
17 
18 class CQExpressionMmlStackedWidget : public QStackedWidget, public Ui::CQExpressionMmlStackedWidget
19 {
20  Q_OBJECT
21 
22 public:
23  CQExpressionMmlStackedWidget(QWidget* parent = 0);
25 
26  void setReadOnly(const bool & readOnly);
27 
28  QString getText();
29 
30 public slots:
31  void updateWidget();
32 
33 signals:
34  void signalCheckValidity(bool);
35 
36 protected:
37  void init();
38 
39 protected slots:
40 
42  void slotGoMmlWidget();
43 
44 private:
45  QString MMLStr;
46 
47  void saveTeX(const QString filename);
48  void savePNG(const QString filename);
49  void saveMML(const QString filename);
50 
51 private slots:
52  void slotSaveExpression();
53 };
54 
55 #endif // CQEXPRESSIONMML_STACKEDWIDGET_H