tt.h

00001 #ifndef __TT_H__
00002 #define __TT_H__
00003 
00004 #include <QImage>
00005 #include <QPainter>
00006 #include <QPaintEvent>
00007 #include <QWidget>
00008 #include <QApplication>
00009 
00010 #include "../include/Curve.h"
00011 #include "../experimental/pngmanip/plot_funcs.h"
00012 #include "mainwindow.h"
00013 
00014 class TTPlotWindow: public QWidget {
00015 Q_OBJECT
00016 public:
00017   TTPlotWindow(MainWindow* mainWin, QWidget *parent=0, const char *name=0, Qt::WindowFlags wFlags=0);
00018   ~TTPlotWindow();
00019 protected:
00020   void paintEvent( QPaintEvent * );
00021   void resizeEvent( QResizeEvent * );
00022   void mousePressEvent( QMouseEvent * );
00023   void mouseReleaseEvent( QMouseEvent * );
00024   void mouseMoveEvent( QMouseEvent * );
00025         void keyPressEvent( QKeyEvent * );
00026 private:
00027         MainWindow* mainwin;
00028   bool PRESSED, UNION;
00029   bool    convertEvent(QMouseEvent* e, int& x, int& y);
00030         QImage  orig, image, bkp;
00031   
00032   int e1,e2,e3,oe1,oe2;
00033 
00034   int    pickx, picky;
00035   int    clickx, clicky;
00036   int    releasex, releasey;
00037 
00038 private slots:
00039   void popcoords();
00040   void recompute();
00041 signals:
00042   void pos_changed(float,float,float,float,bool);
00043 };
00044 
00045 #endif // __TT_H__

Generated on Mon Feb 8 17:22:35 2010 for libbiarc by  doxygen 1.5.6