]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FileDialog.C
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / FileDialog.C
index 0cb76e10c0e14aa3eb2c88747e65100d3f089e70..e39a253105eef092430d9572c92431bb4b50e15b 100644 (file)
@@ -16,7 +16,7 @@
 #include "frontends/LyXView.h"
 #include "bufferview_funcs.h"
 #include "gettext.h"
-#include "commandtags.h"
+#include "lfuns.h"
 #include "debug.h"
 #include "support/lstrings.h"
 #include <utility>
@@ -26,10 +26,10 @@ using std::make_pair;
 using std::pair;
 using std::endl;
 
-FileDialog::FileDialog(LyXView *lv, string const &t, kb_action s, Button b1, Button b2)
-       : private_(0), lv_(lv), title_(t), success_(s)
+FileDialog::FileDialog(string const &t, kb_action s, Button b1, Button b2)
+       : private_(0), title_(t), success_(s)
 {
-       private_ = new FileDialog::Private(lv->getDialogs());
+       private_ = new FileDialog::Private();
 
        private_->SetButton(0, b1.first, b1.second);
        private_->SetButton(1, b2.first, b2.second);
@@ -50,7 +50,7 @@ FileDialog::Result const FileDialog::save(string const & path, string const & ma
 
 FileDialog::Result const FileDialog::opendir(string const & path, string const & suggested)
 {
-       lyxerr[Debug::GUI] << "filedialog open  with path \"" << path << "\", suggested \"" 
+       lyxerr[Debug::GUI] << "filedialog open  with path \"" << path << "\", suggested \""
                << suggested << '"' << endl;
 
        // no support for asynchronous selection yet