Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mainwindow.h
Go to the documentation of this file.
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QCloseEvent>
5 #include <QMainWindow>
6 #include <QAction>
7 #include <QStyle>
8 #include <QIcon>
9 #include <QDir>
10 
11 namespace Ui {
12 class MainWindow;
13 }
14 
15 namespace LangmuirView {
16 
17 class LangmuirViewer;
18 class PointDialog;
19 class IsoSurfaceDialog;
20 
24 class MainWindow : public QMainWindow
25 {
26  Q_OBJECT
27 
28 public:
29  explicit MainWindow(const QString& inputFile="", QWidget *parent = 0);
30  ~MainWindow();
31 
32 public slots:
35 
38 
41 
44 
47 
50 
53 
56 
59 
61  void setStopEnabled(bool enabled);
62 
64  void closeEvent(QCloseEvent *event);
65 
67  void initAfter();
68 
70  void updateSpinBox(int value);
71 
72 private:
74  Ui::MainWindow *ui;
75 
78 
81 
84 
87 
89  void setIcon(QAction *action, QString themeIcon, QStyle::StandardPixmap standardPixmap);
90 
92  void init();
93 };
94 
95 }
96 
97 #endif // MAINWINDOW_H
LangmuirViewer * m_viewer
OpenGL widget.
Definition: mainwindow.h:77
void on_actionPoints_triggered()
open point dialog
void on_actionResetSettings_triggered()
reset settings (looks for config.ini)
A class to get isosurface parameters from the user.
Definition: isosurfacedialog.h:19
Definition: isosurfacedialog.h:8
Ui::MainWindow * ui
main window user interface
Definition: mainwindow.h:74
void initAfter()
setup some connections that require OpenGL to be initialized first
void on_actionSave_triggered()
save checkpoint file
A window with an OpenGL widget.
Definition: mainwindow.h:24
void setIcon(QAction *action, QString themeIcon, QStyle::StandardPixmap standardPixmap)
set user interface icon
void setStopEnabled(bool enabled)
enabled or disable stop and play buttons
void updateSpinBox(int value)
update the iterations.print spin box
void on_actionScreenshot_triggered()
take a screen shot
A class to get point cloud properties from the user.
Definition: pointdialog.h:19
QDir m_currentDir
current directory for open/save actions
Definition: mainwindow.h:86
Definition: axis.h:6
void on_actionChecker_triggered()
open checker dialog
PointDialog * m_pointdialog
dialog to set point parameters
Definition: mainwindow.h:80
IsoSurfaceDialog * m_isosurfacedialog
dialog to create isosurface
Definition: mainwindow.h:83
Widget to view Langmuir Simulation in real time.
Definition: langmuirviewer.h:47
void on_actionLoadSettings_triggered()
load settings file
MainWindow(const QString &inputFile="", QWidget *parent=0)
void on_actionOpen_triggered()
open an input file
void on_actionIsoSurface_triggered()
open isosurface dialog
void closeEvent(QCloseEvent *event)
clean up before closing
void on_actionSaveSettings_triggered()
save settings file