It may be desirable to wrap a window action in a txt_conditional_t
sometimes so that actions dynamically appear based on how the config
changes. So change the TXT_SetWindowAction() API to accept any widget
instead of mandating a txt_window_action_t.
Alexandre-Xavier commented in #520 that the 'start' command line to
open help URLs doesn't work. According to this page, 'start' is
actually a cmd.exe built-in and can't be shelled out to directly:
http://www.dwheeler.com/essays/open-files-urls.html
This prepends cmd /c to the 'start' command; hopefully this should
work. It might still be non-ideal if it causes a cmd.exe window to
briefly pop up; in the long term we should probably switch to the
ShellExecute() API function instead.
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.
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.
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.
background color of inactive windows to black, to give better contrast
when viewing many layered windows.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2507
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
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
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
make escape quit the program unless there are no open windows. Add
TXT_ExitMainLoop().
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 518
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
windows to be set based on position of top/bottom/center,left/right,center
coordinates.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 486