2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-04-26 03:53:02 +00:00
|
|
|
* \file LyXFileDialog.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-04-26 03:53:02 +00:00
|
|
|
#ifndef LYXFILEDIALOG_H
|
|
|
|
#define LYXFILEDIALOG_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
#include "frontends/FileDialog.h"
|
2006-08-17 08:45:48 +00:00
|
|
|
|
2006-05-07 10:20:43 +00:00
|
|
|
#include <QFileDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
class QToolButton;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace support { class FileFilterList; }
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2006-05-07 10:20:43 +00:00
|
|
|
class LyXFileDialog : public QFileDialog
|
2006-03-05 17:24:44 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2007-04-25 16:39:21 +00:00
|
|
|
LyXFileDialog(docstring const & title,
|
|
|
|
docstring const & path,
|
|
|
|
support::FileFilterList const & filters,
|
2006-03-05 17:24:44 +00:00
|
|
|
FileDialog::Button const & b1,
|
|
|
|
FileDialog::Button const & b2);
|
2006-06-30 14:37:33 +00:00
|
|
|
public Q_SLOTS:
|
2006-03-05 17:24:44 +00:00
|
|
|
void buttonClicked();
|
|
|
|
private:
|
|
|
|
QToolButton * b1_;
|
2007-04-25 16:39:21 +00:00
|
|
|
docstring b1_dir_;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
QToolButton * b2_;
|
2007-04-25 16:39:21 +00:00
|
|
|
docstring b2_dir_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
|
2007-04-26 03:53:02 +00:00
|
|
|
#endif // LYXFILEDIALOG_H
|