diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-14 15:54:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-14 15:54:26 +0300 |
commit | 949deb1d666cf3b5cfe9e52259bd92ab6b07951f (patch) | |
tree | e311bed0210a409010f781df77ff3e5e1b334350 /src/gui/widgets/browserbox.h | |
parent | 5781d238e97689be482c5ac691143ce35e3e278e (diff) | |
download | mv-949deb1d666cf3b5cfe9e52259bd92ab6b07951f.tar.gz mv-949deb1d666cf3b5cfe9e52259bd92ab6b07951f.tar.bz2 mv-949deb1d666cf3b5cfe9e52259bd92ab6b07951f.tar.xz mv-949deb1d666cf3b5cfe9e52259bd92ab6b07951f.zip |
Move linepart into separate file.
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r-- | src/gui/widgets/browserbox.h | 42 |
1 files changed, 1 insertions, 41 deletions
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 <list> @@ -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. |