quake-tools/source/quam/project.h

35 lines
665 B
C
Raw Normal View History

#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"
#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:
explicit Project(Arc::Dir &&arc, QErrorMessage *errors, QMdiArea *parent);
virtual ~Project();
private slots:
void dirChanged(Arc::Dir *dir);
2019-10-08 20:43:35 -07:00
void viewDoubleClicked(QModelIndex const &index);
private:
Arc::Dir m_arc;
QErrorMessage *m_errors;
Arc::Model *m_model;
QSortFilterProxyModel *m_sorter;
};
// EOF