attach vtk context to gcompose

This commit is contained in:
AndreaRigoni
2026-03-22 12:18:33 +00:00
parent a8f786d8d1
commit 324aaa91b7
36 changed files with 674 additions and 19 deletions

View File

@@ -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