diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-15 13:56:40 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-15 13:56:40 -0600 |
commit | a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c (patch) | |
tree | 75a8b557996feb095135a5cfbf74bdda69f77286 /src/gui/help.cpp | |
parent | 3123c8ce5f882f0bfb99a2d2efa45d760237ebcc (diff) | |
download | mana-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.gz mana-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.bz2 mana-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.xz mana-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.zip |
Overrode the reset window function in the chat window to also reset the
position of the recorder, as well as fixed resetting the help window,
and exposing the buy/sell window to being resettable, as well as
remembering its previous position. All windows should now be covered by
the reset button on the setup pane.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/help.cpp')
-rw-r--r-- | src/gui/help.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/help.cpp b/src/gui/help.cpp index fec39199..0974abf7 100644 --- a/src/gui/help.cpp +++ b/src/gui/help.cpp @@ -40,16 +40,17 @@ HelpWindow::HelpWindow(): setWindowName(_("Help")); setResizable(true); + setDefaultSize(500, 400, ImageRect::CENTER); + mBrowserBox = new BrowserBox(); mBrowserBox->setOpaque(false); mScrollArea = new ScrollArea(mBrowserBox); Button *okButton = new Button(_("Close"), "close", this); - mScrollArea->setDimension(gcn::Rectangle( - 5, 5, 445, 335 - okButton->getHeight())); - okButton->setPosition( - 450 - okButton->getWidth(), - 345 - okButton->getHeight()); + mScrollArea->setDimension(gcn::Rectangle(5, 5, 445, + 335 - okButton->getHeight())); + okButton->setPosition(450 - okButton->getWidth(), + 345 - okButton->getHeight()); mBrowserBox->setLinkHandler(this); @@ -59,7 +60,7 @@ HelpWindow::HelpWindow(): Layout &layout = getLayout(); layout.setRowHeight(0, Layout::AUTO_SET); - setLocationRelativeTo(getParent()); + loadWindowState(); } void HelpWindow::action(const gcn::ActionEvent &event) |