tcasdisplay.h

00001 /****************************************************************
00002 **
00003 ** Definition of tcasDisplay class
00004 **
00005 ****************************************************************/
00006 
00007 #ifndef TCASDISPLAY_H
00008 #define TCASDISPLAY_H
00009 
00010 #include <QWidget>
00011 #include <list>
00012 #include <QPainter>
00013 #include "threatlistitem.h"
00014 #include "tcastypes.h"
00015 
00016 
00023 class tcasDisplay : public QWidget
00024 {
00025     Q_OBJECT
00026 public:
00029         tcasDisplay( QWidget *parent=0 );
00032         QSizePolicy sizePolicy() const;
00033 
00034 public slots:
00044         void addThreat(threatType type, trendDir dir, int relAlt, int x, int y, unsigned long &key);
00048         void removeThreat(int idx);
00049 protected:
00052         void paintEvent( QPaintEvent *event );
00053 
00054 private:
00059          void paintThreat(QPainter *p, std::list<threatListItem>::iterator item);
00067         void drawArrow(QPainter *p, int x, int y, trendDir dir,threatType type);
00070          std::list<threatListItem> tList;
00073         int threatIndex;
00076         void drawAircraftSymbol(QPainter *p);
00077 };
00078 
00079 #endif // TCASDISPLAY_H
00080 

Generated on Thu Aug 17 12:14:56 2006 for VisualODF by  doxygen 1.4.7