]> git.lyx.org Git - features.git/commitdiff
delete Painter::fillPolygon() and associated frontend implementations
authorAbdelrazak Younes <younes@lyx.org>
Mon, 10 Jul 2006 15:14:29 +0000 (15:14 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 10 Jul 2006 15:14:29 +0000 (15:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14410 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/Painter.h
src/frontends/gtk/GPainter.C
src/frontends/gtk/GPainter.h
src/frontends/nullpainter.h
src/frontends/qt3/QLPainter.C
src/frontends/qt3/QLPainter.h
src/frontends/qt4/QLPainter.C
src/frontends/qt4/QLPainter.h

index 9680acb2e2d10205f227767029b88e9e6a0904f5..3bf36843d603641771e0301c99351062b1102e40 100644 (file)
@@ -112,13 +112,6 @@ public:
                int w, int h,
                LColor_color) = 0;
 
-       /// draw a filled (irregular) polygon (UNUSED, could be removed)
-       virtual void fillPolygon(
-               int const * xp,
-               int const * yp,
-               int np,
-               LColor_color) = 0;
-
        /// draw an arc
        virtual void arc(
                int x, int y,
index 2d38d771abc1a1167b43f66e5b4815b81e188899..594cdf05653f99510f8d9685ac9fb91f6c3e775f 100644 (file)
@@ -170,20 +170,6 @@ void GPainter::fillRectangle(int x, int y, int w, int h,
 }
 
 
-void GPainter::fillPolygon(int const * xp, int const * yp,
-       int np, LColor_color col)
-{
-       setForeground(col);
-       std::vector<Gdk::Point> points(np);
-
-       for (int i = 0; i < np; ++i) {
-               points[i].set_x(xp[i]);
-               points[i].set_y(yp[i]);
-       }
-       pixmap_->draw_polygon(gc_, true, points);
-}
-
-
 void GPainter::arc(int x, int y, unsigned int w, unsigned int h,
        int a1, int a2, LColor_color col)
 {
index 87af62724b04c61a242ecc5d71712f24593de46c..ff1eaba4fb6ced2d1486d8abd360de9587659cd4 100644 (file)
@@ -79,13 +79,6 @@ public:
                int w, int h,
                LColor_color);
 
-       /// draw a filled (irregular) polygon
-       virtual void fillPolygon(
-               int const * xp,
-               int const * yp,
-               int np,
-               LColor_color);
-
        /// draw an arc
        virtual void arc(
                int x, int y,
index 6dc5629d89e8530ee60afa498fbc58d5d426313d..2a5e5d6fd6dc3191c5bd4f3d24c54712004e0792 100644 (file)
@@ -48,8 +48,6 @@ public:
        ///
        void fillRectangle(int, int, int, int, LColor_color) {}
        ///
-       void fillPolygon(int const *, int const *, int, LColor_color) {}
-       ///
        void arc(int, int,      unsigned int, unsigned int,
                int, int, LColor_color) {}
        ///
index 4b15ad53d21839a84e7ed012fa285d6795f82251..dfb9e6f1c48361024e3c85451033f02ed3a8d399 100644 (file)
@@ -138,26 +138,6 @@ void QLPainter::fillRectangle(int x, int y, int w, int h, LColor_color col)
 }
 
 
-void QLPainter::fillPolygon(int const * xp, int const * yp,
-       int np, LColor_color col)
-{
-       // Must use new as np is not known at compile time.
-       boost::scoped_array<QCOORD> points(new QCOORD[np * 2]);
-
-       //if (1) return;
-
-       for (int i = 0, j = 0; i < np; ++i) {
-               points[j++] = xp[i];
-               points[j++] = yp[i];
-       }
-
-       setPen(col);
-       qp_->setBrush(lcolorcache.get(col));
-       qp_->drawPolygon(QPointArray(np, points.get()));
-       qp_->setBrush(Qt::NoBrush);
-}
-
-
 void QLPainter::arc(int x, int y, unsigned int w, unsigned int h,
        int a1, int a2, LColor_color col)
 {
index fad5060cd9bc3093da3127aae4daeaac45f554a8..19f1111d59df0d5a80946b6e2cc5ce9eba282686 100644 (file)
@@ -80,13 +80,6 @@ public:
                int w, int h,
                LColor_color);
 
-       /// draw a filled (irregular) polygon
-       virtual void fillPolygon(
-               int const * xp,
-               int const * yp,
-               int np,
-               LColor_color);
-
        /// draw an arc
        virtual void arc(
                int x, int y,
index 8bc90f1d925305ba610079745fbec054c2eb3034..a8d5e30aa78e416e61e7db76b7ff2784c5688d0a 100644 (file)
@@ -156,24 +156,6 @@ void QLPainter::fillRectangle(int x, int y, int w, int h, LColor_color col)
 }
 
 
-void QLPainter::fillPolygon(int const * xp, int const * yp,
-       int np, LColor_color col)
-{
-       // Must use new as np is not known at compile time.
-       boost::scoped_array<QPoint> points(new QPoint[np]);
-
-       for (int i = 0; i < np; ++i) {
-               points[i].setX(xp[i]);
-               points[i].setY(yp[i]);
-       }
-
-       setQPainterPen(col);
-       qp_->setBrush(lcolorcache.get(col));
-       qp_->drawPolygon(points.get(), np);
-       qp_->setBrush(Qt::NoBrush);
-}
-
-
 void QLPainter::arc(int x, int y, unsigned int w, unsigned int h,
        int a1, int a2, LColor_color col)
 {
index 2630ade3168bba9e195e55d0367200ccb7e4e755..6ba5ff6b4f7533eb2a318a5ba5279927164e375b 100644 (file)
@@ -85,13 +85,6 @@ public:
                int w, int h,
                LColor_color);
 
-       /// draw a filled (irregular) polygon
-       virtual void fillPolygon(
-               int const * xp,
-               int const * yp,
-               int np,
-               LColor_color);
-
        /// draw an arc
        virtual void arc(
                int x, int y,