SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A bulk-capable toggle action for badges. More...
#include <qtBadgeActionToggle.h>
Public Member Functions | |
qtBadgeActionToggle (QItemSelection &phrases) | |
void | visitRelatedPhrases (PhraseVisitor visitor) const override |
Some actions may apply to multiple phrases (e.g., those selected when a key is pressed). More... | |
Protected Attributes | |
QItemSelection & | m_phrases |
Additional Inherited Members | |
![]() | |
using | PhraseVisitor = std::function< bool(DescriptivePhrase *)> |
When visiting multiple phrases to which a badge action should apply, this function is supplied by the badge. More... | |
A bulk-capable toggle action for badges.
This class inherits BadgeActionToggle to add an implementation of visitRelatedPhrases() that will traverse the selected model indices passed by the constructor.
|
overridevirtual |
Some actions may apply to multiple phrases (e.g., those selected when a key is pressed).
In those cases, subclasses of BadgeAction may provide a method to visit all phrases to which the action applies.
Reimplemented from smtk::view::BadgeAction.