#pragma once #ifndef _MODELFRAMESWIDGET_HPP_ #define _MODELFRAMESWIDGET_HPP_ #include #include #include #include #include #include "models/DFFFramesTreeModel.hpp" class ModelFrame; class ModelFramesWidget : public QWidget { Q_OBJECT Clump* gmodel; DFFFramesTreeModel* framemodel; QTreeView* tree; QVBoxLayout* _layout; QLabel* _frameLabel; private slots: void updateInfoBox(Clump* model, ModelFrame* f); void selectedModelChanged(const QModelIndex&, const QModelIndex&); public: ModelFramesWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0); public slots: void setModel(Clump* model); signals: void selectedFrameChanged(ModelFrame* frame); }; #endif