![]() |
NDEVR
API Documentation
|
A widget that pairs a DesignPropertyTable with a stacked editor panel, allowing the user to select a row and edit its details in an adjacent editor created by a callback. More...
Public Member Functions | |
| DesignTableEditorWidget (DesignPropertyTable *table, const std::function< QWidget *(const Model &)> &callback, QWidget *parent=nullptr) | |
| Constructs a DesignTableEditorWidget with a property table and editor factory callback. | |
| void | requestHiddenSignal () |
| Emitted when the editor panel requests to be hidden. | |
| void | setActive (const Model &model) |
| Activates the editor for the given model, creating it via the callback if needed. | |
Protected Attributes | |
| std::function< QWidget *(const Model &)> | m_callback |
| The factory function creating editor widgets. | |
| QWidget * | m_current_editor = nullptr |
| The currently displayed editor widget. | |
| QCustomStackedWidget * | m_editor_stack = nullptr |
| The stacked widget managing editor transitions. | |
| QWidget * | m_new_editor = nullptr |
| A newly created editor widget pending display. | |
| DesignPropertyTable * | m_table = nullptr |
| The property table listing design objects. | |
A widget that pairs a DesignPropertyTable with a stacked editor panel, allowing the user to select a row and edit its details in an adjacent editor created by a callback.
Definition at line 15 of file DesignTableEditorWidget.h.
| DesignTableEditorWidget::DesignTableEditorWidget | ( | DesignPropertyTable * | table, |
| const std::function< QWidget *(const Model &)> & | callback, | ||
| QWidget * | parent = nullptr ) |
Constructs a DesignTableEditorWidget with a property table and editor factory callback.
| [in] | table | The DesignPropertyTable providing the list of objects. |
| [in] | callback | A factory function that creates an editor widget for the given Model. |
| [in] | parent | The parent widget. |
| void DesignTableEditorWidget::setActive | ( | const Model & | model | ) |
Activates the editor for the given model, creating it via the callback if needed.
| [in] | model | The model to display in the editor panel. |