#ifndef FILEDIALOG_H
#define FILEDIALOG_H
-#include "FuncCode.h"
-
#include <QString>
#include <utility>
*/
class FileDialog
{
+ /// noncopyable
+ FileDialog(FileDialog const &);
+ void operator=(FileDialog const &);
public:
/// label, directory path button
typedef std::pair<QString, QString> Button;
/**
* Constructs a file dialog with title \param title.
- * If \param a is \const LFUN_SELECT_FILE_SYNC then a value
- * will be returned immediately upon performing a open(),
- * otherwise a callback Dispatch() will be invoked with the filename as
- * argument, of action \param a.
*
* Up to two optional extra buttons are allowed for specifying
* additional directories in the navigation (an empty
* directory is interpreted as FileName::getcwd())
*/
- FileDialog(QString const & title, FuncCode a = LFUN_SELECT_FILE_SYNC);
+ FileDialog(QString const & title);
~FileDialog();
/// the dialog title
QString title_;
- /// success action to perform if not synchronous
- FuncCode success_;
};
} // namespace lyx