On Feb 24, 2004, at 12:00 PM, Jean-Marc Lasgouttes wrote:


Ronald> In LyX/Mac, the External insets use the familiar native system
Ronald> Finder. Would it be possible to use the system file browser
Ronald> for the File->Open dialog as well?  [...]

The only difference that I can see is that the External inset file
dialog uses only one special button (Documents), while others probably
define several. My conjecture is that Qt/Mac uses the normal Mac
dialog when there is one extra button (but where does it put it??) and
switches to the other one when it has to add more of them.

If my guess is right, then the following patch should make a
difference.

Alas, it does not make a difference. After applying the patch, LyX/Mac still uses the native (Finder) dialog only for the External insets, and uses the Qt dialog for File -> Open and BibTeX.


The Qt/Mac documentation for qfiledialog suggests that the functions

QString QFileDialog::getOpenFileName ( const QString & startWith = QString::null, const QString & filter = QString::null, QWidget * parent = 0, const char * name = 0, const QString & caption = QString::null, QString * selectedFilter = 0, bool resolveSymlinks = TRUE ) [static]

StringList QFileDialog::getOpenFileNames ( const QString & filter = QString::null, const QString & dir = QString::null, QWidget * parent = 0, const char * name = 0, const QString & caption = QString::null, QString * selectedFilter = 0, bool resolveSymlinks = TRUE ) [static]

under Mac OS X, "will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style." I'm not sure how to use this information to get LyX to use only the native file dialog (Finder) instead of the Qt dialog.
--


Ronald



Reply via email to