X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcharwindow.h;h=cabd343bd9ed8f6589713f7e0bdc6150ed9022f8;hb=29b571499a38273c6c693334512e44f4162171a5;hp=0f6add1955ee43195d216d5cd7acf95c3507eef1;hpb=3599953dec39d0ae662b039378a0b3eda39424e8;p=ttedit diff --git a/src/charwindow.h b/src/charwindow.h index 0f6add1..cabd343 100755 --- a/src/charwindow.h +++ b/src/charwindow.h @@ -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 +#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 // So that whoever uses this can without having // to pull in a bunch of references manually #include @@ -29,5 +51,6 @@ class CharWindow: public wxMiniFrame DECLARE_EVENT_TABLE() }; +#endif #endif // __CHARWINDOW_H__