CommandRowWidget
CommandRowWidget
Expandable row showing a command name and its parameter editor. More…
#include <CommandRowWidget.hpp>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | removeRequested() |
| void | moveUpRequested() |
| void | moveDownRequested() |
| void | parametersChanged() |
Public Functions
| Name | |
|---|---|
| CommandRowWidget(commands::CommandInfo info, QWidget * parent =[nullptr]) | |
| ~CommandRowWidget() override | |
| std::string | commandName() const Get the command name. |
| commands::CommandDescriptor | toDescriptor() const Build a CommandDescriptor from current widget state. |
| void | fromDescriptor(commands::CommandDescriptor const & desc) Populate the parameter widgets from a CommandDescriptor. |
| void | setMoveUpEnabled(bool enabled) Enable/disable the move-up button. |
| void | setMoveDownEnabled(bool enabled) Enable/disable the move-down button. |
| void | setDataManager(std::shared_ptr< DataManager > dm) Bind a DataManager and refresh dynamic combo fields. |
| void | refreshDynamicCombos() Re-populate all dynamic_combo fields from the bound DataManager. |
Detailed Description
class CommandRowWidget;Expandable row showing a command name and its parameter editor.
Each row displays the command name and description in a header bar, with expand/collapse to show/hide an AutoParamWidget for parameter editing. Provides remove and move-up/move-down buttons.
Public Signals Documentation
signal removeRequested
void removeRequested()signal moveUpRequested
void moveUpRequested()signal moveDownRequested
void moveDownRequested()signal parametersChanged
void parametersChanged()Public Functions Documentation
function CommandRowWidget
explicit CommandRowWidget(
commands::CommandInfo info,
QWidget * parent =nullptr
)function ~CommandRowWidget
~CommandRowWidget() overridefunction commandName
std::string commandName() constGet the command name.
function toDescriptor
commands::CommandDescriptor toDescriptor() constBuild a CommandDescriptor from current widget state.
function fromDescriptor
void fromDescriptor(
commands::CommandDescriptor const & desc
)Populate the parameter widgets from a CommandDescriptor.
function setMoveUpEnabled
void setMoveUpEnabled(
bool enabled
)Enable/disable the move-up button.
function setMoveDownEnabled
void setMoveDownEnabled(
bool enabled
)Enable/disable the move-down button.
function setDataManager
void setDataManager(
std::shared_ptr< DataManager > dm
)Bind a DataManager and refresh dynamic combo fields.
Parameters:
- dm Shared DataManager used to populate
dynamic_comboparameters
function refreshDynamicCombos
void refreshDynamicCombos()Re-populate all dynamic_combo fields from the bound DataManager.
Updated on 2026-11-13 at 20:25:41 +0000