]> Shamusworld >> Repos - ttedit/blobdiff - src/charwindow.h
Added preview window to file loading dialog. :-)
[ttedit] / src / charwindow.h
index a5bfb18bbbbffd18aec1ac8c0e219ce9dad3d1f1..410475ff675a2d57337be2849b349403d2e14966 100644 (file)
@@ -17,40 +17,18 @@ class CharWindow: public QWidget
 
        public:
                CharWindow(QWidget * parent = NULL);
-               void MakePathFromPoints(GlyphPoints * gp);
+               QPainterPath * MakePathFromPoints(GlyphPoints * gp);
+               void RenderPathInImage(QPainterPath *, QImage *);
 
        protected:
                QSize minimumSizeHint() const;
                QSize sizeHint() const;
                void paintEvent(QPaintEvent * event);
 
-       private:
+       public:
                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>
-
-class CharWindow: public wxMiniFrame
-{
-       private:
-       protected:
-       public:
-               wxBitmap * bmp;
-
-               // Constructor and destructor
-//             CharWindow(wxFrame * parent, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0);
-               CharWindow(wxFrame * parent, const wxString &title, const wxPoint &pos, const wxSize &size, long style);
-               ~CharWindow(void);
-
-               void OnPaint(wxPaintEvent &e);
-//             void OnMouseEvent(wxMouseEvent &e);
-
-       DECLARE_EVENT_TABLE()
-};
-#endif
-
 #endif // __CHARWINDOW_H__
+