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
|
|
|
|
2008-02-07 00:05:18 +00:00
|
|
|
#include "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
|
2007-10-28 16:32:20 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
public:
|
2008-03-05 23:10:53 +00:00
|
|
|
LyXFileDialog(QString const & title,
|
|
|
|
QString const & path,
|
2007-04-25 16:39:21 +00:00
|
|
|
support::FileFilterList const & filters,
|
2006-03-05 17:24:44 +00:00
|
|
|
FileDialog::Button const & b1,
|
|
|
|
FileDialog::Button const & b2);
|
2007-10-28 16:32:20 +00:00
|
|
|
|
2006-06-30 14:37:33 +00:00
|
|
|
public Q_SLOTS:
|
2007-10-28 16:32:20 +00:00
|
|
|
void button1Clicked();
|
|
|
|
void button2Clicked();
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
private:
|
2008-03-05 23:10:53 +00:00
|
|
|
QString b1_dir_;
|
|
|
|
QString 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
|