Gwenhael Le Moine
|
0f9dffe8ea
|
fix width, simplify css classes naming, lighter 𝓍
|
2024-11-10 10:37:23 +01:00 |
|
Gwenhael Le Moine
|
7cf50df624
|
-duplicate
|
2024-11-10 10:20:45 +01:00 |
|
Gwenhael Le Moine
|
90ef530c22
|
one css, size and placement adjustments
|
2024-11-10 10:13:25 +01:00 |
|
Gwenhael Le Moine
|
38fbcc216e
|
center lcd
|
2024-11-09 23:14:06 +01:00 |
|
Gwenhael Le Moine
|
f0068b3511
|
put annunciators and lcd in a GtkFixed container
|
2024-11-09 22:32:54 +01:00 |
|
Gwenhael Le Moine
|
0aaa0ab2ff
|
fix padding
|
2024-11-09 22:15:18 +01:00 |
|
Gwenhael Le Moine
|
fc435cfc03
|
use constants instead of ints stored in ui
|
2024-11-09 22:02:43 +01:00 |
|
Gwenhael Le Moine
|
49d6859ed8
|
Putting keyboard in its own GtkFixed, just because.
|
2024-11-09 15:19:55 +01:00 |
|
Gwenhael Le Moine
|
dfd97b548a
|
don't draw annunciators_container twice
|
2024-11-08 10:10:03 +01:00 |
|
Gwenhael Le Moine
|
cb8574f7d8
|
don't use ui->lcd_canvas to open popup menu
|
2024-11-08 10:09:31 +01:00 |
|
Gwenhael Le Moine
|
e6b9ff86db
|
make pretty-code
|
2024-11-08 10:01:05 +01:00 |
|
Gwenhael Le Moine
|
a00d3ecef7
|
remove lcd_event_box, move its events to ui->window
|
2024-11-08 09:52:22 +01:00 |
|
Gwenhael Le Moine
|
8d672658ef
|
remove unused colors (which have been moved to css)
|
2024-11-08 09:40:39 +01:00 |
|
Gwenhael Le Moine
|
2a586e0449
|
fix last deprecated code
Thanks https://stackoverflow.com/questions/70655268/drawing-to-gtk-gdk-drawing-area-with-cairo#70658500
|
2024-11-08 09:16:30 +01:00 |
|
Gwenhael Le Moine
|
1f118799db
|
replace deprecated gtk_button_pressed()/released()
|
2024-11-08 08:58:06 +01:00 |
|
Gwenhael Le Moine
|
ca9bc1eac1
|
style UI using a global (hardcoded) CSS style; fix _tiny_text_width(); better annunciators
|
2024-11-07 22:50:31 +01:00 |
|
Gwenhael Le Moine
|
2d0aa0a987
|
(WIP) globalize css
|
2024-11-07 16:30:08 +01:00 |
|
Gwenhael Le Moine
|
174d45dfa4
|
css
|
2024-11-07 15:33:35 +01:00 |
|
Gwenhael Le Moine
|
6c59edf49a
|
gtk3 gui is finally visually good enough to drop gtk2
|
2024-11-07 14:43:44 +01:00 |
|
Gwenhael Le Moine
|
d90bb7a25e
|
(WIP) styling the gtk+-3 way
|
2024-11-07 13:05:35 +01:00 |
|
Gwenhael Le Moine
|
8e5e5c4528
|
color2rgb() is dead code
|
2024-11-07 13:04:26 +01:00 |
|
Gwenhael Le Moine
|
f201e44082
|
gdk_beep and gdk_flush are deprecated
|
2024-11-06 13:42:20 +01:00 |
|
Gwenhael Le Moine
|
470a25819b
|
make it display LCD with gtk+-3.0
|
2024-11-06 13:18:21 +01:00 |
|
Gwenhael Le Moine
|
e57e595d99
|
make it compile with gtk+-3.0
|
2024-11-06 12:45:23 +01:00 |
|
Gwenhael Le Moine
|
4145b7af07
|
Eliminated GdkPixmap
|
2024-11-06 12:32:52 +01:00 |
|
Gwenhael Le Moine
|
3704e4c5cc
|
annunciators are GtkLabel()s
|
2024-11-06 11:10:44 +01:00 |
|
Gwenhael Le Moine
|
a524adfe73
|
looking at lcd
|
2024-11-06 08:45:55 +01:00 |
|
Gwenhael Le Moine
|
b86c7318a8
|
use GtkStyle and use opt.font
|
2024-11-06 04:47:22 +01:00 |
|
Gwenhael Le Moine
|
eecd20d5dd
|
fix labels
|
2024-11-05 19:01:39 +01:00 |
|
Gwenhael Le Moine
|
bab29bf8b5
|
remove more dead code
|
2024-11-05 19:01:19 +01:00 |
|
Gwenhael Le Moine
|
505263002c
|
todo
|
2024-11-05 16:39:50 +01:00 |
|
Gwenhael Le Moine
|
b8614acbae
|
drop all custom fonts code and assets
|
2024-11-05 16:38:27 +01:00 |
|
Gwenhael Le Moine
|
a6fefc2cb5
|
faceplate rendered only with pango
|
2024-11-05 16:34:52 +01:00 |
|
Gwenhael Le Moine
|
2cb0d3e072
|
buttons' labels are rendered using pango instead of drawings
|
2024-11-05 14:33:03 +01:00 |
|
Gwenhael Le Moine
|
567771cbcc
|
ignore s3c2410.h in make pretty-code
|
2024-11-05 13:48:44 +01:00 |
|
Gwenhael Le Moine
|
5246fcb0fd
|
move actual LCD rendering into ui.c
|
2024-11-05 13:29:03 +01:00 |
|
Gwenhael Le Moine
|
3609e8df9a
|
slowly moving things out of ui->
|
2024-11-05 13:00:16 +01:00 |
|
Gwenhael Le Moine
|
f14aa9bf14
|
typo
|
2024-11-05 12:35:38 +01:00 |
|
Gwenhael Le Moine
|
425367695b
|
code style + FIXME notes
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
2024-11-05 09:50:32 +01:00 |
|
Gwenhael Le Moine
|
b91ab691e9
|
name + drop ui->bg_pixbuf
|
2024-11-03 11:53:54 +01:00 |
|
Gwenhael Le Moine
|
a49267241d
|
naming
|
2024-11-03 11:04:53 +01:00 |
|
Gwenhael Le Moine
|
4c733116aa
|
rename x49gp_ui.h to ui.h for consistency
|
2024-11-03 10:59:41 +01:00 |
|
Gwenhael Le Moine
|
8f5895cbec
|
remove noise comments; prefix ui_
|
2024-11-03 10:37:15 +01:00 |
|
Gwenhael Le Moine
|
cadc26714e
|
prefix ui_
|
2024-11-03 09:06:49 +01:00 |
|
Gwenhael Le Moine
|
c2d142281c
|
move fonts' functions into their own files
|
2024-11-03 09:01:21 +01:00 |
|
Gwenhael Le Moine
|
e28b228c09
|
write letter outside of button like x48ng/saturnng
|
2024-11-02 23:27:28 +01:00 |
|
Gwenhael Le Moine
|
9cb44cceb8
|
fonts are implicitly tiny_font or opt.font accordingly
|
2024-11-02 22:56:16 +01:00 |
|
Gwenhael Le Moine
|
f4626d7400
|
consistently name bitmap_font tiny_font (it IS tiny)
|
2024-11-02 22:45:23 +01:00 |
|
Gwenhael Le Moine
|
4bc67e0511
|
more making sense of ui.c
|
2024-11-02 22:29:39 +01:00 |
|
Gwenhael Le Moine
|
89493cb54e
|
ui->nr_buttons is already known as NB_KEYS
|
2024-11-02 21:51:17 +01:00 |
|
Gwenhael Le Moine
|
3c9742bb95
|
dead code
|
2024-11-02 19:47:34 +01:00 |
|
Gwenhael Le Moine
|
f318c5fa65
|
mostly naming things in ui.c to try and make sense of it
|
2024-11-02 19:45:32 +01:00 |
|
Gwenhael Le Moine
|
b5155be28c
|
make pretty-code
|
2024-11-02 18:14:38 +01:00 |
|
Gwenhael Le Moine
|
15ed5d18dc
|
simplify text function by only managing one text block
|
2024-11-02 18:14:13 +01:00 |
|
Gwenhael Le Moine
|
649c806086
|
further keyboard redefining + making sense of text functions
|
2024-11-02 18:04:45 +01:00 |
|
Gwenhael Le Moine
|
8681cf69f7
|
remove header; rethink keyboard definitions and faceplate sizing
|
2024-11-02 17:13:01 +01:00 |
|
Gwenhael Le Moine
|
55aee2d295
|
draw lcd background color
|
2024-11-02 13:58:28 +01:00 |
|
Gwenhael Le Moine
|
c729b553ff
|
add --scale option
|
2024-10-31 20:04:23 +01:00 |
|
Gwenhael Le Moine
|
01408a338f
|
draw faceplate instead of loading png
|
2024-10-31 16:45:43 +01:00 |
|
Gwenhael Le Moine
|
c3e54608fe
|
eliminate buttons' shapes. simplify
|
2024-10-31 16:02:03 +01:00 |
|
Gwenhael Le Moine
|
f04a835918
|
add symbols for arrow keys
|
2024-10-31 15:52:40 +01:00 |
|
Gwenhael Le Moine
|
8901b1ea87
|
keep only 50g keys definitions
|
2024-10-31 14:58:21 +01:00 |
|
Gwenhael Le Moine
|
0d884c930e
|
(WIP) cairo'fied annunciators
|
2024-10-31 13:13:09 +01:00 |
|
Gwenhael Le Moine
|
6148325b13
|
rename imagefile
|
2024-10-31 09:30:01 +01:00 |
|
Gwenhael Le Moine
|
b1e5efeb74
|
add bg_color to keys
|
2024-10-30 16:48:31 +01:00 |
|
Gwenhael Le Moine
|
08488a1363
|
bit less harddcode
|
2024-10-30 15:50:23 +01:00 |
|
Gwenhael Le Moine
|
9c6da9257a
|
fiddling to try to understand ui.c
|
2024-10-30 15:41:37 +01:00 |
|
Gwenhael Le Moine
|
8a47fd4ff8
|
tweaks
|
2024-10-30 14:44:17 +01:00 |
|
Gwenhael Le Moine
|
97a3df3e18
|
make font a parametrable option
|
2024-10-30 14:37:38 +01:00 |
|
Gwenhael Le Moine
|
2786f95166
|
separate further our code from qemu-git's
|
2024-10-30 14:15:25 +01:00 |
|
Gwenhael Le Moine
|
c9191b6c00
|
draw pixel using cairo_rectangle
|
2024-10-29 18:13:12 +01:00 |
|
Gwenhael Le Moine
|
b179f88451
|
pretty code
|
2024-10-29 18:12:33 +01:00 |
|
Gwenhael Le Moine
|
3e37407a61
|
draw pixels using cairo
|
2024-10-29 16:49:36 +01:00 |
|
Gwenhael Le Moine
|
e064dc862f
|
experiment
|
2024-10-29 16:33:42 +01:00 |
|
Gwenhael Le Moine
|
81562895a9
|
move gtk headers out of flash.c
|
2024-10-29 16:32:53 +01:00 |
|
Gwenhael Le Moine
|
fffd39029c
|
rename and rearrange some ui code
|
2024-10-29 15:27:54 +01:00 |
|
Gwenhael Le Moine
|
3e3a7a5caa
|
missing include + style
|
2024-10-29 15:26:59 +01:00 |
|
Gwenhael Le Moine
|
0041e7546c
|
explicit cast
|
2024-10-29 15:26:44 +01:00 |
|
Gwenhael Le Moine
|
58287d660a
|
typo
|
2024-10-29 14:38:54 +01:00 |
|
Gwenhael Le Moine
|
e65d1353a4
|
rewrite gdk_draw_pixbuf as their cairo counterparts [ https://docs.gtk.org/gtk3/migrating-2to3.html#drawing-pixbufs ]
|
2024-10-29 13:50:44 +01:00 |
|
Gwenhael Le Moine
|
dc28273e77
|
code style
|
2024-10-29 13:50:37 +01:00 |
|
Gwenhael Le Moine
|
1170886f84
|
make pretty-code
|
2024-10-29 13:13:29 +01:00 |
|
Gwenhael Le Moine
|
47cdf19137
|
colors shown in comments
|
2024-10-29 13:13:06 +01:00 |
|
Gwenhael Le Moine
|
57e4777e40
|
LCD_PIXEL_SCALE + refactor x49gp_lcd_update
|
2024-10-29 13:12:34 +01:00 |
|
Gwenhael Le Moine
|
8bbfba569d
|
re-enable Alt for α
|
2024-10-24 15:45:09 +02:00 |
|
Gwenhael Le Moine
|
d8f623938f
|
disable making buttons look clicked when using keyboard. Not syre how to re-implement it without using the private GtkButton->in_button field
|
2024-10-24 15:41:27 +02:00 |
|
Gwenhael Le Moine
|
e1f34098c4
|
prettify code
|
2024-10-24 15:41:14 +02:00 |
|
Gwenhael Le Moine
|
d300afe3c7
|
[gtk] use accessor functions to get values
as part of modernizing gtk code before upgrading gtk
|
2024-10-24 15:39:41 +02:00 |
|
Gwenhael Le Moine
|
c09f925e32
|
prettify code
|
2024-10-24 15:35:28 +02:00 |
|
Gwenhael Le Moine
|
c151ff79c8
|
getting into ui.c
|
2024-10-23 16:49:17 +02:00 |
|
Gwenhael Le Moine
|
cb7c9f6e37
|
refactoring of Makefile + fixes
|
2024-10-23 16:17:52 +02:00 |
|
Gwenhael Le Moine
|
285051ed86
|
include
|
2024-10-23 15:07:48 +02:00 |
|
Gwenhael Le Moine
|
32c4902b81
|
clean unused includes
|
2024-10-23 14:53:34 +02:00 |
|
Gwenhael Le Moine
|
347d61ced9
|
missing includes
|
2024-10-23 14:26:32 +02:00 |
|
Gwenhael Le Moine
|
f30edab58c
|
new is a reserved word
|
2024-10-23 14:26:15 +02:00 |
|
Gwenhael Le Moine
|
b5f6fbe716
|
select faceplate and name thru args instead of config file
Added --50g --50g-newrpl --49gp --49gp-newrpl and --name= args
Remove [gui] section from config file
|
2024-10-23 14:24:46 +02:00 |
|
Gwenhael Le Moine
|
69ce49c003
|
use EXIT_{SUCCESS,FAILURE}
|
2024-10-23 12:43:05 +02:00 |
|
Gwenhael Le Moine
|
b5f7f5dfde
|
formatting
|
2024-10-23 12:41:43 +02:00 |
|
Gwenhael Le Moine
|
6fe6c501b0
|
use getopt_long to parse options, change semantic of -d and -F slightly
|
2024-10-23 11:28:20 +02:00 |
|
Gwenhael Le Moine
|
a22ae17352
|
use stdbool.h
|
2024-10-23 10:32:39 +02:00 |
|