1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00
openrw/rwviewer/ArchiveContentsWidget.hpp
2014-03-01 02:19:46 +00:00

34 lines
683 B
C++

#pragma once
#ifndef _ARCHIVECONTENTSWIDGET_HPP_
#define _ARCHIVECONTENTSWIDGET_HPP_
#include <QDockWidget>
#include <QListView>
#include <QLineEdit>
#include <QSortFilterProxyModel>
#include "IMGArchiveModel.hpp"
class ArchiveContentsWidget : public QDockWidget
{
Q_OBJECT
QSortFilterProxyModel* filter;
IMGArchiveModel* model;
QListView* table;
QLineEdit* searchbox;
public:
ArchiveContentsWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
void setArchive(const LoaderIMG& archive);
signals:
void selectedFileChanged(const QString& file);
public slots:
void selectedIndexChanged(const QModelIndex& current);
void setFilter(const QString& f);
};
#endif