[mythtv] [PATCH] Bootstrap mysql.txt in mythcontext

Nigel Pearson nigel at ind.tansu.com.au
Fri Oct 22 02:22:01 UTC 2004


On Wednesday 22 September 2004 08:48 pm, Nigel Pearson submitted:
> GUI bootstrap for frontend
> (and anything else that creates a mythcontext with gui==true)
>
> If there is no mysql.txt file loaded, put up a simple
> (non-themed) dialog to get the backend settings,
> and then write them into $HOME/.mythtv/mysql.txt


On 23/09/2004, at 11:03 AM, Isaac Richards requested:
> This needs to be rewritten not to use Qt widgets.


	OK. Thanks to Jeremiah's experimenting, I have now
got this working (I needed to have a QSqlDatabase loaded).
There is also an editor for the existing file if there are
errors, and a default file is created even if gui==false.

	I think I have used the correct widgets, but note that
there doesn't seem to be a Myth version of some of them
(e.g. QLabel, QTextEdit, Q*Box), and I have not setup any
theming in the "fake" bootstrapping environment.

cvs diff -u libs/libmyth/mythcontext.cpp >../patch.general.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.general.3
Type: application/octet-stream
Size: 15018 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041022/85048a42/patch.general-0001.obj
-------------- next part --------------


--
Nigel Pearson, nigel at ind.tansu.com.au | "In this city I confess
Telstra BI&D, Sydney, Australia       |  god is mammon, more is less
Office: 8255 4222    Fax:  8255 3153  |  off like lemmings at the gun
Mobile: 0408 664435  Home: 9792 6998  |  I know better, still I run"



More information about the mythtv-dev mailing list