Abstract base class for context operations interface.
std::shared_ptr< ContextOps > Ptr
virtual Items getItems(const ItemPath &itemPath) const =0
ContextOps(const ContextOps &)=default
Default copy constructor.
virtual SceneItem::Ptr sceneItem() const =0
Scene item accessor.
virtual UndoableCommand::Ptr doOpCmd(const ItemPath &itemPath)=0
std::vector< ContextItem > Items
static Ptr contextOps(const SceneItem::Ptr &item)
virtual void doOp(const ItemPath &itemPath)
std::vector< std::string > ItemPath
Structure to describe contextual operations.
ContextItem(const std::string &argItem, const std::string &argLabel, const std::string &argImage, bool argHasChildren=false, bool argCheckable=false, bool argChecked=false, bool argExclusive=false, bool argEnabled=true)
Convenience constructor for creating an item with image icon.
ContextItem(const std::string &argItem, const std::string &argLabel, bool argHasChildren=false, bool argCheckable=false, bool argChecked=false, bool argExclusive=false, bool argEnabled=true)
Ufe::Value getMetaData(const std::string &key) const
ContextItem(SeparatorTag, const std::string &argLabel="")
Convenience constructor for creating a separator item, with optional label.
void setMetaData(const std::string &key, const Ufe::Value &value)
ValueDictionary metaData
The meta data can be used to include DCC-specific data, without making UFE's interface platform speci...