mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
cfdc19c427
Fixed datafilespage model implementation in launcher Filtered addons in table view by selected game file
53 lines
981 B
C++
53 lines
981 B
C++
#ifndef FILEDIALOG_HPP
|
|
#define FILEDIALOG_HPP
|
|
|
|
#include <QDialog>
|
|
#include <QModelIndex>
|
|
|
|
#include "components/contentselector/view/contentselector.hpp"
|
|
#include "ui_datafilespage.h"
|
|
|
|
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 ContentSelectorView::ContentSelector
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FileDialog(QWidget *parent = 0);
|
|
|
|
void openFile();
|
|
void newFile();
|
|
|
|
QString fileName();
|
|
|
|
signals:
|
|
void openFiles();
|
|
void createNewFile();
|
|
|
|
public slots:
|
|
|
|
private slots:
|
|
//void updateViews();
|
|
void updateOpenButton(const QStringList &items);
|
|
void updateCreateButton(const QString &name);
|
|
};
|
|
}
|
|
#endif // FILEDIALOG_HPP
|