2013-03-07 02:00:59 +00:00
|
|
|
#ifndef FILEDIALOG_HPP
|
|
|
|
#define FILEDIALOG_HPP
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
#include "components/esxselector/view/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;
|
2013-08-18 22:11:23 +00:00
|
|
|
class QLabel;
|
2013-03-07 02:00:59 +00:00
|
|
|
|
|
|
|
class DataFilesModel;
|
|
|
|
class PluginsProxyModel;
|
|
|
|
|
2013-08-18 22:11:23 +00:00
|
|
|
namespace EsxView
|
|
|
|
{
|
|
|
|
class LineEdit;
|
|
|
|
}
|
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
namespace CSVDoc
|
2013-03-07 02:00:59 +00:00
|
|
|
{
|
2013-08-18 20:11:29 +00:00
|
|
|
class FileDialog : public EsxView::ContentSelector
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit FileDialog(QWidget *parent = 0);
|
2013-03-07 02:00:59 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
void openFile();
|
|
|
|
void newFile();
|
2013-03-07 02:00:59 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
QString fileName();
|
2013-03-07 02:00:59 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
signals:
|
|
|
|
void openFiles();
|
|
|
|
void createNewFile();
|
2013-03-07 02:00:59 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
public slots:
|
2013-03-07 02:00:59 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
private slots:
|
|
|
|
//void updateViews();
|
|
|
|
void updateOpenButton(const QStringList &items);
|
|
|
|
void updateCreateButton(const QString &name);
|
|
|
|
};
|
|
|
|
}
|
2013-03-07 02:00:59 +00:00
|
|
|
#endif // FILEDIALOG_HPP
|