]> Shamusworld >> Repos - architektonas/blobdiff - src/painter.h
Rendering for Line, Circle, and Arc work.
[architektonas] / src / painter.h
index 219547c7b2f47f38b47084923ff59714cf0e38a7..af591b8e0d59740513151dfe1c232b112ef20644 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PAINTER_H__
 #define __PAINTER_H__
 
-#include <QtGui>
+#include <QtWidgets>
 #include "vector.h"
 
 //#define SCREEN_ZOOM  (1.0 / 4.0)
@@ -22,13 +22,18 @@ class Painter
                void DrawArc(Vector, double, double, double);
                void DrawEllipse(Vector, double, double);
                void DrawHandle(Vector);
+               void DrawArrowHandle(Vector, double);
+               void DrawArrowToLineHandle(Vector, double);
                void DrawLine(int, int, int, int);
                void DrawLine(Vector, Vector);
                void DrawPoint(int, int);
                void DrawRoundedRect(QRectF, double, double);
+               void DrawPaddedRect(QRectF);
                void DrawRect(QRectF);
                void DrawText(QRectF, int, QString);
                void DrawArrowhead(Vector, Vector, double);
+               void DrawCrosshair(Vector);
+               void DrawInformativeText(QString);
 
        public:
                static Vector CartesianToQtCoords(Vector);
@@ -36,9 +41,9 @@ class Painter
 
        public:
                // Class variables
-               static Vector origin;           // The window origin, not location of the origin
-               static double zoom;                     // Window zoom factor
-               static Vector screenSize;       // Width & height of the window we're drawing on
+//             static Vector origin;           // The window origin, not location of the origin
+//             static double zoom;                     // Window zoom factor
+//             static Vector screenSize;       // Width & height of the window we're drawing on
 
        private:
                QPainter * painter;