Commit Graph

308 Commits

Author SHA1 Message Date
Přemysl Eric Janouch ed26259e6d
sdgui: fix M-0 going one item beyond our intent 2021-10-28 21:42:49 +02:00
Přemysl Eric Janouch 8c80aa9da2
CMakeLists.txt: configure NSIS
- Install a link to sdgui to the Start Menu.
 - Associate the .ifo file extension with sdgui.
 - Change the installation directory name to contain a space,
   rather than a dash, since that appears to be the norm.
   It's also copied over to the display name.

And thus, the GUI has become somewhat usable on Windows.
2021-10-27 22:52:29 +02:00
Přemysl Eric Janouch 9aa26e2807
CMakeLists.txt: think of older versions
At minimum it documents the novelty of the command argument.
2021-10-27 19:54:02 +02:00
Přemysl Eric Janouch f7528a05a3
CMakeLists.txt: refactor icon generation 2021-10-27 19:23:47 +02:00
Přemysl Eric Janouch 46e9b7b584
sdgui: rasterize some icons, including for Windows 2021-10-27 09:48:57 +02:00
Přemysl Eric Janouch 0eb935ad9f
sdgui: set the window title explicitly 2021-10-27 09:46:54 +02:00
Přemysl Eric Janouch c75de30765
sdgui: create and install a program icon 2021-10-27 09:46:17 +02:00
Přemysl Eric Janouch 451859e976
Fix the test target and unargumented ctest
CMake does know how to be tough on users, but we've won at last.
2021-10-27 00:18:01 +02:00
Přemysl Eric Janouch 0f45b9bf3b
Test the project's XMLs for well-formedness
But only if the respective binaries can be found.
2021-10-26 23:34:04 +02:00
Přemysl Eric Janouch 27a9869a6a
Trim down the Windows build a bit
Remove most unused Adwaita icons and cursors, it's about 30 mebibytes
of raw bullshit that doesn't seem to be missing in any shape or form.

Rather sadly, the script is too complex to be rewritten in CMake script.
2021-10-26 11:31:50 +02:00
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.
2021-10-25 04:02:37 +02:00
Přemysl Eric Janouch dc36a88968
Improve GLib deprecation disabling
Added a match against the version stated in the README.
2021-10-24 16:30:44 +02:00
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.
2021-10-23 18:51:23 +02:00
Přemysl Eric Janouch cbdb1cfaa6
Remove unnecessary DLLs from Windows builds
This saves 21 MiB of MSYS2 libraries, without any adverse effects.

The MSYS2 build remains bloated, due to the Adwaita icon theme.
2021-10-23 18:27:43 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch 5190601852
sdgui: make C-Page Up/Down wrap around
To mimic sdtui behaviour.
2021-10-23 00:45:29 +02:00
Přemysl Eric Janouch b77395b931
make-template.sh: minor improvements
Normalize the locale, and be more friendly towards paths with spaces.
2021-10-22 23:32:56 +02:00
Přemysl Eric Janouch 809304cbb3
README: fix cross-building instructions
Copy-pasting and mental exhaustion do not go well together.
2021-10-22 23:32:52 +02:00
Přemysl Eric Janouch 462428d0a2
sdgui: the firstclassing continues 2021-10-22 02:20:04 +02:00
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.
2021-10-22 01:59:09 +02:00
Přemysl Eric Janouch c7b9d65797
README: make sdgui even more 1st-class
It has reached a fairly high level of usability already.
2021-10-20 14:01:46 +02:00
Přemysl Eric Janouch 519d6bd108
sdgui: bind Up/Down to view scrolling 2021-10-20 11:51:38 +02:00
Přemysl Eric Janouch b721e26557
sdgui: improve styling of the text entry 2021-10-20 11:46:52 +02:00
Přemysl Eric Janouch ec89870a32
sdgui: trim selection text
Just like sdtui does.
2021-10-20 11:19:47 +02:00
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.
2021-10-20 11:17:41 +02:00
Přemysl Eric Janouch dd7b258698
sdgui: make an attempt at smooth scrolling 2021-10-20 09:46:06 +02:00
Přemysl Eric Janouch aa3ad12d44
sdgui: decrease source code line count 2021-10-20 09:17:53 +02:00
Přemysl Eric Janouch 82accaf200
sdgui: make Page Up/Down scroll the view 2021-10-20 09:15:06 +02:00
Přemysl Eric Janouch e461189f0e
sdgui: ignore Caps Lock for accelerators 2021-10-20 08:58:53 +02:00
Přemysl Eric Janouch 85a30d20c3
sdgui: accelerate the hamburger
The hamburger initially resisted being accelerated.
2021-10-20 08:35:00 +02:00
Přemysl Eric Janouch 54ef836eec
sdgui: make even rows a bit darker by default 2021-10-17 12:46:06 +02:00
Přemysl Eric Janouch 26a3c0c825
sdgui: bind ^W as in Readline 2021-10-17 11:58:06 +02:00
Přemysl Eric Janouch 5216205056
README: make sdgui more of a first-class citizen 2021-10-17 11:25:32 +02:00
Přemysl Eric Janouch c364ec3b81
sdgui: stop hardcoding cell side padding 2021-10-17 11:18:29 +02:00
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.
2021-10-17 09:37:32 +02:00
Přemysl Eric Janouch 33e98881ad
sdgui: add a MIME-associated desktop file
Neither StarDict nor shared-mime-info have their own MIME DB file.
2021-10-16 09:00:31 +02:00
Přemysl Eric Janouch c0a094e473
sdgui: load dictionaries in parallel, as sdtui did
Also, resolve some use-after-frees in GTK+.
2021-10-16 08:34:37 +02:00
Přemysl Eric Janouch f147b54393
sdgui: load dictionaries from sdtui configuration 2021-10-16 06:46:44 +02:00
Přemysl Eric Janouch 10c05a2422
sdgui: clean-up
It doesn't seem like we'll want to remember the position.
2021-10-16 03:45:38 +02:00
Přemysl Eric Janouch 8fb2ce29cf
sdgui: clean up scrolling code 2021-10-15 23:59:45 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch 573554b9de
sdgtk -> sdgui, improve build, mention in README
It's finally not horrible.
2021-10-15 12:09:37 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch f812fae922
Add the GNU/FDL German-Czech dictionary to dicts
But only build it with WANT_BAD_DICTS set to non-null.
2021-10-13 23:58:57 +02:00
Přemysl Eric Janouch 3d53b2c131
Fix g_option_context_get_help() usage 2021-10-12 02:39:16 +02:00
Přemysl Eric Janouch 627c296057
query-tool: support more field types
Add options to format the output for the terminal, or IRC messages.

Changed the output format to separate dictionary name with a tab,
so it's now rather similar to tabfiles.
2021-10-12 02:38:40 +02:00
Přemysl Eric Janouch 13a16d1eb5
Update translations 2021-10-12 02:02:40 +02:00
Přemysl Eric Janouch b8e43c5d5a
make-template.sh: fix, improve, update, run 2021-10-11 21:15:11 +02:00
Přemysl Eric Janouch e2790b42f3
sdtui: fix introductory message centring 2021-10-11 21:15:11 +02:00
Přemysl Eric Janouch 9b220b74cc
sdtui: minor rendering clean-up 2021-10-11 21:15:11 +02:00