2019-09-29 22:30:32 -07:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-03 12:17:16 -07:00
|
|
|
#include "common.h"
|
2019-10-04 10:37:34 -07:00
|
|
|
|
|
|
|
#include "quam/archive.h"
|
2019-09-29 22:30:32 -07:00
|
|
|
#include "quam/ui_project.h"
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QMdiSubWindow>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QAbstractItemModel;
|
|
|
|
class QErrorMessage;
|
|
|
|
class QSortFilterProxyModel;
|
|
|
|
|
|
|
|
class Project : public QMdiSubWindow, private Ui::Project {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-10-05 16:58:19 -07:00
|
|
|
explicit Project(Arc::Dir &&arc, QErrorMessage *errors, QMdiArea *parent);
|
2019-09-29 22:30:32 -07:00
|
|
|
virtual ~Project();
|
|
|
|
|
2019-10-05 16:58:19 -07:00
|
|
|
private slots:
|
|
|
|
void dirChanged(Arc::Dir *dir);
|
2019-10-08 20:43:35 -07:00
|
|
|
void viewDoubleClicked(QModelIndex const &index);
|
2019-10-05 16:58:19 -07:00
|
|
|
|
2019-09-29 22:30:32 -07:00
|
|
|
private:
|
2019-10-05 16:58:19 -07:00
|
|
|
Arc::Dir m_arc;
|
2019-09-29 22:30:32 -07:00
|
|
|
QErrorMessage *m_errors;
|
2019-10-05 16:58:19 -07:00
|
|
|
Arc::Model *m_model;
|
2019-09-29 22:30:32 -07:00
|
|
|
QSortFilterProxyModel *m_sorter;
|
|
|
|
};
|
|
|
|
|
|
|
|
// EOF
|