2014-02-10 16:34:09 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef _ARCHIVECONTENTSWIDGET_HPP_
|
|
|
|
#define _ARCHIVECONTENTSWIDGET_HPP_
|
|
|
|
#include <QDockWidget>
|
2014-02-10 17:21:30 +01:00
|
|
|
#include <QListView>
|
|
|
|
#include "IMGArchiveModel.hpp"
|
2014-02-10 16:34:09 +01:00
|
|
|
|
|
|
|
class ArchiveContentsWidget : public QDockWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2014-02-10 17:21:30 +01:00
|
|
|
IMGArchiveModel* model;
|
|
|
|
QListView* table;
|
2014-02-10 16:34:09 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
ArchiveContentsWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
|
|
|
|
|
|
|
|
void setArchive(const LoaderIMG& archive);
|
2014-02-10 18:22:07 +01:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void selectedFileChanged(const std::string& file);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void selectedIndexChanged(const QModelIndex& current);
|
2014-02-10 16:34:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|