API Documentation
Loading...
Searching...
No Matches
DesignTableEditorWidget.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <QBoxLayout>
4#include <QWidget>
5#include <functional>
6namespace NDEVR
7{
8 class DesignPropertyTable;
9 class Model;
10 class QCustomStackedWidget;
11 class NDEVR_API DesignTableEditorWidget : public QWidget
12 {
13 Q_OBJECT
14 public:
15 DesignTableEditorWidget(DesignPropertyTable* table, const std::function<QWidget* (const Model&)>& callback, QWidget* parent = nullptr);
16 void setActive(const Model& model);
17 signals:
19 protected:
20 DesignPropertyTable* m_table = nullptr;
21 QWidget* m_current_editor = nullptr;
22 QWidget* m_new_editor = nullptr;
23 QCustomStackedWidget* m_editor_stack = nullptr;
24 std::function<QWidget* (const Model&)> m_callback;
25 };
26}
#define NDEVR_API
Definition DLLInfo.h:67
Definition DesignPropertyTable.h:77
Definition DesignTableEditorWidget.h:12
DesignTableEditorWidget(DesignPropertyTable *table, const std::function< QWidget *(const Model &)> &callback, QWidget *parent=nullptr)
void setActive(const Model &model)
A core class that represents a node on model heirarchy. This node may contain a Geometry or.
Definition Model.h:58
The main class for a layout where all widgets occupy the same same and only one widget.
Definition QCustomStackedWidget.h:149
Definition ACIColor.h:37