summaryrefslogtreecommitdiff
path: root/src/gui/textbox.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-1/+0
include anything not needed by that specific widget or window. This appears to have cleaned up system performance a bit on my current setup, where it went from idling on 45% in game with opengl down to 30% now. Also moved iptostring to the tostring header, as importing all of network.h is a little overkill to use that function, and it goes along with the basic functions that are in that header file anyways. TODO: find out a way to get rid of warnings when a class doesn't use this function. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Removed useless check from the last commit.Ira Rice1-5/+3
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Fixed a crash caused by getting the wrong string substring. In doing so,Ira Rice1-22/+15
the algorithm was optimized further, so that only one correction needs to be done if the last line is the longest. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Fix for a mistake in one of the logicc statements in the last commit.Ira Rice1-1/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Finally put in the last missing wrapping case that has been missing fromIra Rice1-6/+25
the textbox class. Should now always choose the most ideal text wrap possible. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Consolidated setMinWidth into textWrap, since all lines are dependantIra Rice1-1/+5
upon knowing what dimension they have to wrap to or beat in order for text wrapping to work. By adding this to be initiated at the same time as the text wrapping is done, this should decrease visual artifacts caused by not initializing it properly to begin with. Also made the item popups compact to the minimum dimension. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-4/+2
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-11-05Found a way to remove the ugly hack that was done to ensure that Ira Rice1-7/+2
stringstream would behave. Before, it set the string stream to a single space, while now it clears the stream and then sets it to null. So, should the string stream code ever be fixed in the future, this function won't break.
2008-10-12Trimmed out an unneeded line in the text wrapping code. If it was Ira Rice1-4/+0
working properly (which calling the function again with a wider window size should do), it'd do something, but since it doesn't do what it was intended to do, there's no reason to waste CPU cycles over it .
2008-10-12This commit contains three things: one, after looking over how TMW was Ira Rice1-6/+25
handling the effects through the level up system, I determined that it wasn't bad, so I pulled it from TMW's SVN. Two, I edited the web page css so that it better matches the forum. And three, I patched text wrapping so that it'll fix up its display size based on all previous lines, except for the last line. That fix will come later, but for now, it'll be seen as a special case. While you'd like to think that just resending the string and starting the function over again would fix it, you'd be wrong. So it won't be patched until I think of a better way to handle that case.
2008-10-10Fixed the text box so that it now checks the last line as well for the Ira Rice1-2/+11
minimum length for the text box (it didn't do that before)
2008-10-10Did a little bit of code cleanup (mostly from TMW changes) as well as Ira Rice1-11/+11
properly implemented line wrapping. Now, there are no more visual artifacts for speech boxes, and it always chooses the most optimal box size (which required that npc_text use it also. Do any other gui classes use the textbox class?).
2008-09-25Merged the Tametomo branch into trunk.Ira Rice1-2/+10
2008-07-18Import of client treeLloyd Bryant1-1/+1
2008-04-16Restored the text wrapping in TextBox, since it was based on overriding aBjørn Lindeijer1-8/+1
method that is no longer virtual in Guichan 0.8.0 (gcn::TextBox::setText()).
2008-04-07Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except forBjørn Lindeijer1-2/+2
gcn::TabbedArea usage)
2005-08-28Prepare our source so that it'll survive a guichan header cleanup, should it ↵Björn Steinbrink1-0/+1
ever happen...
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-0/+3
2005-06-05Implemented wrapping for textbox (still could use a small fix) and made deathBjørn Lindeijer1-0/+73
notice dialog release modal focus immediately.
2004-12-30Subclassed ListBox and TextBox for a little better visual appearance.Bjørn Lindeijer1-0/+38