Molecule Visualizer
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Groups Pages
mainwindow.h
Go to the documentation of this file.
1 
7 #ifndef MAINWINDOW_H
8 #define MAINWINDOW_H
9 
10 #include "window.h"
11 #include <QFileSystemModel>
12 #include <QMainWindow>
13 #include <QLabel>
14 #include <QPushButton>
15 #include <QItemSelection>
16 
22 namespace Ui {
25  class MainWindow;
26 } // End namespace Ui
30 class MainWindow : public QMainWindow
31 {
32  Q_OBJECT
33 
34 public:
39  explicit MainWindow(QWidget *parent = 0);
40 
44  ~MainWindow();
45 
46 public slots:
47 
52  void selectedFile();
53 
54  void setAmbientFactor(double ambientFactor);
55  void setDiffuseFactor(double diffuseFactor);
56  void setSpecularFactor(double specularFactor);
57 
58  void setNearPlane(double nearPlane);
59  void setFarPlane(double farPlane);
60 
61  void setAmbientOcclusion(int value);
62  void setAmbientOcclusionQuality(int value);
63  void setContourProps(int value);
64 
65  void setShadowsEnabled(int value);
66 
67  void setDepthFactor(double value);
68  void setContourWidth(double value);
69 
70  void zoomIn();
71  void zoomOut();
72  void zoomFit();
73 
74  void setAmbientIntensity(double value);
75 
76 protected:
77 
83  virtual void keyPressEvent(QKeyEvent * event);
84 
85 
86 private:
87  Ui::MainWindow* m_pUi;
88  Window* m_glWindow;
89  QFileSystemModel* model;
90 
91 };
92 
93 #endif // MAINWINDOW_H
Class for a Qt window.
Definition: window.h:19
~MainWindow()
Destructor.
Definition: mainwindow.cpp:92
virtual void keyPressEvent(QKeyEvent *event)
A virtual member function to handle key press events. The event is forwarded to the intended receiver...
Definition: mainwindow.cpp:103
void selectedFile()
A member function to get the selected file from the tree view and forward it to the OpenGl context...
Definition: mainwindow.cpp:97
MainWindow(QWidget *parent=0)
Constructor.
Definition: mainwindow.cpp:15
Definition: mainwindow.h:30