]> Shamusworld >> Repos - ttedit/blobdiff - src/charwindow.h
Separated out app object, added character window.
[ttedit] / src / charwindow.h
index 0f6add1955ee43195d216d5cd7acf95c3507eef1..cabd343bd9ed8f6589713f7e0bdc6150ed9022f8 100755 (executable)
@@ -2,12 +2,34 @@
 // 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>
@@ -29,5 +51,6 @@ class CharWindow: public wxMiniFrame
 
        DECLARE_EVENT_TABLE()
 };
+#endif
 
 #endif // __CHARWINDOW_H__