From 949deb1d666cf3b5cfe9e52259bd92ab6b07951f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 14 May 2014 15:54:26 +0300 Subject: Move linepart into separate file. --- src/gui/widgets/browserbox.h | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) (limited to 'src/gui/widgets/browserbox.h') diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index 55f0163cd..144eddae3 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -26,6 +26,7 @@ #include "listeners/mouselistener.h" +#include "gui/widgets/linepart.h" #include "gui/widgets/widget.h" #include @@ -56,47 +57,6 @@ struct BrowserLink final std::string caption; }; -class LinePart final -{ - public: - LinePart(const int x, const int y, const Color &color, - const Color &color2, const std::string &text, - const bool bold) : - mX(x), - mY(y), - mColor(color), - mColor2(color2), - mText(text), - mType(0), - mImage(nullptr), - mBold(bold) - { - } - - LinePart(const int x, const int y, const Color &color, - const Color &color2, Image *const image) : - mX(x), - mY(y), - mColor(color), - mColor2(color2), - mText(), - mType(1), - mImage(image), - mBold(false) - { - } - - ~LinePart(); - - int mX, mY; - Color mColor; - Color mColor2; - std::string mText; - unsigned char mType; - Image *mImage; - bool mBold; -}; - /** * A simple browser box able to handle links and forward events to the * parent conteiner. -- cgit v1.2.3-60-g2f50