summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-04 22:38:53 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-04 23:09:01 +0300
commit6c4c6ca877c336e17c0378131a0a139792012a99 (patch)
tree3de837318ed758a8f56d494ea1693c64f0303a8d /src/gui/widgets/browserbox.h
parent86c535f287d39f03f43679e7b96f93fa370ddab7 (diff)
downloadplus-6c4c6ca877c336e17c0378131a0a139792012a99.tar.gz
plus-6c4c6ca877c336e17c0378131a0a139792012a99.tar.bz2
plus-6c4c6ca877c336e17c0378131a0a139792012a99.tar.xz
plus-6c4c6ca877c336e17c0378131a0a139792012a99.zip
Add bold markup tag to browserbox class.
##B - for bold font ##b - for normal font
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r--src/gui/widgets/browserbox.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h
index e86f0288e..cf2f9c1f1 100644
--- a/src/gui/widgets/browserbox.h
+++ b/src/gui/widgets/browserbox.h
@@ -44,13 +44,15 @@ struct BROWSER_LINK
class LinePart
{
public:
- LinePart(int x, int y, gcn::Color color, std::string text) :
- mX(x), mY(y), mColor(color), mText(text), mType(0), mImage(0)
+ LinePart(int x, int y, gcn::Color color, std::string text, bool bold) :
+ mX(x), mY(y), mColor(color), mText(text), mType(0),
+ mImage(0), mBold(bold)
{
}
LinePart(int x, int y, gcn::Color color, Image *image) :
- mX(x), mY(y), mColor(color), mText(""), mType(1), mImage(image)
+ mX(x), mY(y), mColor(color), mText(""), mType(1),
+ mImage(image), mBold(false)
{
}
@@ -61,6 +63,7 @@ class LinePart
std::string mText;
unsigned char mType;
Image *mImage;
+ bool mBold;
};
/**