summaryrefslogtreecommitdiff
path: root/textscreen/txt_window.c
AgeCommit message (Collapse)Author
2015-04-10Add missing #includes.Simon Howard
2015-04-04textscreen: Add help URL functionality for windows.Simon Howard
This adds the ability to associate a URL with a window that gives some extra information about it and the configuration options found in it.
2014-10-14textscreen: Fix use-after-free with mouse press.Simon Howard
When propagating mouse button presses to widgets within the window, return from MouseButtonPress() immediately, or we will fall through to additional code that references the window structure. If the handler for the widget we clicked on closes the window, this will have been freed. This fixed #439. Thanks to DuClare for telling me about this.
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.
2012-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2537
2012-03-01Rework the way that window background colors are set, and change theSimon Howard
background color of inactive windows to black, to give better contrast when viewing many layered windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2507
2011-10-23Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2464
2011-10-23Fix crash when closing a window.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2462
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-20Add TXT_MessageBox convenience function.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2388
2011-04-09Fix action area minimum width calculation.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2324
2011-04-04Fix crash.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2321
2011-04-04Change the background color when hovering over widgets.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2320
2010-12-10Change alignment of actions in a window's action area so that there isSimon Howard
equal space either side of the center widget. This is more aesthetically pleasing. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2208
2007-07-29Allow more than the standard three mouse buttons to be defined throughSimon Howard
setup (hopefully) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 939
2006-10-11Shut up compiler warningsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 695
2006-09-21Rename Accept to Select.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 648
2006-09-21Fix some warnings in textscreen code.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 645
2006-09-19Fix textscreen warnings.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 626
2006-09-19'widgets' variable was used uninitialised. For some reason this didn't Simon Howard
always crash! Subversion-branch: /trunk/chocolate-doom Subversion-revision: 624
2006-08-31Add missing copyright notices to textscreen and setup files.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 590
2006-08-31Add window listener functions to allow spying on keys and mouse buttonsSimon Howard
received by windows. Emit a 'closed' signal when a window is closed. Allow windows to have no action buttons. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 576
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-06-02Make clicking on "accept" action buttons send enter keypresses to the window.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 554
2006-06-02Make mouse button presses on widgets actually do useful thingsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 553
2006-06-02Add utility functions to create "Abort" and "Accept" window actionsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 551
2006-06-02Draw the bottom separator in windows at the full window width.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 550
2006-06-02textscreen: Rejig how the entire drawing process works. Add a recursiveSimon Howard
layout method that assigns the position and size of widgets for the whole window before drawing. Add another method that responds to mouse button presses. Allow windows to have no title bar by specifying NULL as the title. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 547
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-23Add window action class for action area labels at the bottom of windows. Simon Howard
Adjust txt_table_t to expand tables to their maximum width when they only have one column (ensures separators reach the window edges). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 515
2006-05-20Make all windows be tables with one column.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 493
2006-05-20Add table class. Allow widgets with heights of more than one line.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 492
2006-05-20Add main loop function and forward key presses to widgets.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 490
2006-05-20Add selectable and visible properties to widgets. Allow the position ofSimon Howard
windows to be set based on position of top/bottom/center,left/right,center coordinates. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 486
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
2006-05-18Add TXT_SetDesktopTitle()Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 482
2006-05-18Make TXT_AddWidget take a NULL pointer so different widget types canSimon Howard
be passed to it. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 481
2006-05-18Initial working text-mode GUI framework.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 480