QVISH 0.1
Classes | Public Member Functions | Static Public Member Functions | List of all members
Wizt::qVInputCreatorAction Class Reference

A QAction for insertion into QMenus that creates an input for the specified parameter. More...

#include <qVInputCreatorAction.hpp>

Inheritance diagram for Wizt::qVInputCreatorAction:
Wizt::qVInputCreatorActionBase

Classes

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

Public Member Functions

 qVInputCreatorAction (const QString &Name, QObject *parent, const qVInputCreatorActionBase &)
 Construct a QAction that will create an input for the object's slot.
 
 qVInputCreatorAction (const QString &Name, QObject *parent, const qVInputCreatorActionBase &, const RefPtr< VObject > &SourceObject, const RefPtr< VAcceptInfo > &SourceConnectionInfo)
 Construct a QAction that will create an input for the object's slot if this input is provided by a new VObject, and connect this new VObject with an already existing object.
 
 ~qVInputCreatorAction ()
 Destructor.
 
- Public Member Functions inherited from Wizt::qVInputCreatorActionBase
 qVInputCreatorActionBase (const RefPtr< VInputCreatorBase > &VC, const WeakPtr< VObject > &VInputObj, const WeakPtr< VSlot > &mySlot, const WeakPtr< qVParameter > &qVParam, const string &newCreationName)
 

Static Public Member Functions

static int addPossibleInputCreators (const RefPtr< VObject > &VObj, const RefPtr< VSlot > &theSlot, QMenu &Menu, QMenu *ParentMenu, const WeakPtr< qVParameter > &qVParam, MenuPrepare &MP)
 For the given type, find all inputs that can be attached to the given object.
 

Additional Inherited Members

- Public Attributes inherited from Wizt::qVInputCreatorActionBase
string myNewCreationName
 
WeakPtr< qVParametermyqVParam
 
WeakPtr< VSlot > mySlot
 
WeakPtr< VObject > myVInputObj
 
const RefPtr< VInputCreatorBase > VB
 

Detailed Description

A QAction for insertion into QMenus that creates an input for the specified parameter.

Constructor & Destructor Documentation

◆ qVInputCreatorAction() [1/2]

Wizt::qVInputCreatorAction::qVInputCreatorAction ( const QString &  Name,
QObject *  parent,
const qVInputCreatorActionBase CAB 
)

Construct a QAction that will create an input for the object's slot.

It will show up in the qVParameter if such has been specified.

◆ qVInputCreatorAction() [2/2]

Wizt::qVInputCreatorAction::qVInputCreatorAction ( const QString &  Name,
QObject *  parent,
const qVInputCreatorActionBase CAB,
const RefPtr< VObject > &  SourceObject,
const RefPtr< VAcceptInfo > &  SourceConnectionInfo 
)

Construct a QAction that will create an input for the object's slot if this input is provided by a new VObject, and connect this new VObject with an already existing object.

The newly created VObject will thus serve as a filter between the existing SourceObject and the input requesting this filter.

Member Function Documentation

◆ addPossibleInputCreators()

int Wizt::qVInputCreatorAction::addPossibleInputCreators ( const RefPtr< VObject > &  VObj,
const RefPtr< VSlot > &  theSlot,
QMenu &  Menu,
QMenu *  ParentMenu,
const WeakPtr< qVParameter > &  qVParam,
MenuPrepare MP 
)
static

For the given type, find all inputs that can be attached to the given object.

These menu entries will create new inputs. To allow connecting with existing inputs, use qVParameterConnectAction::addConnectableObjects();

See also
iterateVInputCreators().

Referenced by Wizt::qVInputLabel::qVInputLabel().


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