SimulationChain
 All Classes Functions Variables Pages
mainwindow.h
1 
7 #ifndef MAINWINDOW_H
8 #define MAINWINDOW_H
9 #include "boost/property_tree/ptree.hpp"
10 #include "boost/property_tree/xml_parser.hpp"
11 #include "boost/foreach.hpp"
12 
13 #include <QMainWindow>
14 #include "ui_mainwindow.h"
15 
16 namespace Ui {
17 class MainWindow;
18 }
19 
20 class MainWindow : public QMainWindow
21 {
22  Q_OBJECT
23 
24 public:
25  explicit MainWindow(QWidget *parent = 0);
26  ~MainWindow();
27 
29  void ResetXAxis();
30 
31 public Q_SLOTS:
34  void AddPointToOutputSignal(double y);
35 
38  void AddPointToGeneratorSignal(double y);
39 
42  void AddPointToControlSignal(double y);
43 
46  void DisplayTheta(QString str);
47 
52  void AddTreeWidgetRoot(const QString &, const QString &, const int);
53 
59  void AddTreeWidgetElement(const QString &,const QString &,const QString &, const int);
60 
63  void ClearTreeWidget(const int treeNumber);
64 
65 private Q_SLOTS:
66  void on_startButton_clicked();
67 
68  void on_saveButton_clicked();
69 
71  void on_loadButton_clicked();
72 
74  void on_resetButton_clicked();
75 
76  void on_timeSpinBox_editingFinished();
77 
78  void on_periodSpinBox_editingFinished();
79 
80  void on_nomDegSpinBox_editingFinished();
81 
82  void on_denomDegSpinBox_editingFinished();
83 
84  void on_delayBoxSpinBox_editingFinished();
85 
86  void on_histLenSpinBox_editingFinished();
87 
88  void on_actionLoad_Parameters_triggered();
89 
90  void on_actionSave_Parameters_triggered();
91 
92  void on_simulationTree_itemSelectionChanged();
93 
94  void on_propertyTree_itemDoubleClicked(QTreeWidgetItem *item, int column);
95 
96  void on_propertyTree_itemChanged(QTreeWidgetItem *item, int column);
97 
98 private:
101  void addPoint1();
105  void addPoint1(double x, double y, int gr);
106 
107  void addPoint2();
108  void addPoint2(double x, double y);
109 
111  void changeIdentificationParams();
112 
113  Ui::MainWindow *ui;
114  double x1a;
115  double x1b;
116  double x2;
117  int m_nInterval;
118  bool m_bSootheChangeSignal;
119 };
120 
121 #endif // MAINWINDOW_H
void AddPointToOutputSignal(double y)
Adds a point into first plot, first graph (x is set to x+interval)
Definition: mainwindow.cpp:65
void AddTreeWidgetRoot(const QString &, const QString &, const int)
Creates a root for simulation tree view.
Definition: mainwindow.cpp:231
void AddPointToGeneratorSignal(double y)
Adds a point into first plot, second graph (x is set to x+interval)
Definition: mainwindow.cpp:71
void ResetXAxis()
Reset x axises to start plotting from x1=0 and x2=0.
Definition: mainwindow.cpp:104
void AddTreeWidgetElement(const QString &, const QString &, const QString &, const int)
Adds element to the simulation tree view.
Definition: mainwindow.cpp:248
MainWindow(QWidget *parent=0)
Definition: mainwindow.cpp:4
void ClearTreeWidget(const int treeNumber)
Clears a given tree widget.
Definition: mainwindow.cpp:280
void AddPointToControlSignal(double y)
Adds a point into second plot, first graph (x is set to x+interval)
Definition: mainwindow.cpp:93
Definition: mainwindow.h:20
void DisplayTheta(QString str)
specifies x to be x+1
Definition: mainwindow.cpp:99