diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-02-12 10:59:11 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-02-12 10:59:11 +0000 |
commit | 915c9b4e7daf2f49c25e254b66ef6e53a9207b29 (patch) | |
tree | a5986e1c31ad77366b26a82c4568d9ef1d65ef19 /src/gui/browserbox.h | |
parent | 078a31f906b618c1526b98ba63043a2267a858c6 (diff) | |
download | mana-915c9b4e7daf2f49c25e254b66ef6e53a9207b29.tar.gz mana-915c9b4e7daf2f49c25e254b66ef6e53a9207b29.tar.bz2 mana-915c9b4e7daf2f49c25e254b66ef6e53a9207b29.tar.xz mana-915c9b4e7daf2f49c25e254b66ef6e53a9207b29.zip |
Merged revisions 3687-3688,3690 via svnmerge from
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0
........
r3687 | crush_tmw | 2007-10-26 02:22:12 +0200 (Fri, 26 Oct 2007) | 1 line
Added possibility of length limitation to browserbox and used it for the chatlog (length set by the config option "ChatLogLength").
........
r3688 | crush_tmw | 2007-10-26 02:38:00 +0200 (Fri, 26 Oct 2007) | 1 line
Removed some completely useless code from the chat class.
........
r3690 | crush_tmw | 2007-10-26 14:50:49 +0200 (Fri, 26 Oct 2007) | 1 line
Implemented monster hurt sounds and added new sound effects by Cosmostrator.
........
Diffstat (limited to 'src/gui/browserbox.h')
-rw-r--r-- | src/gui/browserbox.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/browserbox.h b/src/gui/browserbox.h index 1c33e6f9..0a9032e4 100644 --- a/src/gui/browserbox.h +++ b/src/gui/browserbox.h @@ -74,6 +74,11 @@ class BrowserBox : public gcn::Widget, public gcn::MouseListener void setHighlightMode(unsigned int highMode); /** + * Sets the maximum numbers of rows in the browser box. 0 = no limit. + */ + void setMaxRow(int max) {mMaxRows = max; }; + + /** * Disable links & user defined colors to be used in chat input. */ void disableLinksAndUserColors(); @@ -144,7 +149,7 @@ class BrowserBox : public gcn::Widget, public gcn::MouseListener }; private: - typedef std::vector<std::string> TextRows; + typedef std::list<std::string> TextRows; typedef TextRows::iterator TextRowIterator; TextRows mTextRows; @@ -158,6 +163,7 @@ class BrowserBox : public gcn::Widget, public gcn::MouseListener bool mOpaque; bool mUseLinksAndUserColors; int mSelectedLink; + unsigned int mMaxRows; }; #endif |