// CHARWINDOW.H: Header file
//
// by James L. Hammons
-// (C) 2008 Underground Software
+// (C) 2009 Underground Software
//
#ifndef __CHARWINDOW_H__
#define __CHARWINDOW_H__
+#include <QtGui>
+#include "glyphpoints.h"
+
+class CharWindow: public QWidget
+{
+ Q_OBJECT
+
+ public:
+ CharWindow(QWidget * parent = NULL);
+ void MakePathFromPoints(GlyphPoints * gp);
+
+ protected:
+ QSize minimumSizeHint() const;
+ QSize sizeHint() const;
+ void paintEvent(QPaintEvent * event);
+
+ private:
+ QImage img;
+ QPainterPath * path;
+};
+
+#if 0
#include <wx/wx.h> // So that whoever uses this can without having
// to pull in a bunch of references manually
#include <wx/minifram.h>
DECLARE_EVENT_TABLE()
};
+#endif
#endif // __CHARWINDOW_H__