GNU Radio's DISPLAY Package
showpngpicture.h
Go to the documentation of this file.
1 #ifndef SHOWPNGPICTURE_HH
2 #define SHOWPNGPICTURE_HH
3 
4 #include <QWidget>
5 
6 class QTimer;
7 class QImage;
8 
9 namespace Ui {
10 class ShowPngPicture;
11 }
12 
13 class ShowPngPicture : public QWidget
14 {
15  Q_OBJECT
16 
17 public:
18  explicit ShowPngPicture(int width,int height,QWidget *parent = 0);
20 private:
22  int picWidth;
23  int picHeight;
24  int col;
25  int row;
26  bool reverseOrder;
27 
28  QImage *p;
29  QRgb *line;
30  QWidget *displayWidget;
31 // QTimer *displayTimer;
32 
33  void setNextPixel(int);
34  bool saveImage(QString);
35 
36 
37 public slots:
38  void setPixel(const unsigned char *,int);
39  void saveImage2File();
40  void storeReverse(bool order);
41 
42 protected:
43  void paintEvent(QPaintEvent *);
44 };
45 
46 #endif // SHOWPNGPICTURE_HH
ShowPngPicture(int width, int height, QWidget *parent=0)
Definition: ui_showpngpicture.h:92
void setPixel(const unsigned char *, int)
Definition: showpngpicture.h:13
void saveImage2File()
void storeReverse(bool order)
void paintEvent(QPaintEvent *)