mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
00c78a4aa1
Moved AdjusterWidget / FileWidget to ContentSelectorView
64 lines
1.0 KiB
C++
64 lines
1.0 KiB
C++
#ifndef FILEDIALOG_HPP
|
|
#define FILEDIALOG_HPP
|
|
|
|
#include <QDialog>
|
|
#include <QModelIndex>
|
|
#include "../../../../components/contentselector/view/contentselector.hpp"
|
|
|
|
class QDialogButtonBox;
|
|
class QSortFilterProxyModel;
|
|
class QAbstractItemModel;
|
|
class QPushButton;
|
|
class QStringList;
|
|
class QString;
|
|
class QMenu;
|
|
class QLabel;
|
|
|
|
class DataFilesModel;
|
|
class PluginsProxyModel;
|
|
|
|
|
|
|
|
namespace ContentSelectorView
|
|
{
|
|
class LineEdit;
|
|
}
|
|
|
|
namespace CSVDoc
|
|
{
|
|
class FileDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
unsigned char mOpenFileFlags;
|
|
unsigned char mNewFileFlags;
|
|
|
|
public:
|
|
explicit FileDialog(QWidget *parent = 0);
|
|
|
|
void openFile();
|
|
void newFile();
|
|
void addFiles (const QString &path);
|
|
|
|
QString filename();
|
|
QStringList selectedFilePaths();
|
|
|
|
private:
|
|
|
|
void showDialog();
|
|
|
|
signals:
|
|
|
|
void openFiles();
|
|
void createNewFile();
|
|
|
|
public slots:
|
|
|
|
void slotRejected();
|
|
|
|
private slots:
|
|
|
|
};
|
|
}
|
|
#endif // FILEDIALOG_HPP
|