2003-09-02 10:29:05 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file FileDialogPrivate.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Huang Ying
|
2004-11-26 15:32:37 +00:00
|
|
|
* \author John Spray
|
2003-09-02 10:29:05 +00:00
|
|
|
*
|
2003-09-02 17:02:32 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-09-02 10:29:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FILE_DIALOG_PRIVATE_H
|
|
|
|
#define FILE_DIALOG_PRIVATE_H
|
|
|
|
|
|
|
|
#include "frontends/FileDialog.h"
|
|
|
|
|
2004-09-26 16:48:30 +00:00
|
|
|
#include <gtkmm.h>
|
|
|
|
|
|
|
|
class FileDialog::Private : public sigc::trackable {
|
2003-09-02 10:29:05 +00:00
|
|
|
public:
|
2003-10-06 15:43:21 +00:00
|
|
|
Private(std::string const & title,
|
2003-09-02 10:29:05 +00:00
|
|
|
kb_action action,
|
|
|
|
FileDialog::Button b1, FileDialog::Button b2);
|
2003-10-06 15:43:21 +00:00
|
|
|
FileDialog::Result const open(std::string const & path,
|
2004-11-26 15:32:37 +00:00
|
|
|
lyx::support::FileFilterList const & filters,
|
|
|
|
std::string const & suggested);
|
2003-10-06 15:43:21 +00:00
|
|
|
FileDialog::Result const opendir(std::string const & path,
|
2004-11-26 15:32:37 +00:00
|
|
|
std::string const & suggested);
|
2003-10-06 15:43:21 +00:00
|
|
|
FileDialog::Result const save(std::string const & path,
|
2004-11-26 15:32:37 +00:00
|
|
|
lyx::support::FileFilterList const & filters,
|
|
|
|
std::string const & suggested);
|
|
|
|
|
|
|
|
FileDialog::Result const showChooser(std::string const & path,
|
|
|
|
lyx::support::FileFilterList const & filters,
|
|
|
|
std::string const & suggested);
|
2003-09-02 10:29:05 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
kb_action action_;
|
2004-11-29 21:21:57 +00:00
|
|
|
Gtk::FileChooserDialog fileChooser_;
|
2003-09-02 10:29:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|