2 * \file FileDialog_private.C
3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
13 #include <qapplication.h>
14 #include <qfiledialog.h>
16 #include "QtLyXView.h"
19 #include "FileDialog_private.h"
21 LyXFileDialog::LyXFileDialog(LyXView * lv, kb_action a, string const & p, string const & m, string const & t)
22 : QFileDialog(p.c_str(), m.c_str(), qApp->mainWidget(), t.c_str(), a == LFUN_SELECT_FILE_SYNC),
25 setCaption(t.c_str());
29 void LyXFileDialog::done(int what)
31 lyxerr[Debug::GUI] << "Done FileDialog, value " << what << std::endl;
33 if (action_ == LFUN_SELECT_FILE_SYNC) {
36 } else if (what == QDialog::Accepted) {
37 lv_->getLyXFunc()->dispatch(action_, selectedFile().data());