1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 18:32:44 +01:00
openrw/rwviewer/widgets/ModelFramesWidget.hpp

41 lines
780 B
C++
Raw Normal View History

2014-02-12 07:42:07 +01:00
#pragma once
#ifndef _MODELFRAMESWIDGET_HPP_
#define _MODELFRAMESWIDGET_HPP_
#include <QDockWidget>
2016-09-09 22:13:21 +02:00
#include <QLabel>
2014-02-12 07:42:07 +01:00
#include <QTreeView>
2014-06-10 21:26:04 +02:00
#include <QVBoxLayout>
2016-09-09 22:13:21 +02:00
#include <rw/types.hpp>
#include "models/DFFFramesTreeModel.hpp"
2014-06-10 21:26:04 +02:00
class ModelFrame;
2014-02-12 07:42:07 +01:00
2016-09-09 22:13:21 +02:00
class ModelFramesWidget : public QWidget {
Q_OBJECT
2014-02-12 07:42:07 +01:00
ClumpPtr gmodel;
2016-09-09 22:13:21 +02:00
DFFFramesTreeModel* framemodel;
QTreeView* tree;
QVBoxLayout* _layout;
QLabel* _frameLabel;
2014-06-10 21:26:04 +02:00
private slots:
void updateInfoBox(ClumpPtr model, ModelFrame* f);
2016-09-09 22:13:21 +02:00
void selectedModelChanged(const QModelIndex&, const QModelIndex&);
2014-06-10 21:26:04 +02:00
2014-02-12 07:42:07 +01:00
public:
ModelFramesWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
2014-06-10 17:47:44 +02:00
public slots:
void setModel(ClumpPtr model);
signals:
2016-09-09 22:13:21 +02:00
void selectedFrameChanged(ModelFrame* frame);
2014-02-12 07:42:07 +01:00
};
2014-06-06 13:18:32 +02:00
#endif