summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-09Mostly whitespace fixesBjørn Lindeijer1-16/+16
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-04Few more unneeded headers that weren't noticed originally in the lastIra Rice1-2/+0
commit. Also, while the overall performance improved a little, it doesn't appear to be as drastic as the last commit was suggesting. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-2/+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-30Exposed most gui elements to take alpha values. There are still a fewIra Rice1-0/+1
spots that could also be fixed up as well, but require other methods to fix them (the filled color rectangles on the progress bars, as well as the text on them as well, as an example). Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Re-enabled real time gui opacity updating.Ira Rice1-3/+8
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.
2009-01-18Fixed layout of video setup page when translatedBjørn Lindeijer1-5/+4
Introduced a LayoutHelper class which can be used for any non-Window container where you want to use a layout to place child widgets.
2009-01-15Fixed Item Popup window transparency (double setting of the skin)Ira Rice1-3/+6
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-06Merged layout handler from mainlineBjørn Lindeijer1-34/+49
Also fixed login dialog layout. This is the layout handler by Guillaume Melquiond, which he started in commit 59472ef68fdef3f7e8858a81a46e28c127119c58.
2008-12-29Added support for True Type Fonts using GUIChan's inbuilt SDLTrueTypeIra Rice1-0/+1
class. NOTE: This commit adds a brand new dependency (SDL_TTF). Make sure to install it, regenerate your config files, reconfigure, and then install before attempting to compile. Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-07Fixed inconsistency in default window sizesBjørn Lindeijer1-11/+8
The default window sizes were all too small, since they were specified in content size. On pressing "Reset Windows", the sizes would be interpreted as such and apply alright. The inconsistency is now removed, and the default window sizes are always the size of the whole widget now, not just the contents. Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2008-12-07Merge commit 'a7c21e6f8add37af7412449742ec55c8daa8571a'Ira Rice1-0/+1
Conflicts: AUTHORS CMakeLists.txt ChangeLog INSTALL README aethyra.cbp configure.ac data/help/changes.txt data/help/commands.txt data/help/header.txt data/help/support.txt src/Makefile.am src/aethyra.rc src/being.cpp src/being.h src/equipment.cpp src/equipment.h src/floor_item.h src/game.cpp src/gui/buddywindow.cpp src/gui/char_select.cpp src/gui/char_server.cpp src/gui/chat.cpp src/gui/chat.h src/gui/equipmentwindow.cpp src/gui/equipmentwindow.h src/gui/gui.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/itemcontainer.cpp src/gui/itemcontainer.h src/gui/minimap.cpp src/gui/ministatus.cpp src/gui/newskill.cpp src/gui/npc_text.cpp src/gui/npclistdialog.h src/gui/ok_dialog.cpp src/gui/setup_video.cpp src/gui/skill.cpp src/gui/skill.h src/gui/status.h src/gui/table_model.h src/gui/updatewindow.cpp src/gui/viewport.cpp src/inventory.cpp src/inventory.h src/keyboardconfig.cpp src/keyboardconfig.h src/localplayer.cpp src/localplayer.h src/logindata.h src/main.cpp src/map.cpp src/monster.cpp src/monster.h src/net/beinghandler.cpp src/net/beinghandler.h src/net/buysellhandler.cpp src/net/equipmenthandler.cpp src/net/loginhandler.cpp src/net/loginhandler.h src/net/network.h src/net/npchandler.cpp src/net/playerhandler.cpp src/net/protocol.h src/net/tradehandler.cpp src/npc.cpp src/npc.h src/particleemitter.cpp src/particleemitterprop.h src/player.cpp src/player.h src/player_relations.cpp src/resources/imageset.cpp src/resources/imageset.h src/resources/itemdb.cpp src/resources/mapreader.cpp src/resources/monsterinfo.h src/text.cpp src/text.h src/textmanager.cpp src/textmanager.h src/tileset.h src/utils/fastsqrt.h src/utils/strprintf.cpp src/winver.h tools/tmxcopy/Makefile tools/tmxcopy/base64.cpp tools/tmxcopy/base64.h tools/tmxcopy/tostring.h Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-21Changed windowing code to allow for multiple skins. This will be Ira Rice1-10/+11
modified in a bit so that there are no redundant skin loads, but for now, it doesn't leak any more as well.
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-5/+3
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-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-09-25Merged the Tametomo branch into trunk.Ira Rice1-35/+211
2008-08-06Make sure only to save the window state when a window name is set, and failBjørn Lindeijer1-8/+11
when loadWindowState() is called without setting a window name.
2008-07-25Applied patch by ElvenProgrammer to remember window locations between sessionsLloyd Bryant1-0/+2
2008-07-23Remember windows visibility.Eugenio Favalli1-0/+2
2008-07-18Import of client treeLloyd Bryant1-1/+1
2008-04-29* Fixed issue with determining whether chat input is focused (method no longerBjørn Lindeijer1-4/+4
virtual). * Fixed sometimes rendering with the wrong font. * Fixed warnings about hiding virtual method, Window now always deletes its children (the option not to do so was never used anyway).
2008-04-07Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except forBjørn Lindeijer1-89/+16
gcn::TabbedArea usage)
2007-11-20Merged revisions 3692 via svnmerge from Bjørn Lindeijer1-1/+4
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3692 | gmelquio | 2007-10-27 11:03:13 +0200 (Sat, 27 Oct 2007) | 1 line Made it compile with GCC 4.3 ........
2007-11-20Merged revisions 3642,3662-3664,3667 via svnmerge from Bjørn Lindeijer1-7/+8
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3642 | gmelquio | 2007-10-19 19:46:46 +0200 (Fri, 19 Oct 2007) | 1 line Factored code between resource handlers. Implemented failure-friendly sprite loader. ........ r3662 | gmelquio | 2007-10-21 21:01:16 +0200 (Sun, 21 Oct 2007) | 1 line Added persistent positioning. ........ r3663 | gmelquio | 2007-10-21 21:03:43 +0200 (Sun, 21 Oct 2007) | 1 line Fixed missing pixels at bottom and right. ........ r3664 | gmelquio | 2007-10-21 21:05:56 +0200 (Sun, 21 Oct 2007) | 1 line Changed to use default values when restoring missing settings. ........ r3667 | gmelquio | 2007-10-21 22:09:08 +0200 (Sun, 21 Oct 2007) | 1 line Fixed invisible text in dropboxes and shopboxes. ........
2007-10-22Merged changesets 3631, 3645 and 3648 from trunk to 0.0 branch.Bjørn Lindeijer1-37/+36
2007-08-28Made buy dialog resizable and added a WindowListener class for listening forBjørn Lindeijer1-1/+44
window resize and move events.
2007-08-24Added trimming of name for new character creation and of chat messagesBjørn Lindeijer1-71/+62
appearing above players. Also improved resize mouse cursor indication, removing duplicated code and fixing indicator above resize grip.
2007-08-24Removed unnecessary Gui::isCustomCursor method.Bjørn Lindeijer1-12/+4
2007-08-20Added close button functionality, resize cursor cues.Joshua Langley1-26/+138
2007-07-11Fixed resizing windows by their resize grip.Bjørn Lindeijer1-7/+6
2007-04-15Increased minimum window height and fixed a problem with setting window contentBjørn Lindeijer1-3/+3
size which was introduced with the new resize grip.
2007-04-15Reimplemented window resizing. It is now once again possible to resize windowsBjørn Lindeijer1-67/+124
using their borders (except for the top one, since that's the title bar for Guichan) and the resize grip in the bottom right is much easier to grab. Needs some testing.
2007-01-14Upgraded to Guichan 0.6.0 (merge from guichan-0.6.0 branch).Bjørn Lindeijer1-83/+38
2006-12-12Merged r2829 from trunk (Merged the definition of ImageRect into graphics.h)Bjørn Lindeijer1-2/+0
2006-12-03Made NPC names visible. Windows are now invisible by default.Bjørn Lindeijer1-0/+3
2006-08-24Added support for sticky windows as discussed with doener. Patch by AHarrisonEugenio Favalli1-0/+21
2006-08-13Merged Guichan 0.5.0 support from guichan-0.5.0 branch, plus several updatesBjørn Lindeijer1-21/+11
from the 0.1.0 branch.
2006-03-25Added window resize patch by peoro.Eugenio Favalli1-9/+6
2006-03-16A bunch of cosmetic changes.Björn Steinbrink1-19/+6
2006-03-09Made all class members named like mClassMember.Björn Steinbrink1-23/+23
2005-10-18Added automatic widget cleanup to the window class.Björn Steinbrink1-6/+8
2005-10-09* Made Sprite into an interface implemented by both FloorItem and Being, whichBjørn Lindeijer1-21/+19
hook themselves into the map on construction. The improved fringe layer is working as expected now. * Made sure TMW compiles without warnings even when using "-Wconversion -Wshadow -Wcast-qual -Wwrite-strings -ansi -pedantic", lots of cleanups. * Added two new small tilesets that contain the desert tiles that are twice and three times the height of a normal tile. One well in new_3-1 has been converted to use the new double tiles for testing purposes.
2005-10-02Added check for pthread library (needed for FreeBSD, still needs to be checkedBjørn Lindeijer1-39/+36
on MacOS X) and some cleanups.
2005-09-29Improved a lot windows reset to default size and pos. Also corrected a few ↵Yohann Ferreira1-0/+21
the default win position. And moved the setposition from game to each win, to clarify the code.
2005-09-28Save and load X, Y, Height, and Width to useful wins.Yohann Ferreira1-0/+25
2005-09-28Added window internal name to every window. Useful to later get and save X, ↵Yohann Ferreira1-0/+11
Y, Height, and Width of these wins.
2005-09-20Fixed use of Enter for closing death and weight notices, and changed glColor4fBjørn Lindeijer1-5/+6
to glColor4ub.
2005-08-28Create a static ConfigListener for the Window class.Björn Steinbrink1-21/+33
2005-08-27Bail out early if there's no window container.Björn Steinbrink1-6/+5