Commit graph

15 commits

Author SHA1 Message Date
Simon Howard
6878629637 textscreen: Allow cycling through tables with tab key.
Most GUI toolkits allow using the tab key to cycle through windows, so
support this (and shift-tab to cycle backwards) just for completeness.
2015-07-11 17:13:20 -04:00
Simon Howard
7684ddcfd8 Clean up file headers.
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-05-05 00:20:54 -04:00
Simon Howard
242fa1ee46 textscreen: Fix jump when clicking on scrollbars.
Clicking on a scrollbar should scroll the cursor to that location, but
the logic for it was buggy because of loss of precision when doing an
integer divide. When dividing by bar_max, seek up to the nearest value
so that the cursor always arrives where we clicked.

Thanks to Alexandre-Xavier for reporting this bug. This fixes #359.
2014-04-29 01:47:13 -04:00
Simon Howard
379d372c65 Merge from trunk.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2464
2011-10-23 20:07:40 +00:00
Simon Howard
dd52766c7b Rework textscreen focus handling so that input boxes will stop editing
when they lose their focus (thanks Twelve).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2460
2011-10-23 19:25:55 +00:00
Simon Howard
96f7da6adf Hook query code into setup tool, and add search results window.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2383
2011-09-18 14:16:27 +00:00
Simon Howard
9f3f6683d9 Change the background color when hovering over widgets.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2320
2011-04-04 20:07:07 +00:00
Simon Howard
a69af94b58 Scroll faster in reaction to the scroll wheel.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2310
2011-03-27 23:45:53 +00:00
Simon Howard
bc087b49e2 Fix scrollbars so that clicks scroll the pane to a location that matches
the clicked location. Interpret mousewheel events so that scroll panes
can be scrolled.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2307
2011-03-22 21:08:04 +00:00
Simon Howard
56824b130b Replace txt_widget_t#selectable with a callback function to query
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
2010-12-10 20:31:46 +00:00
Simon Howard
ec81c27ef5 Allow PGUP/PGDN to scroll up and down in scroll panes (thanks
LionsPhil).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1631
2009-08-27 23:27:47 +00:00
Simon Howard
9b5d574982 Fix signed/unsigned conversion warning.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1448
2009-03-06 20:01:32 +00:00
Simon Howard
39b7cb7bb2 Fix layout of widgets within scroll panes. Scroll scroll panes in
response to keyboard events.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1440
2009-01-30 23:53:47 +00:00
Simon Howard
61361932bf Allow clicking within scroll bars to set position.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1438
2009-01-29 23:00:14 +00:00
Simon Howard
5a122d591e Add scrollable pane widget to textscreen library.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1437
2009-01-29 22:54:13 +00:00