GNU Radio's HOWTO 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 
21  void presetBottomUp(bool order);
22 private:
24  int picWidth;
25  int picHeight;
26  int col;
27  int row;
28  bool reverseOrder;
29 
30  QImage *p;
31  QRgb *line;
32  QWidget *displayWidget;
33 // QTimer *displayTimer;
34 
35  void setNextPixel(int);
36  bool saveImage(QString);
37 
38 
39 
40 public slots:
41  void setPixel(const unsigned char *,int);
42  void saveImage2File();
43  void storeReverse(bool order);
44 
45 protected:
46  void paintEvent(QPaintEvent *);
47 };
48 
49 #endif // SHOWPNGPICTURE_HH
ShowPngPicture(int width, int height, QWidget *parent=0)
Definition: ui_show_text_window.h:93
Definition: ui_showpngpicture.h:89
void setPixel(const unsigned char *, int)
Definition: showpngpicture.h:13
void presetBottomUp(bool order)
void saveImage2File()
void storeReverse(bool order)
void paintEvent(QPaintEvent *)