summaryrefslogtreecommitdiff
path: root/textscreen/txt_inputbox.c
AgeCommit message (Collapse)Author
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-03-31Allow backspace or delete to clear the contents of an input box.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2574
2013-03-31Add file selector widget to textscreen library.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2570
2012-03-04Remove some calls to TXT_FGColor by using the new TXT_SaveColors systemSimon Howard
instead. Remove the unused "embedded color code" system from TXT_Puts. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2508
2012-02-03Fix crash when typing lots of Unicode characters into a number inputSimon Howard
box. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2494
2012-02-03Upgrade the input box and label widgets to use UTF-8 strings.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2491
2011-10-23Don't save value when destructor is called.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2461
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-04-04Change the background color when hovering over widgets.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2320
2010-12-10Replace txt_widget_t#selectable with a callback function to querySimon Howard
whether the widget is selectable. This stops the table code from selecting things that aren't really selectable - eg. empty tables, scrollpanes containing unselectable widgets, etc. Fixes a bug with the warp menu (thanks Proteh). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2207
2009-09-30Change British English spellings to American English, for consistency.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1699
2009-05-12Make txt_inputboxes emit a "changed" signal when their value is changed.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1520
2007-01-05Clear the current value when entering a new value in number input boxes.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 816
2006-09-21Use NULL for initialising pointers rather than 0.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 644
2006-09-21Fix a lot of warnings (for fussy compilers) and one always-true checkRussell Rice
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 641
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-31Initialise string input boxes to not editingSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 571
2006-06-02Make mouse button presses on widgets actually do useful thingsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 553
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-24Only allow digits to be typed in number input boxes.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 522
2006-05-23Add input box widget, and include in guitest.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 520