Front end GUI for uqlx

Discussion and advice about emulating the QL on other machines.
IKH
ROM Dongle
Posts: 15
Joined: Tue Sep 08, 2020 7:22 am
Location: Germany

Front end GUI for uqlx

Post 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.


Derek_Stewart
Font of All Knowledge
Posts: 4617
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: Front end GUI for uqlx

Post 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.


Regards,

Derek
User avatar
dilwyn
Mr QL
Posts: 3042
Joined: Wed Dec 01, 2010 10:39 pm

Re: Front end GUI for uqlx

Post 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.


swensont
Forum Moderator
Posts: 312
Joined: Tue Dec 06, 2011 3:30 am
Location: SF Bay Area
Contact:

Re: Front end GUI for uqlx

Post 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


Derek_Stewart
Font of All Knowledge
Posts: 4617
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: Front end GUI for uqlx

Post 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.


Regards,

Derek
User avatar
dilwyn
Mr QL
Posts: 3042
Joined: Wed Dec 01, 2010 10:39 pm

Re: Front end GUI for uqlx

Post 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).


IKH
ROM Dongle
Posts: 15
Joined: Tue Sep 08, 2020 7:22 am
Location: Germany

Re: Front end GUI for uqlx

Post 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.


Derek_Stewart
Font of All Knowledge
Posts: 4617
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: Front end GUI for uqlx

Post 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.


Regards,

Derek
User avatar
dilwyn
Mr QL
Posts: 3042
Joined: Wed Dec 01, 2010 10:39 pm

Re: Front end GUI for uqlx

Post 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.


User avatar
desin
Brittle Membrane
Posts: 108
Joined: Mon May 10, 2021 10:33 am

Re: Front end GUI for uqlx

Post 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
Last edited by desin on Sat Jun 15, 2024 8:39 pm, edited 2 times in total.


Post Reply