mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
2878f51cd3
Moved more code to ContentSelector Added support for omwgame and omwaddon files
56 lines
1020 B
C++
56 lines
1020 B
C++
#ifndef FILEDIALOG_HPP
|
|
#define FILEDIALOG_HPP
|
|
|
|
#include <QDialog>
|
|
#include <QModelIndex>
|
|
|
|
#include "components/fileorderlist/contentselector.hpp"
|
|
#include "ui_datafilespage.h"
|
|
|
|
class QDialogButtonBox;
|
|
class QSortFilterProxyModel;
|
|
class QAbstractItemModel;
|
|
class QPushButton;
|
|
class QStringList;
|
|
class QString;
|
|
class QMenu;
|
|
|
|
class DataFilesModel;
|
|
class PluginsProxyModel;
|
|
|
|
class FileDialog : public FileOrderList::ContentSelector
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FileDialog(QWidget *parent = 0);
|
|
|
|
void openFile();
|
|
void newFile();
|
|
void accepted();
|
|
|
|
QString fileName();
|
|
|
|
signals:
|
|
void openFiles();
|
|
void createNewFile();
|
|
|
|
public slots:
|
|
void accept();
|
|
|
|
private slots:
|
|
//void updateViews();
|
|
void updateOpenButton(const QStringList &items);
|
|
void updateCreateButton(const QString &name);
|
|
|
|
void createButtonClicked();
|
|
|
|
private:
|
|
QLabel *mNameLabel;
|
|
//LineEdit *mNameLineEdit;
|
|
|
|
QPushButton *mCreateButton;
|
|
QDialogButtonBox *mButtonBox;
|
|
};
|
|
|
|
#endif // FILEDIALOG_HPP
|