diff options
author | José Ávila <linux@javila.net> | 2005-06-17 07:20:03 +0000 |
---|---|---|
committer | José Ávila <linux@javila.net> | 2005-06-17 07:20:03 +0000 |
commit | c702285ab5c288fc65dacdf81b583890d3b99c63 (patch) | |
tree | 589cffa9c16d15f18df4c988bbe300806e6f6425 /src/gui/help.h | |
parent | 50b0f0e7ea4508e1ee30f0a0ea8741af6d3212d4 (diff) | |
download | mana-c702285ab5c288fc65dacdf81b583890d3b99c63.tar.gz mana-c702285ab5c288fc65dacdf81b583890d3b99c63.tar.bz2 mana-c702285ab5c288fc65dacdf81b583890d3b99c63.tar.xz mana-c702285ab5c288fc65dacdf81b583890d3b99c63.zip |
new BrowserBox widget with colors/links support
Diffstat (limited to 'src/gui/help.h')
-rw-r--r-- | src/gui/help.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/gui/help.h b/src/gui/help.h index 366bd418..3c5d95a1 100644 --- a/src/gui/help.h +++ b/src/gui/help.h @@ -26,16 +26,14 @@ #include <guichan.hpp> #include "window.h" - -struct HELP_LINK { - int yPos; - std::string file; -}; +#include "linkhandler.h" +#include "browserbox.h" /** * The help dialog. */ -class HelpWindow : public Window, public gcn::ActionListener +class HelpWindow : public Window, public LinkHandler, + public gcn::ActionListener { public: /** @@ -54,19 +52,20 @@ class HelpWindow : public Window, public gcn::ActionListener void action(const std::string& eventId); /** - * Handles mouse click. + * Handles link action. */ - void mousePress(int mx, int my, int button); + void handleLink(const std::string& link); /** - * Load help in the dialog. + * Loads help in the dialog. */ void loadHelp(const std::string &helpFile); private: - std::vector<HELP_LINK> links; + void loadFile(const std::string &file); + + BrowserBox* browserBox; gcn::Button *okButton; - gcn::TextBox *textBox; gcn::ScrollArea *scrollArea; }; |