X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiPainter.cpp;h=a3c2b6ccacba1438286b9f6e78c89a2ea834b031;hb=eea79637c78bb9916031924eca7b305cfb8e83df;hp=b8a692602e347f40c7ecb2f897f1d57a1e99cf64;hpb=5afe768b67fb9ec322762faff7fc051e384e8187;p=lyx.git diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp index b8a692602e..a3c2b6ccac 100644 --- a/src/frontends/qt4/GuiPainter.cpp +++ b/src/frontends/qt4/GuiPainter.cpp @@ -22,7 +22,6 @@ #include "debug.h" #include "Language.h" -#include "Color.h" #include "support/unicode.h" @@ -64,7 +63,7 @@ GuiPainter::GuiPainter(QPaintDevice * device) : QPainter(device), Painter() { // new QPainter has default QPen: - current_color_ = Color::black; + current_color_ = Color_black; current_ls_ = line_solid; current_lw_ = line_thin; } @@ -77,7 +76,7 @@ GuiPainter::~GuiPainter() } -void GuiPainter::setQPainterPen(Color_color col, +void GuiPainter::setQPainterPen(ColorCode col, Painter::line_style ls, Painter::line_width lw) { if (col == current_color_ && ls == current_ls_ && lw == current_lw_) @@ -105,7 +104,7 @@ void GuiPainter::setQPainterPen(Color_color col, } -void GuiPainter::point(int x, int y, Color_color col) +void GuiPainter::point(int x, int y, ColorCode col) { if (!isDrawingEnabled()) return; @@ -116,7 +115,7 @@ void GuiPainter::point(int x, int y, Color_color col) void GuiPainter::line(int x1, int y1, int x2, int y2, - Color_color col, + ColorCode col, line_style ls, line_width lw) { @@ -133,7 +132,7 @@ void GuiPainter::line(int x1, int y1, int x2, int y2, void GuiPainter::lines(int const * xp, int const * yp, int np, - Color_color col, + ColorCode col, line_style ls, line_width lw) { @@ -161,7 +160,7 @@ void GuiPainter::lines(int const * xp, int const * yp, int np, void GuiPainter::rectangle(int x, int y, int w, int h, - Color_color col, + ColorCode col, line_style ls, line_width lw) { @@ -173,14 +172,14 @@ void GuiPainter::rectangle(int x, int y, int w, int h, } -void GuiPainter::fillRectangle(int x, int y, int w, int h, Color_color col) +void GuiPainter::fillRectangle(int x, int y, int w, int h, ColorCode col) { fillRect(x, y, w, h, guiApp->colorCache().get(col)); } void GuiPainter::arc(int x, int y, unsigned int w, unsigned int h, - int a1, int a2, Color_color col) + int a1, int a2, ColorCode col) { if (!isDrawingEnabled()) return; @@ -199,7 +198,7 @@ void GuiPainter::image(int x, int y, int w, int h, graphics::Image const & i) graphics::GuiImage const & qlimage = static_cast(i); - fillRectangle(x, y, w, h, Color::graphicsbg); + fillRectangle(x, y, w, h, Color_graphicsbg); if (!isDrawingEnabled()) return; @@ -268,7 +267,7 @@ int GuiPainter::text(int x, int y, docstring const & s, str = ' ' + str; #endif - QLFontInfo & fi = guiApp->guiFontLoader().fontinfo(f); + GuiFontInfo & fi = guiApp->guiFontLoader().fontinfo(f); int textwidth;