mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
40 lines
767 B
C++
40 lines
767 B
C++
#ifndef _MODELFRAMESWIDGET_HPP_
|
|
#define _MODELFRAMESWIDGET_HPP_
|
|
#include <QDockWidget>
|
|
#include <QLabel>
|
|
#include <QTreeView>
|
|
#include <QVBoxLayout>
|
|
#include <rw/types.hpp>
|
|
#include "models/DFFFramesTreeModel.hpp"
|
|
|
|
class ModelFrame;
|
|
|
|
class ModelFramesWidget : public QWidget {
|
|
Q_OBJECT
|
|
|
|
ClumpPtr gmodel;
|
|
DFFFramesTreeModel* framemodel;
|
|
QTreeView* tree;
|
|
QVBoxLayout* _layout;
|
|
QLabel* _frameLabel;
|
|
|
|
private slots:
|
|
|
|
void updateInfoBox(ClumpPtr model, ModelFrame* f);
|
|
|
|
void selectedModelChanged(const QModelIndex&, const QModelIndex&);
|
|
|
|
public:
|
|
ModelFramesWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
|
|
|
|
public slots:
|
|
|
|
void setModel(ClumpPtr model);
|
|
|
|
signals:
|
|
|
|
void selectedFrameChanged(ModelFrame* frame);
|
|
};
|
|
|
|
#endif
|