]> Shamusworld >> Repos - ttedit/blob - src/charwindow.h
Added preview window to file loading dialog. :-)
[ttedit] / src / charwindow.h
1 //
2 // CHARWINDOW.H: Header file
3 //
4 // by James L. Hammons
5 // (C) 2009 Underground Software
6 //
7
8 #ifndef __CHARWINDOW_H__
9 #define __CHARWINDOW_H__
10
11 #include <QtWidgets>
12 #include "glyphpoints.h"
13
14 class CharWindow: public QWidget
15 {
16         Q_OBJECT
17
18         public:
19                 CharWindow(QWidget * parent = NULL);
20                 QPainterPath * MakePathFromPoints(GlyphPoints * gp);
21                 void RenderPathInImage(QPainterPath *, QImage *);
22
23         protected:
24                 QSize minimumSizeHint() const;
25                 QSize sizeHint() const;
26                 void paintEvent(QPaintEvent * event);
27
28         public:
29                 QImage img;
30                 QPainterPath * path;
31 };
32
33 #endif  // __CHARWINDOW_H__
34