]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/FileDialog.h
* src/frontends/qt4/GuiBibtex.{cpp,h}:
[lyx.git] / src / frontends / FileDialog.h
index bd97a66dc4419fbd3ab562ed2d09898515f55494..a4e69da2f286cdf31ff1429bc459f317a9d897dd 100644 (file)
@@ -16,7 +16,6 @@
 #include "lfuns.h"
 #include "support/docstring.h"
 
-#include <utility>
 #include <string>
 
 
@@ -53,16 +52,15 @@ public:
         *
         * Up to two optional extra buttons are allowed for specifying
         * additional directories in the navigation (an empty
-        * directory is interpreted as getcwd())
+        * directory is interpreted as FileName::getcwd())
         */
-       FileDialog(docstring const & title,
-                  kb_action a = LFUN_SELECT_FILE_SYNC,
-                  Button b1 = Button(docstring(), docstring()),
-                  Button b2 = Button(docstring(), docstring()));
-
+       FileDialog(docstring const & title, kb_action a = LFUN_SELECT_FILE_SYNC);
 
        ~FileDialog();
 
+       void setButton1(docstring const & label, docstring const & dir);
+       void setButton2(docstring const & label, docstring const & dir);
+
        /// Choose a file for opening, starting in directory \c path.
        Result const open(docstring const & path,
                          support::FileFilterList const & filters,