]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/FileDialog.h
* Doxy: polish html output.
[lyx.git] / src / frontends / FileDialog.h
index ddf73a2b87bca7a9be14a082e6822200dee0a060..a4e69da2f286cdf31ff1429bc459f317a9d897dd 100644 (file)
 #include "lfuns.h"
 #include "support/docstring.h"
 
-#include <utility>
 #include <string>
 
 
 namespace lyx {
 
-namespace support { class FileFilterList; } 
+namespace support { class FileFilterList; }
 
 
 /**
@@ -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,