2013-03-07 03:00:59 +01:00
|
|
|
#ifndef FILEDIALOG_HPP
|
|
|
|
#define FILEDIALOG_HPP
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
2013-09-21 23:06:29 -05:00
|
|
|
#include "components/contentselector/view/contentselector.hpp"
|
2013-03-07 03:00:59 +01:00
|
|
|
#include "ui_datafilespage.h"
|
|
|
|
|
|
|
|
class QDialogButtonBox;
|
|
|
|
class QSortFilterProxyModel;
|
|
|
|
class QAbstractItemModel;
|
|
|
|
class QPushButton;
|
|
|
|
class QStringList;
|
|
|
|
class QString;
|
|
|
|
class QMenu;
|
2013-08-18 17:11:23 -05:00
|
|
|
class QLabel;
|
2013-03-07 03:00:59 +01:00
|
|
|
|
|
|
|
class DataFilesModel;
|
|
|
|
class PluginsProxyModel;
|
|
|
|
|
2013-09-21 23:06:29 -05:00
|
|
|
namespace ContentSelectorView
|
2013-08-18 17:11:23 -05:00
|
|
|
{
|
|
|
|
class LineEdit;
|
|
|
|
}
|
|
|
|
|
2013-08-18 15:11:29 -05:00
|
|
|
namespace CSVDoc
|
2013-03-07 03:00:59 +01:00
|
|
|
{
|
2013-09-21 23:06:29 -05:00
|
|
|
class FileDialog : public ContentSelectorView::ContentSelector
|
2013-08-18 15:11:29 -05:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit FileDialog(QWidget *parent = 0);
|
2013-03-07 03:00:59 +01:00
|
|
|
|
2013-08-18 15:11:29 -05:00
|
|
|
void openFile();
|
|
|
|
void newFile();
|
2013-03-07 03:00:59 +01:00
|
|
|
|
2013-08-18 15:11:29 -05:00
|
|
|
QString fileName();
|
2013-03-07 03:00:59 +01:00
|
|
|
|
2013-08-18 15:11:29 -05:00
|
|
|
signals:
|
|
|
|
void openFiles();
|
|
|
|
void createNewFile();
|
2013-03-07 03:00:59 +01:00
|
|
|
|
2013-08-18 15:11:29 -05:00
|
|
|
public slots:
|
2013-03-07 03:00:59 +01:00
|
|
|
|
2013-08-18 15:11:29 -05:00
|
|
|
private slots:
|
|
|
|
//void updateViews();
|
|
|
|
void updateOpenButton(const QStringList &items);
|
|
|
|
void updateCreateButton(const QString &name);
|
|
|
|
};
|
|
|
|
}
|
2013-03-07 03:00:59 +01:00
|
|
|
#endif // FILEDIALOG_HPP
|