2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file FileDialog_private.h
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FILEDIALOG_PRIVATE_H
|
|
|
|
#define FILEDIALOG_PRIVATE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "frontends/FileDialog.h"
|
2006-05-07 10:20:43 +00:00
|
|
|
#include <QFileDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace support {
|
|
|
|
|
|
|
|
class FileFilterList;
|
|
|
|
|
|
|
|
} // namespace support
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
|
|
|
|
class QToolButton;
|
|
|
|
|
2006-05-07 10:20:43 +00:00
|
|
|
class LyXFileDialog : public QFileDialog
|
2006-03-05 17:24:44 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2006-05-07 10:20:43 +00:00
|
|
|
LyXFileDialog(std::string const & title,
|
|
|
|
std::string const & path,
|
2006-03-05 17:24:44 +00:00
|
|
|
lyx::support::FileFilterList const & filters,
|
|
|
|
FileDialog::Button const & b1,
|
|
|
|
FileDialog::Button const & b2);
|
|
|
|
public slots:
|
|
|
|
void buttonClicked();
|
|
|
|
private:
|
|
|
|
QToolButton * b1_;
|
|
|
|
std::string b1_dir_;
|
|
|
|
|
|
|
|
QToolButton * b2_;
|
|
|
|
std::string b2_dir_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FILEDIALOG_PRIVATE_H
|