mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 19:32:49 +01:00
34 lines
713 B
C++
34 lines
713 B
C++
#pragma once
|
|
#ifndef _ANIMATIONLISTWIDGET_HPP_
|
|
#define _ANIMATIONLISTWIDGET_HPP_
|
|
#include <QDockWidget>
|
|
#include <QLineEdit>
|
|
#include <QListView>
|
|
#include <QSortFilterProxyModel>
|
|
#include "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(Animation* anim);
|
|
|
|
public slots:
|
|
void selectedIndexChanged(const QModelIndex& current);
|
|
|
|
void setFilter(const QString& f);
|
|
};
|
|
|
|
#endif
|