2014-02-12 07:42:07 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef _MODELFRAMESWIDGET_HPP_
|
|
|
|
#define _MODELFRAMESWIDGET_HPP_
|
|
|
|
#include <QDockWidget>
|
|
|
|
#include <QTreeView>
|
|
|
|
#include "DFFFramesTreeModel.hpp"
|
2014-06-06 18:04:00 +02:00
|
|
|
#include <engine/RWTypes.hpp>
|
2014-06-10 21:26:04 +02:00
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QLabel>
|
|
|
|
|
|
|
|
class ModelFrame;
|
2014-02-12 07:42:07 +01:00
|
|
|
|
|
|
|
class ModelFramesWidget : public QDockWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2014-06-10 17:47:44 +02:00
|
|
|
Model* gmodel;
|
2014-02-12 07:42:07 +01:00
|
|
|
DFFFramesTreeModel* framemodel;
|
|
|
|
QTreeView* tree;
|
2014-06-10 21:26:04 +02:00
|
|
|
QVBoxLayout* _layout;
|
|
|
|
QLabel* _frameLabel;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
2014-06-19 17:31:01 +02:00
|
|
|
void updateInfoBox(Model* model, ModelFrame* f);
|
2014-06-10 21:26:04 +02:00
|
|
|
|
|
|
|
void selectedModelChanged(const QModelIndex&,const QModelIndex&);
|
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(Model *model);
|
2014-02-12 07:42:07 +01:00
|
|
|
};
|
|
|
|
|
2014-06-06 13:18:32 +02:00
|
|
|
#endif
|