Commit Graph

17 Commits

Author SHA1 Message Date
ae9952387a sdgui: don't highlight when cursor not on widget 2022-09-12 04:00:26 +02:00
ded899933c sdgui: make Ctrl+click put hovered word in search 2022-09-03 22:00:53 +02:00
832842bf81 sdgui: don't reload on size-allocate
We could annoyingly get these events on window de/focus.
2022-09-03 18:17:04 +02:00
49072f9d01 sdgui: fix context menu item sensitivity 2022-09-03 17:19:12 +02:00
2ff01f9fdb sdgui: support text selection in the view
This is generally an improvement over the initial GtkLabel approach:
 - Multiple definition lines can be selected at once.
 - The widget doesn't keep a selection caret around (which means
   it can't be controlled from the keyboard, a conscious trade-off).
 - Text doesn't needlessly go to PRIMARY immediately during selection,
   making it somewhat possible lift the self-exception for
   the PRIMARY selection watch.

Closes #2
2022-08-04 05:23:09 +02:00
259d0ac860 sdgui: support touch screen dragging for the view 2022-07-24 23:15:18 +02:00
aa985514a6 sdgui: fix up the smooth scrolling commit 2022-07-24 23:15:18 +02:00
2c69937ef5 sdgui: use smooth scrolling 2022-07-24 21:36:57 +02:00
03ebaddff5 sdgui: add a file open dialog to the menu
And remove the selection following checkbox from Windows builds.
2021-10-23 02:12:24 +02:00
6158f6e3b5 sdgui: avoid Pango markup for keywords
Sadly, there is no way to make this an improvement for the end user.
2021-10-20 11:17:41 +02:00
dd7b258698 sdgui: make an attempt at smooth scrolling 2021-10-20 09:46:06 +02:00
82accaf200 sdgui: make Page Up/Down scroll the view 2021-10-20 09:15:06 +02:00
c364ec3b81 sdgui: stop hardcoding cell side padding 2021-10-17 11:18:29 +02:00
a31d329754 sdgui: stop hardcoding colours
Reusing colours from sdtui configuration would be awkward
and complicated, e.g. with font attributes, so abandon that idea.
2021-10-17 09:37:32 +02:00
8fb2ce29cf sdgui: clean up scrolling code 2021-10-15 23:59:45 +02:00
ce92a23551 sdgui: scroll by three rows
Don't use an arbitrary amount of pixels, base it off the font.
2021-10-15 23:09:26 +02:00
9d7bc2a839 sdgtk: add and use a custom listview widget
Nothing in GTK+ appears to be suited for what are virtually infinite
lists.  Our workaround with GtkLabel and GtkScrolledWindow has been
heavily suboptimal and needs to be replaced.

Use Pango directly to handle our relatively simple needs.

Upgrades:
 - the widget can be scrolled,
 - keywords are repeated for each definition line,
 - definition lines are now wrapped, and support 'g' and 'x' fields.

Downgrades:
 - text can no longer be selected, so far.
2021-10-15 11:46:09 +02:00