1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 20:02:40 +01:00
openrw/rwviewer/widgets/AnimationListWidget.hpp
2018-09-16 00:52:41 +02:00

33 lines
709 B
C++

#ifndef _ANIMATIONLISTWIDGET_HPP_
#define _ANIMATIONLISTWIDGET_HPP_
#include <QDockWidget>
#include <QLineEdit>
#include <QListView>
#include <QSortFilterProxyModel>
#include "models/AnimationListModel.hpp"
class AnimationListWidget : public QDockWidget {
Q_OBJECT
QSortFilterProxyModel* filter;
AnimationListModel* model;
QListView* table;
QLineEdit* searchbox;
public:
AnimationListWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
void setAnimations(const AnimationList& anims);
signals:
void selectedAnimationChanged(AnimationPtr anim);
public slots:
void selectedIndexChanged(const QModelIndex& current);
void setFilter(const QString& f);
};
#endif