attach vtk context to gcompose
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define CONTEXT_PANEL_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QItemSelection>
|
||||
|
||||
class QTreeView;
|
||||
class QVBoxLayout;
|
||||
@@ -9,9 +10,16 @@ class QLabel;
|
||||
class ContextModel;
|
||||
|
||||
namespace uLib {
|
||||
class Object;
|
||||
class ObjectsContext;
|
||||
namespace Vtk {
|
||||
class QViewport;
|
||||
class vtkObjectsContext;
|
||||
}
|
||||
}
|
||||
|
||||
class QSplitter;
|
||||
|
||||
class ContextPanel : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -20,12 +28,22 @@ public:
|
||||
|
||||
void setContext(uLib::ObjectsContext* context);
|
||||
|
||||
Q_SIGNALS:
|
||||
void objectSelected(uLib::Object* obj);
|
||||
|
||||
private Q_SLOTS:
|
||||
void onSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
|
||||
|
||||
private:
|
||||
QVBoxLayout* m_layout;
|
||||
QWidget* m_titleBar;
|
||||
QLabel* m_titleLabel;
|
||||
QTreeView* m_treeView;
|
||||
ContextModel* m_model;
|
||||
QSplitter* m_splitter;
|
||||
uLib::Vtk::QViewport* m_vtkView;
|
||||
uLib::Vtk::vtkObjectsContext* m_vtkContext;
|
||||
uLib::ObjectsContext* m_context;
|
||||
};
|
||||
|
||||
#endif // CONTEXT_PANEL_H
|
||||
|
||||
Reference in New Issue
Block a user