Dom Lachowicz wrote:
> 
> 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.

Bummer.  I've already got it working.  I cloned the Language dialog
and loaded English, Japanese, and Unicode this afternoon.  I've been
working on adding all the major encodings which libiconv supports
and thinking about problems such as which order to list them under
different OSes, selecting the language and having code to guess the
encoding, and building in only the encodings the machine's iconv
can handle.  I'll look into extending the FileOpenSaveAs dialog but
I'm not sure I'll have time since I'm also planning a major overseas
trip...

Would it be acceptable to submit it the current way so that others
can bend it into shape?

I'll see what I can do though I'd hate to think my efforts might
be wasted.  Especially in the greatly overlooked area of
multilanguage support.

Andrew Dunbar.

> Quoting Andrew Dunbar <[EMAIL PROTECTED]>:
> 
> > 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
> >
> >

-- 
http://linguaphile.sourceforge.net

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to