QVISH 0.1
Classes | Public Member Functions | Public Attributes | List of all members
Wizt::qVParameter Class Reference

qVish representation of a VParameter: More...

#include <qVParameter.hpp>

Inheritance diagram for Wizt::qVParameter:

Classes

class  Notifier
 
class  qVParameterEnvironment
 A structure containing arbitrary information per qVParameter, as will be called after construction of qVParameters. More...
 
class  qVParameterEnvironmentConstructor
 

Public Member Functions

void addParameterCreatorsAndConnections (QMenu &menu) const
 
bool createBestQtInputWidget ()
 
bool createEmbeddedVObject ()
 If this parameter slot stems from another object, embed all the inputs of that object here as part of this current input (hierarchical objects).
 
bool createInputWidget (const RefPtr< VInputCreatorBase > &vip)
 Given a certain VInputCreatorBase, create a QWidget representation from it.
 
void detachParameter ()
 
int ExpertLevel (const ExpertLevelModifier &ELM) const
 
const QPointer< qVInputLabel > & getInputLabel () const
 Get the input label object of this qVParameter, which is the left QWidget showing the qVParameter's slot name.
 
WeakPtr< VObject > getInputObj () const
 Return the VObject that holds this qVParameter is part of.
 
RefPtr< VParameter > getParameter () const
 Get the actual VParameter that is currently connected with the given Slot that is managed through this qVParameter.
 
RefPtr< VSlot > getSlot () const
 Get the specific slot for which this qVParameter is responsible.
 
ValueFrame * getValueFrame () const
 
void hide () const
 Hide both qwidgets, the selection label and the field input label.
 
bool isFormVisible () const
 Check if any qwidget is visible.
 
 qVParameter (QWidget *Parent, qVInputContext &theInputContext, const QPointer< QFormLayout > &theFormLayout, const RefPtr< VObject > &Owner, const RefPtr< VSlot > &what, const WeakPtr< qVParameterEnvironmentConstructor > &theVParameterEnvironmentConstructor)
 Setup the left side of the qVParameter, which is the name of the specific parameter in the context of a given VObject.
 
void setInputField (const RefPtr< qVInputFieldWidget > &theInputField)
 
void setInputSelection ()
 Setup a right side for the qVParameter, which is some string selection for the given type.
 
void setInputSelectionLabel ()
 Set the input field to be just an qVInputSelectionLabel.
 
void setupContextMenu (QWidget *)
 
void show () const
 show both qwidgets, the selection label and the field input label
 
void showIfSuggested () const
 
void valueChanged ()
 

Public Attributes

QStack< string > Activity
 
QPointer< QFormLayout > myFormLayout
 
qVInputContextmyInputContext
 
RefPtr< NotifiermyNotifier
 
RefPtr< qVParameterEnvironmentmyParameterEnvironment
 
RefPtr< qVParameterEnvironmentConstructormyqVParameterEnvironmentConstructor
 

Detailed Description

qVish representation of a VParameter:

A qVParameter is setup as a receiver of parameter notification events, it will thus be updated once the associated parameter is changed or modified.

Member Function Documentation

◆ getParameter()

RefPtr< VParameter > Wizt::qVParameter::getParameter ( ) const
inline

Get the actual VParameter that is currently connected with the given Slot that is managed through this qVParameter.

Note that the owner of this VParameter is not necessarily the getInputObject(). This is in particular not the case if the current Slot is attached to another VObject's parameter.


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