C:/Projekte/C++/FlowVIS_107/src/Navigation.h

Go to the documentation of this file.
00001 #ifndef NAVIGATION_H_
00002 #define NAVIGATION_H_
00003 
00004 #include "common.h"
00005 #include "./Ui_Navigation.h"
00006 #include <QWidget>
00007 #include <QComboBox>
00008 #include <QStringList>
00009 #include <QMouseEvent>
00010 
00011 #include "OpenGLWidget.h"
00012 
00013 class Navigation : public QWidget, protected Ui_Navigation
00014 {
00015         Q_OBJECT
00016 public:
00017         Navigation(OpenGLWidget* ogl, QWidget* parent = 0, Qt::WFlags flags = 0);
00018         virtual ~Navigation();
00019 
00020 public:
00021   void setBackgroundChooser(int count);
00022   void mousePressEvent(QMouseEvent* e);
00023   
00024   void createColorBar(bool isFileOpen, bool update = false);
00025   // reset gui elements on file open/close
00026   void resetGuiElements(bool filestatus);
00027 
00028 private:
00029   QWidget* m_parent;
00030   QStringList m_bgList;
00031   OpenGLWidget* m_ogl;
00032 
00033   QRect m_colorBarRect;
00034   QGradientStops m_gradientStops;
00035 
00036 private:
00037   QSize m_pointSize;
00038   QBrush m_pointBrush;
00039   QPolygonF m_points;
00040   QRectF m_bounds;
00041 
00042   QRectF getPointBounds(int i);
00043 
00044   bool m_isFileOpen;
00045 
00046 public slots:
00047     // test slot for connect(...)
00048     void testit(bool i = 0) { printf("Action: %d\n", i); }
00049 
00050 
00051     void loadTF();
00052     void saveTF();
00053     void resetTF();
00054 };
00055 #endif

Generated on Mon Jan 21 14:50:12 2008 for VisLU by  doxygen 1.5.4