summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
AgeCommit message (Collapse)AuthorFilesLines
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
2005-08-25Made our drawImage() method respect the clip area from the guichan graphics ↵Björn Steinbrink1-8/+3
part. Removed some (now) obsolete code. Fixed compilation errors.
2005-08-18*Temporary* fix to the resize code. But I'll be avenged by asking for adding ↵Yohann Ferreira1-33/+1
resize code in guichan itself ;)
2005-08-16Some other fixes and an attempt to use MouseOut().Yohann Ferreira1-3/+36
2005-08-16Bugfixing and simplifying the resize code. Still a little bit buggy. (We ↵Yohann Ferreira1-43/+11
were working on the same thing Elven, ;)
2005-08-16Added a resize grip to resizable window, fixed some compiling errors.Eugenio Favalli1-7/+26
2005-08-14Removed guiGraphics global pointer and removed dependencies on gui.h in some ↵Björn Steinbrink1-7/+6
places.
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-2/+12
2005-07-26OpenGL/SDL combined in the same exe. Not in the cutest way, but we'll find aBjørn Lindeijer1-1/+1
nicer approach after the release.
2005-07-16Updated changelog, got rid of remaining extern SDL_Surface *screen cases,Bjørn Lindeijer1-9/+7
fixed double free and cleaned up a bit.