QVISH 0.1
Public Member Functions | List of all members
Wizt::qVInputCreatorAction::MenuPrepare Struct Reference

Callback object to allow inserting information into a QMenu in case there are output objects found. More...

#include <qVInputCreatorAction.hpp>

Public Member Functions

int addToMenu (const WeakPtr< qVParameter > &qVParam, QMenu &Menu)
 Add input creator entries for the given Parameter to the specified Menu.
 
virtual string EntryName (const WeakPtr< VInputCreatorBase > &InputCreator)
 Based on the given InputCreator, provide a text for the menu entry.
 
virtual string NewName (const WeakPtr< VObject > &VIO, const RefPtr< VSlot > &theSlot, const WeakPtr< VInputCreatorBase > &InputCreator)
 Construction of a name for the newly created Input object.
 
virtual void prepare (QMenu &menu)
 overload this function!
 

Detailed Description

Callback object to allow inserting information into a QMenu in case there are output objects found.

This allows to e.g. add an Separator into the menu before the first entry.

Member Function Documentation

◆ EntryName()

string Wizt::qVInputCreatorAction::MenuPrepare::EntryName ( const WeakPtr< VInputCreatorBase > &  InputCreator)
virtual

Based on the given InputCreator, provide a text for the menu entry.

By default, it will be the creator's full name, prefixed with "create new".


The documentation for this struct was generated from the following files: