summaryrefslogtreecommitdiff
path: root/src/gui/help.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
commite5f795ad9952b8bba6993ee3e324b22a0f104816 (patch)
tree1602ac0f74865135eae5acf935b0a285a8e918c2 /src/gui/help.cpp
parent7593d6c71e2331c3e43c732db60ad03ee4d5385d (diff)
downloadmana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.gz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.bz2
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.xz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.zip
Made all class members named like mClassMember.
Diffstat (limited to 'src/gui/help.cpp')
-rw-r--r--src/gui/help.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/help.cpp b/src/gui/help.cpp
index 7b56d662..6b2eca6b 100644
--- a/src/gui/help.cpp
+++ b/src/gui/help.cpp
@@ -38,20 +38,20 @@ HelpWindow::HelpWindow():
setContentSize(455, 350);
setWindowName("Help");
- browserBox = new BrowserBox();
- browserBox->setOpaque(false);
- scrollArea = new ScrollArea(browserBox);
+ mBrowserBox = new BrowserBox();
+ mBrowserBox->setOpaque(false);
+ mScrollArea = new ScrollArea(mBrowserBox);
Button *okButton = new Button("Close", "close", this);
- scrollArea->setDimension(gcn::Rectangle(
+ mScrollArea->setDimension(gcn::Rectangle(
5, 5, 445, 335 - okButton->getHeight()));
okButton->setPosition(
450 - okButton->getWidth(),
345 - okButton->getHeight());
- browserBox->setLinkHandler(this);
+ mBrowserBox->setLinkHandler(this);
- add(scrollArea);
+ add(mScrollArea);
add(okButton);
setLocationRelativeTo(getParent());
@@ -73,12 +73,12 @@ void HelpWindow::handleLink(const std::string& link)
void HelpWindow::loadHelp(const std::string &helpFile)
{
- browserBox->clearRows();
+ mBrowserBox->clearRows();
loadFile("header");
loadFile(helpFile);
- scrollArea->setVerticalScrollAmount(0);
+ mScrollArea->setVerticalScrollAmount(0);
setVisible(true);
}
@@ -90,6 +90,6 @@ void HelpWindow::loadFile(const std::string &file)
for (unsigned int i = 0; i < lines.size(); ++i)
{
- browserBox->addRow(lines[i]);
+ mBrowserBox->addRow(lines[i]);
}
}