Page 1 of 3

Front end GUI for uqlx

Posted: Wed Jun 12, 2024 8:05 am
by IKH
Has anyone heard of or come across gqlx. It's a gui for uqlx written by J R Hudson. From the docs you can edit the uqlx.ini as required then run uqlx. Problem is it needs to compile against the GTK+ and VDK libraries and I'm no programmer. Any help or info would be welcome Oh and I do have the source files if anyone requires them.

Re: Front end GUI for uqlx

Posted: Thu Jun 13, 2024 3:53 pm
by Derek_Stewart
Hi,

I had this compiled in 1990s, on Redhat 9, but these days, I had problems finding a x64 version of X11 development libraries.

Bug UQLX is a little out dated, sQLux is a better option that uses SDL2 and the developer: Xora is still around and is a nice person.

Maybe a GUI for sQLux could be developed for sQLux, SQLay3, sQ68ux, using SDL2.

Re: Front end GUI for uqlx

Posted: Thu Jun 13, 2024 5:30 pm
by dilwyn
What advantages would the GUI give the emulator user? Bearing in mind I've never used uQLx and never looked at Jonathan's GUI.

Re: Front end GUI for uqlx

Posted: Fri Jun 14, 2024 5:32 am
by swensont
The GUI would help configure sQLux before it is executed. I have sQLux set up as a icon on the desktop. This fires off a shell script which executes sQLux. If I need to make changes to the config, I have to open a shell, edit the .ini file, and then I can double click on the icon.

SMSQmulator has the ability to set the mounted drives (qxl files) after it has been started, making it easier to configure.

I used to use Xdialog to let me pick one of a number of sQLux configs before sQLux is executed. I think last time I tried Xdialog I had issues with it and tried something like Zenity.

Tim

Re: Front end GUI for uqlx

Posted: Fri Jun 14, 2024 7:08 am
by Derek_Stewart
Hi

The configuration panel in QPC2 is a similar GUI front End to the QPC2 emulator that stores the setting in a file called QPC.INI.

This GUI idea is similar for UQLX, sQLux.

Maybe a simple BASH script would do.

Re: Front end GUI for uqlx

Posted: Fri Jun 14, 2024 8:29 am
by dilwyn
Thanks guys, that clarifies it.
Back in the mists of time, I downloaded most of what was on Jonathan's QDOS site and amazingly still have it. And if you use Internet Archive's Wayback Machine to search for http://www.zen35309.zen.co.uk/linux/index.html and www.daria.co.uk/qdos/ you can still download gqlx and other material (just in case anyone fancied updating it).

Re: Front end GUI for uqlx

Posted: Fri Jun 14, 2024 8:39 am
by IKH
Hi to everybody,
Thanks for your comments. It's just that I came across it in one of my searches on the Internet for anything 'QL' and wanted to know if anyone had tried it.
Ian.

Re: Front end GUI for uqlx

Posted: Fri Jun 14, 2024 10:41 am
by Derek_Stewart
dilwyn wrote: Fri Jun 14, 2024 8:29 am Thanks guys, that clarifies it.
Back in the mists of time, I downloaded most of what was on Jonathan's QDOS site and amazingly still have it. And if you use Internet Archive's Wayback Machine to search for http://www.zen35309.zen.co.uk/linux/index.html and www.daria.co.uk/qdos/ you can still download gqlx and other material (just in case anyone fancied updating it).
The web links do not work, I think Jonathan Hudson has moved to Github.

As XTC68 is located there and the Issue I raised about compiling with GCC v11 got a response from the man himself, clearly not sailing in the Middle East.

Re: Front end GUI for uqlx

Posted: Fri Jun 14, 2024 11:00 am
by dilwyn
Derek_Stewart wrote: Fri Jun 14, 2024 10:41 am
dilwyn wrote: Fri Jun 14, 2024 8:29 am Thanks guys, that clarifies it.
Back in the mists of time, I downloaded most of what was on Jonathan's QDOS site and amazingly still have it. And if you use Internet Archive's Wayback Machine to search for http://www.zen35309.zen.co.uk/linux/index.html and www.daria.co.uk/qdos/ you can still download gqlx and other material (just in case anyone fancied updating it).
The web links do not work, I think Jonathan Hudson has moved to Github.

As XTC68 is located there and the Issue I raised about compiling with GCC v11 got a response from the man himself, clearly not sailing in the Middle East.
That's right, trying to access them from recent years on Wayback Machine doesn't work, but does if you go back to the earlier years (just tried it and downloaded several of Jonathan' s packages to preserve them).

Obviously, whatever of his stuff is on github is most likely to be more recent than anything from Zen or Daria.

Re: Front end GUI for uqlx

Posted: Sat Jun 15, 2024 12:17 pm
by desin
Hello
here is some attempt for a bash sqlux GUI
dependencies : yad
resrictions :
FLP1/2 point to FLP. images
WIN1/2 point to .win containers
WIN7/8 point to native directories
the actual sqlux.ini is /sQLux/sqlux.ini

Code: Select all

#!/bin/bash
#!/bin/bash
# SQLUX GUI 

declare -a select

yad --title="uQLX config" \
	--width=1000 \
	--image-on-top --image=~/sQLux/sQLuxLogo.png\
	--form  --separator='\n'\
	--file-filter 'ROM | *.rom *.ROM'\
	--file-filter 'IMG | *.img *.IMG'\
	--file-filter 'WIN | *.win *.WIN'\
	--file-filter 'MDV | *.mdv *.MDV'\
	--field='ROMDIR:DIR' ~/sQLux/roms/ \
	--field='SYSROM:FL' ~/sQLux/roms/MIN198.rom \
	--field='ROMIM:FL' ~/sQLux/roms/TK236.rom \
	--field='RAMTOP:NUM' '4096!128..16000!256'\
	--field='FLP1:FL' ~/QXL/FLP/QPAC1440.img\
	--field='FLP2:FL' ~ \
	--field='WIN1:FL' ~/QXL/WIN/QXLO.win\
	--field='WIN2:FL' ~ \
	--field='WIN7:DIR' ~ \
	--field='WIN8:DIR' ~/QL\
	--field='BOOT DEVICE:CB' WIN1\!WIN2\!FLP1\!FLP2\!MDV1\
	--field='RESOLUTION:CBE' 512x256\!512x512\!^640x400\!800x600\!1024x800\
	--field='WIN SIZE:CBE' 1x\!^2x\!3x\!max\!full\
	--field='KEYBOARD:CBE' GB\!^US\!DE\!ES\
	--field='FILTER:CB' 1\!0\
	--field='FIXASPECT:CB' 1\!0\
	--field='PATH TO SQLUX:DIR' ~/sQLux/build/ \ > /tmp/test.txt

readarray -t select < /tmp/test.txt 
romdir=${select[0]}
basefilename=${select[1]}
ext="${basefilename##*.}"
realname=$(basename "${basefilename%.*}")
sysrom=$realname.$ext
basefilename=${select[2]}
ext="${basefilename##*.}"
realname=$(basename "${basefilename%.*}")
romim=$realname.$ext
DIR=${select[16]}

cat << EOF > ~/sQLux/sqlux.ini 
ROMDIR = $romdir 
SYSROM =$sysrom
ROMIM = $romim
RAMTOP = ${select[3]}
DEVICE = FLP1,${select[4]},qdos-fs
DEVICE = FLP2,${select[5]},qdos-fs
DEVICE = WIN1,${select[6]},qdos-fs
DEVICE = WIN2,${select[7]},qdos-fs
DEVICE = WIN7,${select[8]}
DEVICE = WIN8,${select[9]}
BOOT_DEVICE = ${select[10]}
RESOLUTION = ${select[11]}
WIN_SIZE = ${select[12]}
KBD = ${select[13]}
FILTER = ${select[14]}
FIXASPECT = ${select[15]}
EOF
$DIR/sqlux -f ~/sQLux/sqlux.ini

hope it helps

Markus