198 Commits (master)

Author SHA1 Message Date
Přemysl Eric Janouch 5a9a446b9c
Fix build on OpenIndiana 4 months ago
Přemysl Eric Janouch c77d994dc4
Rename tools, make them installable 6 months ago
Přemysl Eric Janouch 238e7a2bb9
Merge TUI and GUI binaries, using a new name
The appropriate interface will be chosen automatically.
6 months ago
Přemysl Eric Janouch 26e73711b1
Improve GLib version compatibility 6 months ago
Přemysl Eric Janouch d13b4a793d
Prevent undefined behaviour 1 year ago
Přemysl Eric Janouch 0570a4d050
sdtui: measure the "search" prompt properly 1 year ago
Přemysl Eric Janouch e28e576fdb
sdtui: improve tab bar overflow behaviour 1 year ago
Přemysl Eric Janouch ae9952387a
sdgui: don't highlight when cursor not on widget 1 year ago
Přemysl Eric Janouch 27dcf87a64
sdgui: load dictionaries asynchronously
This is a must when loading huge dictionaries,
where not even parallelization helps much.
1 year ago
Přemysl Eric Janouch 7ef502759e
sdgui: clean up DnD 1 year ago
Přemysl Eric Janouch ded899933c
sdgui: make Ctrl+click put hovered word in search 1 year ago
Přemysl Eric Janouch 832842bf81
sdgui: don't reload on size-allocate
We could annoyingly get these events on window de/focus.
1 year ago
Přemysl Eric Janouch 49072f9d01
sdgui: fix context menu item sensitivity 1 year ago
Přemysl Eric Janouch b0f1d3d6ea
Build with AsciiDoc as well as Asciidoctor
And bump copyright years.
1 year ago
Přemysl Eric Janouch 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
1 year ago
Přemysl Eric Janouch 259d0ac860
sdgui: support touch screen dragging for the view 1 year ago
Přemysl Eric Janouch aa985514a6
sdgui: fix up the smooth scrolling commit 1 year ago
Přemysl Eric Janouch 6f5e32386e
tabfile: fix mismatching popen/fclose 1 year ago
Přemysl Eric Janouch 2c69937ef5
sdgui: use smooth scrolling 1 year ago
Přemysl Eric Janouch 13ddec0274
Add a missing gtk_drag_finish() call 2 years ago
Přemysl Eric Janouch c899ceff10
sdgui: avoid focusing tab headers by mouse
Our tabs have dummy contents, which causes some complications.
2 years ago
Přemysl Eric Janouch 0d0ac40f96
sdtui: handle input field overflows reasonably 2 years ago
Přemysl Eric Janouch b36f185426
Fix various macOS-related/found issues
Even though this software isn't very useful on that system either,
due to its lack of PRIMARY.
2 years ago
Přemysl Eric Janouch 093baaa034
sdgui: make M-Tab go to the last chosen dictionary 2 years ago
Přemysl Eric Janouch ecab86966f
sdtui: make M-Tab go to the last chosen dictionary 2 years ago
Přemysl Eric Janouch e383a50af7
Add clang-format configuration, clean up 2 years ago
Přemysl Eric Janouch ed26259e6d
sdgui: fix M-0 going one item beyond our intent 2 years ago
Přemysl Eric Janouch 0eb935ad9f
sdgui: set the window title explicitly 2 years ago
Přemysl Eric Janouch c75de30765
sdgui: create and install a program icon 2 years ago
Přemysl Eric Janouch 2efad7453a
sdgui: let the view act as a drop target for files
Inspired by how the only reasonable method of launching sdgui
on Windows is by using drag and drop on the executable.

Sadly the top-level window cannot be used as a whole for this.
2 years ago
Přemysl Eric Janouch 0371dd95dd
sdgui: fix popup menu alignment
On Windows 10 GTK+ completely failed to turn it around
so that it would be visible.
2 years ago
Přemysl Eric Janouch 03ebaddff5
sdgui: add a file open dialog to the menu
And remove the selection following checkbox from Windows builds.
2 years ago
Přemysl Eric Janouch 5190601852
sdgui: make C-Page Up/Down wrap around
To mimic sdtui behaviour.
2 years ago
Přemysl Eric Janouch 89580f2113
sdgui: cross-compile for Windows
No one bothered to ask whether it /should/ be done.

The hamburger needs to be replaced with a file open dialog there.
2 years ago
Přemysl Eric Janouch 519d6bd108
sdgui: bind Up/Down to view scrolling 2 years ago
Přemysl Eric Janouch b721e26557
sdgui: improve styling of the text entry 2 years ago
Přemysl Eric Janouch ec89870a32
sdgui: trim selection text
Just like sdtui does.
2 years ago
Přemysl Eric Janouch 6158f6e3b5
sdgui: avoid Pango markup for keywords
Sadly, there is no way to make this an improvement for the end user.
2 years ago
Přemysl Eric Janouch dd7b258698
sdgui: make an attempt at smooth scrolling 2 years ago
Přemysl Eric Janouch aa3ad12d44
sdgui: decrease source code line count 2 years ago
Přemysl Eric Janouch 82accaf200
sdgui: make Page Up/Down scroll the view 2 years ago
Přemysl Eric Janouch e461189f0e
sdgui: ignore Caps Lock for accelerators 2 years ago
Přemysl Eric Janouch 85a30d20c3
sdgui: accelerate the hamburger
The hamburger initially resisted being accelerated.
2 years ago
Přemysl Eric Janouch 54ef836eec
sdgui: make even rows a bit darker by default 2 years ago
Přemysl Eric Janouch 26a3c0c825
sdgui: bind ^W as in Readline 2 years ago
Přemysl Eric Janouch c364ec3b81
sdgui: stop hardcoding cell side padding 2 years ago
Přemysl Eric Janouch a31d329754
sdgui: stop hardcoding colours
Reusing colours from sdtui configuration would be awkward
and complicated, e.g. with font attributes, so abandon that idea.
2 years ago
Přemysl Eric Janouch c0a094e473
sdgui: load dictionaries in parallel, as sdtui did
Also, resolve some use-after-frees in GTK+.
2 years ago
Přemysl Eric Janouch f147b54393
sdgui: load dictionaries from sdtui configuration 2 years ago
Přemysl Eric Janouch 10c05a2422
sdgui: clean-up
It doesn't seem like we'll want to remember the position.
2 years ago