X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcharwindow.h;h=410475ff675a2d57337be2849b349403d2e14966;hb=HEAD;hp=a5bfb18bbbbffd18aec1ac8c0e219ce9dad3d1f1;hpb=0bd89e9489fa52f92545a7e94c4a31e863a5f898;p=ttedit diff --git a/src/charwindow.h b/src/charwindow.h index a5bfb18..410475f 100644 --- a/src/charwindow.h +++ b/src/charwindow.h @@ -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 // So that whoever uses this can without having - // to pull in a bunch of references manually -#include - -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__ +