Re: Modal Dialog with XAP_Frame?


Subject: Re: Modal Dialog with XAP_Frame?
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Tue May 29 2001 - 07:53:38 CDT


Hi Andrew,

Please don't implement this by popping up a dialog from inside of the
importer/exporter classes themselves. This is not the right thing to do. This
code won't get committed, which is unfortunate because I'd really like to see
this functionality in Abi.

Please extend the native platform open dialog to insert some sort of checkbox or
something that says "save encoded". If that checkbox is active after closing the
dialog (back in ap_EditMethods.cpp) pop up another dialog (after the open/save
dialog is closed) which then shows "UTF-8, UCS2, CP-1252, ...". If you want to
know how to extend the windows open/save dialog, look at the code in
src/af/xap/win/xap_Win32Dlg_FileOpenSaveAs.cpp (and probably some rc file too)
because we do this already to do picture previews in the dialog.

Keep up the good work,
Dom

Quoting Andrew Dunbar <hippietrail@yahoo.com>:

> I'm working on a dialog for the text importer and exporter that
> lets you choose the file encoding. It's very close to finished
> but to call Dialog::runModal I need a pointer to an XAP_Frame.
>
> I don't know much about Abi's internals and I can't see an
> obvious and elegant way to get the correct Frame pointer from
> inside an ie_Exp or ie_Imp. They are only passed a pd_Document
> pointer and this doesn't seem to be enough.
>
> Please help if you can see the right answer!
>
> Andrew Dunbar.
>
> --
> http://linguaphile.sourceforge.net
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>



This archive was generated by hypermail 2b25 : Fri Jun 01 2001 - 17:32:55 CDT