caf: Create a new CommandFeature libary.

Move Add and Delete command features there.
Implement generic Toggle Commands.
Make library an cmake "OBJECT" library to allow "registering by static initialization".
Add the concept of CurrentContextMenuTargetWidget  into CmdFeatureManager to support the toggle commands.
Updated test application to use the new commands
This commit is contained in:
Jacob Støren
2019-08-29 11:48:43 +02:00
parent 6c8feeb60a
commit 01921a50ab
42 changed files with 1123 additions and 25 deletions

View File

@@ -145,6 +145,17 @@ void PdmUiCommandSystemProxy::setUiValueToField(PdmUiFieldHandle* uiFieldHandle,
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmUiCommandSystemProxy::setCurrentContextMenuTargetWidget(QWidget* targetWidget)
{
if (m_commandInterface)
{
m_commandInterface->setCurrentContextMenuTargetWidget(targetWidget);
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------