diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-09 01:36:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-09 01:45:28 +0300 |
commit | e153ea49f7442a82651e4e35f2be59c459ad32cb (patch) | |
tree | 8daace3c1691df379296600af4ce3ab3ba5325d0 /src/gui/windows | |
parent | b2c430f8e0fd67c6529227f8e8bebdc407ef530d (diff) | |
download | manaverse-e153ea49f7442a82651e4e35f2be59c459ad32cb.tar.gz manaverse-e153ea49f7442a82651e4e35f2be59c459ad32cb.tar.bz2 manaverse-e153ea49f7442a82651e4e35f2be59c459ad32cb.tar.xz manaverse-e153ea49f7442a82651e4e35f2be59c459ad32cb.zip |
Use all parameters in browserbox constructors.
Also load browserbox skin for each instance.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/didyouknowwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/helpwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/npcdialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/questswindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/whoisonline.cpp | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/windows/didyouknowwindow.cpp b/src/gui/windows/didyouknowwindow.cpp index 88c579d57..f854e58f5 100644 --- a/src/gui/windows/didyouknowwindow.cpp +++ b/src/gui/windows/didyouknowwindow.cpp @@ -49,7 +49,7 @@ DidYouKnowWindow::DidYouKnowWindow() : // TRANSLATORS: did you know window name Window(_("Did You Know?"), false, nullptr, "didyouknow.xml"), gcn::ActionListener(), - mBrowserBox(new BrowserBox(this)), + mBrowserBox(new BrowserBox(this, BrowserBox::AUTO_SIZE, true)), mScrollArea(new ScrollArea(mBrowserBox, true, "didyouknow_background.xml")), // TRANSLATORS: did you know window button diff --git a/src/gui/windows/helpwindow.cpp b/src/gui/windows/helpwindow.cpp index ae9d783fb..27632517e 100644 --- a/src/gui/windows/helpwindow.cpp +++ b/src/gui/windows/helpwindow.cpp @@ -51,7 +51,7 @@ HelpWindow::HelpWindow() : gcn::ActionListener(), // TRANSLATORS: help window. button. mDYKButton(new Button(this, _("Did you know..."), "DYK", this)), - mBrowserBox(new BrowserBox(this)), + mBrowserBox(new BrowserBox(this, BrowserBox::AUTO_SIZE, true)), mScrollArea(new ScrollArea(mBrowserBox, true, "help_background.xml")), mTagFileMap() { diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index a302672f7..f4cecbb88 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -84,7 +84,7 @@ NpcDialog::NpcDialog(const int npcId) : mNpcId(npcId), mDefaultInt(0), mDefaultString(), - mTextBox(new BrowserBox(this, BrowserBox::AUTO_WRAP)), + mTextBox(new BrowserBox(this, BrowserBox::AUTO_WRAP, true)), mScrollArea(new ScrollArea(mTextBox, getOptionBool("showtextbackground"), "npc_textbackground.xml")), mText(), diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp index 7f320c18c..ea91dd9b0 100644 --- a/src/gui/windows/questswindow.cpp +++ b/src/gui/windows/questswindow.cpp @@ -127,7 +127,7 @@ QuestsWindow::QuestsWindow() : mQuestScrollArea(new ScrollArea(mQuestsListBox, getOptionBool("showlistbackground"), "quests_list_background.xml")), mItemLinkHandler(new ItemLinkHandler), - mText(new BrowserBox(this, BrowserBox::AUTO_WRAP)), + mText(new BrowserBox(this, BrowserBox::AUTO_WRAP, true)), mTextScrollArea(new ScrollArea(mText, getOptionBool("showtextbackground"), "quests_text_background.xml")), // TRANSLATORS: quests window button diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index 23251f427..2847c0d0f 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -1207,7 +1207,7 @@ public: CreatePopup() : Popup("SocialCreatePopup"), LinkHandler(), - mBrowserBox(new BrowserBox(this)) + mBrowserBox(new BrowserBox(this, BrowserBox::AUTO_SIZE, true)) { mBrowserBox->setPosition(4, 4); mBrowserBox->setHighlightMode(BrowserBox::BACKGROUND); diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index d025f83b6..e49d858fd 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -180,7 +180,7 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost, // TRANSLATORS: updater window button mPlayButton(new Button(this, _("Play"), "play", this)), mProgressBar(new ProgressBar(this, 0.0, 310, 0)), - mBrowserBox(new BrowserBox(this)), + mBrowserBox(new BrowserBox(this, BrowserBox::AUTO_SIZE, true)), mScrollArea(new ScrollArea(mBrowserBox, true, "update_background.xml")), mUpdateServerPath(mUpdateHost) { diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index 40d85f387..2b5bac534 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -85,7 +85,7 @@ WhoIsOnline::WhoIsOnline() : mDownloadedBytes(0), mMemoryBuffer(nullptr), mCurlError(new char[CURL_ERROR_SIZE]), - mBrowserBox(new BrowserBox(this)), + mBrowserBox(new BrowserBox(this, BrowserBox::AUTO_SIZE, true)), mScrollArea(new ScrollArea(mBrowserBox, false)), mUpdateTimer(0), mOnlinePlayers(), |