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

Nigel Pearson nigel at ind.tansu.com.au
Mon Oct 11 07:26:16 UTC 2004


On Wednesday 22 September 2004 08:48 pm, Nigel Pearson proposed:
> 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.



	Isaac, I have have not been able to achieve this.
A MythDialogBox needs a parent MythMainWindow.
A MythMainWindow seems to need a context.
Creating a fake context is easy, but then when the MythMainWindow
tries to RegisterKey()s, it fails because there is no database.

	Short of making horrible hacks in MythMainWindow,
I really don't see how bootstrapping can use libmythui.


	Can anybody help me with this?

--
Nigel Pearson, nigel at ind.tansu.com.au | "Peacemaking is our profession"
Telstra BI&D, Sydney, Australia       | Motto of Burpelson Airforce Base
Office: 8255 4222    Fax:  8255 3153  | Commanded by Gen. Jack D. Ripper
Mobile: 0408 664435  Home: 9792 6998  |        Dr Strangelove



More information about the mythtv-dev mailing list