2013-03-07 02:00:59 +00:00
|
|
|
#ifndef FILEDIALOG_HPP
|
|
|
|
#define FILEDIALOG_HPP
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
2013-08-17 03:23:21 +00:00
|
|
|
#include "components/fileorderlist/contentselector.hpp"
|
2013-03-07 02:00:59 +00:00
|
|
|
#include "ui_datafilespage.h"
|
|
|
|
|
|
|
|
class QDialogButtonBox;
|
|
|
|
class QSortFilterProxyModel;
|
|
|
|
class QAbstractItemModel;
|
|
|
|
class QPushButton;
|
|
|
|
class QStringList;
|
|
|
|
class QString;
|
|
|
|
class QMenu;
|
|
|
|
|
|
|
|
class DataFilesModel;
|
|
|
|
class PluginsProxyModel;
|
|
|
|
|
2013-08-18 14:48:13 +00:00
|
|
|
class FileDialog : public EsxSelector::ContentSelector
|
2013-03-07 02:00:59 +00:00
|
|
|
{
|
|
|
|
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:
|
2013-08-17 03:23:21 +00:00
|
|
|
//void updateViews();
|
2013-03-07 02:00:59 +00:00
|
|
|
void updateOpenButton(const QStringList &items);
|
|
|
|
void updateCreateButton(const QString &name);
|
|
|
|
|
|
|
|
void createButtonClicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel *mNameLabel;
|
2013-08-16 23:00:23 +00:00
|
|
|
//LineEdit *mNameLineEdit;
|
2013-03-07 02:00:59 +00:00
|
|
|
|
|
|
|
QPushButton *mCreateButton;
|
|
|
|
QDialogButtonBox *mButtonBox;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FILEDIALOG_HPP
|