2013-03-07 02:00:59 +00:00
|
|
|
#ifndef FILEDIALOG_HPP
|
|
|
|
#define FILEDIALOG_HPP
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QModelIndex>
|
2013-09-29 17:19:07 +00:00
|
|
|
#include "../../../../components/contentselector/view/contentselector.hpp"
|
2013-03-07 02:00:59 +00:00
|
|
|
|
|
|
|
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-09-29 17:19:07 +00:00
|
|
|
|
|
|
|
|
2013-09-22 04:06:29 +00:00
|
|
|
namespace ContentSelectorView
|
2013-08-18 22:11:23 +00:00
|
|
|
{
|
|
|
|
class LineEdit;
|
|
|
|
}
|
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
namespace CSVDoc
|
2013-03-07 02:00:59 +00:00
|
|
|
{
|
2013-09-29 17:19:07 +00:00
|
|
|
class FileDialog : public QDialog
|
2013-08-18 20:11:29 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2013-09-23 04:52:53 +00:00
|
|
|
|
2013-09-29 17:19:07 +00:00
|
|
|
unsigned char mOpenFileFlags;
|
|
|
|
unsigned char mNewFileFlags;
|
2013-09-23 04:52:53 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
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-09-29 17:19:07 +00:00
|
|
|
void addFiles (const QString &path);
|
|
|
|
|
|
|
|
QString filename();
|
|
|
|
QStringList selectedFilepaths();
|
2013-03-07 02:00:59 +00:00
|
|
|
|
2013-09-29 17:19:07 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
void showDialog();
|
2013-03-07 02:00:59 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
signals:
|
2013-09-29 17:19:07 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
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-09-29 17:19:07 +00:00
|
|
|
void slotRejected();
|
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
private slots:
|
2013-09-29 17:19:07 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
};
|
|
|
|
}
|
2013-03-07 02:00:59 +00:00
|
|
|
#endif // FILEDIALOG_HPP
|