Přemysl Eric Janouch
13ddec0274
Add a missing gtk_drag_finish() call
3 months ago
Přemysl Eric Janouch
c899ceff10
sdgui: avoid focusing tab headers by mouse
...
Our tabs have dummy contents, which causes some complications.
3 months ago
Přemysl Eric Janouch
0d0ac40f96
sdtui: handle input field overflows reasonably
7 months 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.
7 months ago
Přemysl Eric Janouch
093baaa034
sdgui: make M-Tab go to the last chosen dictionary
7 months ago
Přemysl Eric Janouch
ecab86966f
sdtui: make M-Tab go to the last chosen dictionary
7 months ago
Přemysl Eric Janouch
e383a50af7
Add clang-format configuration, clean up
7 months ago
Přemysl Eric Janouch
ed26259e6d
sdgui: fix M-0 going one item beyond our intent
7 months ago
Přemysl Eric Janouch
0eb935ad9f
sdgui: set the window title explicitly
7 months ago
Přemysl Eric Janouch
c75de30765
sdgui: create and install a program icon
7 months 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.
7 months 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.
7 months ago
Přemysl Eric Janouch
03ebaddff5
sdgui: add a file open dialog to the menu
...
And remove the selection following checkbox from Windows builds.
7 months ago
Přemysl Eric Janouch
5190601852
sdgui: make C-Page Up/Down wrap around
...
To mimic sdtui behaviour.
7 months 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.
7 months ago
Přemysl Eric Janouch
519d6bd108
sdgui: bind Up/Down to view scrolling
7 months ago
Přemysl Eric Janouch
b721e26557
sdgui: improve styling of the text entry
7 months ago
Přemysl Eric Janouch
ec89870a32
sdgui: trim selection text
...
Just like sdtui does.
7 months 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.
7 months ago
Přemysl Eric Janouch
dd7b258698
sdgui: make an attempt at smooth scrolling
7 months ago
Přemysl Eric Janouch
aa3ad12d44
sdgui: decrease source code line count
7 months ago
Přemysl Eric Janouch
82accaf200
sdgui: make Page Up/Down scroll the view
7 months ago
Přemysl Eric Janouch
e461189f0e
sdgui: ignore Caps Lock for accelerators
7 months ago
Přemysl Eric Janouch
85a30d20c3
sdgui: accelerate the hamburger
...
The hamburger initially resisted being accelerated.
7 months ago
Přemysl Eric Janouch
54ef836eec
sdgui: make even rows a bit darker by default
7 months ago
Přemysl Eric Janouch
26a3c0c825
sdgui: bind ^W as in Readline
7 months ago
Přemysl Eric Janouch
c364ec3b81
sdgui: stop hardcoding cell side padding
7 months 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.
7 months ago
Přemysl Eric Janouch
c0a094e473
sdgui: load dictionaries in parallel, as sdtui did
...
Also, resolve some use-after-frees in GTK+.
7 months ago
Přemysl Eric Janouch
f147b54393
sdgui: load dictionaries from sdtui configuration
7 months ago
Přemysl Eric Janouch
10c05a2422
sdgui: clean-up
...
It doesn't seem like we'll want to remember the position.
7 months ago
Přemysl Eric Janouch
8fb2ce29cf
sdgui: clean up scrolling code
7 months ago
Přemysl Eric Janouch
ce92a23551
sdgui: scroll by three rows
...
Don't use an arbitrary amount of pixels, base it off the font.
7 months ago
Přemysl Eric Janouch
573554b9de
sdgtk -> sdgui, improve build, mention in README
...
It's finally not horrible.
7 months ago
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.
7 months ago
Přemysl Eric Janouch
3d53b2c131
Fix g_option_context_get_help() usage
7 months ago
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.
7 months ago
Přemysl Eric Janouch
e2790b42f3
sdtui: fix introductory message centring
7 months ago
Přemysl Eric Janouch
9b220b74cc
sdtui: minor rendering clean-up
7 months ago
Přemysl Eric Janouch
6f569e076e
sdtui: further improve the XML mangler
...
Comments should be more or less reliably handled by GMarkup now.
7 months ago
Přemysl Eric Janouch
e57751fe0e
sdtui: skip keywords in XDXF
8 months ago
Přemysl Eric Janouch
4d6cd247cb
sdtui: implement elementary XDXF display
...
We're lacking word wrapping, but it's more or less usable.
8 months ago
Přemysl Eric Janouch
16d6eaf012
sdtui: support <b>/<i>/<u> in Pango entries
8 months ago
Přemysl Eric Janouch
bc939712cb
sdtui: lay the groundwork for formatted entries
8 months ago
Přemysl Eric Janouch
6f7fbbb438
sdtui: keep the per-ViewEntry GPtrArrays
8 months ago
Přemysl Eric Janouch
39ff4069c0
tabfile: fix file format version downgrade
8 months ago
Přemysl Eric Janouch
fbfd8c7d02
tabfile: add support for writing Pango markup
...
Enabling this option will ensure the field would parse.
8 months ago
Přemysl Eric Janouch
20fcf2a0c7
tabfile: make it possible to set metadata
...
And some related clean-up.
8 months ago
Přemysl Eric Janouch
3881725904
tabfile: remember to check UTF-8, glibize
8 months ago
Přemysl Eric Janouch
6c364dc997
Add an implementation of tabfile
...
The original one is a horrible thing. Now we're self-reliant.
8 months ago