tychoGUI  1.0
 All Data Structures Namespaces Files Functions Variables
mainwindow.h
Go to the documentation of this file.
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include "help1.h"
6 #include "help2.h"
7 #include "help3.h"
8 #include "help4.h"
9 #include "help5.h"
10 #include "help6.h"
11 #include "help7.h"
12 #include "help7.h"
13 #include "help8.h"
14 #include "about.h"
15 #include "local_simulation.h"
16 #include "configure_path.h"
17 
18 namespace Ui {
19 class MainWindow;
20 }
21 
22 class MainWindow : public QMainWindow
23 {
24  Q_OBJECT
25 
26 public:
27  explicit MainWindow(QWidget *parent = 0);
28  ~MainWindow();
29 
30  int x_res, y_res, z_res;
32 
33 private slots:
34  //menus
35  void quit();
36  void openfile();
37  void savefile();
38  void reset_gui();
39  void open_local_simulation();
40  void open_about();
41  void open_configure_path();
42 
43  //helpbuttons
44  void open_help1();
45  void open_help2();
46  void open_help3();
47  void open_help4();
48  void open_help5();
49  void open_help6();
50  void open_help7();
51  void open_help8();
52 
53  void set_parameters(QList<QString> data);
54 
55  void ic_density();
56  void ic_temperature();
57  void ic_velocity();
58  void ic_wind();
59  void ic_obstacle();
60  void ic_marker();
61  void ic_soundemitter();
62  void output_path();
63  void check_resolution(QString filename);
64 
65  //to prevent wrong input
66  void ic_logic();
67  void boundary_logic();
68  void dimension_logic();
69  void gravity_logic();
70  void windemitter_logic();
71  void obstacle_logic();
72  void marker_logic();
73  void soundemitter_logic();
75 
76 private:
78 
87 
90 
92 
93  QString ic_density_file;
98  QString ic_marker_file;
101 
102  QString boundary_selector(QString boundary);
103  QString ic_selector(QString ic);
104  QString filetype_selector(QString filetype);
105 
106  void initiate_ic_files();
107 
108 };
109 
110 #endif // MAINWINDOW_H