I'm working a cleaning up some other small problems with WSPR-X and one
of them is getting the ComboBox widgets with serial port entries (for
CAT, PTT) to have entries that are meaningful for the given target
platform (e.g. MACX, UNIX or WIN32).
On WIN32, meaningful entries would be COM1... while on UNIX they would
be /dev/ttyS0... /dev/ttyUSB0... and something similar on OS X. One
could put ALL of them into the ComboBoxen with qtcreator, but I suspect
this could be a source of confusion for end users without experience on
multiple platforms.
So far, the best way I have identified to approach this is to have
a single entry ("None") in the XML file ouput by qtcreator. Then at
runtime during the UI setup phase, make platform specific calls to
ui.ComboBox->addItem( ) to add meaningful entries. These can be made
platform specific using standard cpp constructs like #ifdef.
Another approach would be to have platform specific devsetup.ui XML
files, but my first impression is that is asking for trouble when
it comes to keeping them synchronized as the interface evolves.
I've worked a fair bit with GUI toolkits, but not very much with QT.
I was curious if anyone knew of a better approach than dealing with
the issue at runtime...
73, John
--
John C. Peterson, KD6EKQ
mailto:[email protected]
San Diego, CA U.S.A
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel