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