summaryrefslogtreecommitdiff
path: root/textscreen/txt_desktop.c
AgeCommit message (Collapse)Author
2014-11-27textscreen: Exit immediately when all windows close.Simon Howard
The main loop should exit when the last window closes, but the loop code was waiting for one event to be received before this took effect. This fixes #474. Thanks to Alexandre-Xavier for the report.
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-04-01textscreen: Use safe string functions.Simon Howard
Define TXT_{StringCopy,StringConcat,snprintf,vsnprintf} as analogs of the m_misc.c versions so that the textscreen library does not need a dependency on the Doom code, and change all textscreen code to use these instead of unsafe functions. This fixes #372.
2013-08-31Add textscreen functions to raise and lower windows.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2628
2011-10-23Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2464
2011-10-23Rework textscreen focus handling so that input boxes will stop editingSimon Howard
when they lose their focus (thanks Twelve). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2460
2011-09-18Hook query code into setup tool, and add search results window.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2383
2011-04-04Change the background color when hovering over widgets.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2320
2009-09-20Use "const char" in libtextscreen where appropriate (thanks entryway).Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1679
2009-05-05Better ASCII chart.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1509
2007-06-04Rename txt_main.c to txt_sdl.c; add txt_sdl.h for SDL-specific APISimon Howard
functions, while keeping txt_main.h for the common API. Add TXT_SDL_SetEventCallback to allow programs to intercept SDL events in the textscreen main loop. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 892
2007-05-24Add TXT_SetWindowTitle function to wrap SDL_WM_SetCaption, so thatSimon Howard
txt_desktop.c doesn't need to call SDL functions directly. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 885
2006-10-23Stackable clip areas (useful for a future implementation of scrollableSimon Howard
panes). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 713
2006-09-24Debug code for drawing an ASCII chart.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 658
2006-09-19Fix textscreen warnings.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 626
2006-08-31Add missing copyright notices to textscreen and setup files.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 590
2006-08-31Exit the main loop automatically after all windows are closedSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 577
2006-06-20Always add a bit of padding inside windows (removes the need to add paddingSimon Howard
explicitly in labels). Set the window title from the desktop title. Only draw widget selection highlight in the window with focus (top window). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 560
2006-05-23Add a default action to close windows when escape is pressed. Do notSimon Howard
make escape quit the program unless there are no open windows. Add TXT_ExitMainLoop(). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 518
2006-05-20Add main loop function and forward key presses to widgets.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 490
2006-05-19Split off text mode gui desktop code into a separate file. Rename someSimon Howard
of the functions in txt_gui.c. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 483