QVISH 0.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Wizt::CreateParameterGUI Struct Reference

Iterator class to create a Qt GUI element for each input parameter of an VISH object. More...

#include <QParameterGUI.hpp>

Inheritance diagram for Wizt::CreateParameterGUI:

Public Types

using CreatorCallback = std::function< void(const string &name, qVParameter *inputWidget, const string &member, int EL)>
 

Public Member Functions

bool apply (const RefPtr< VSlot > &what, int lv) override
 
 CreateParameterGUI (const RefPtr< VObject > &VNew, QWidget *Parent, int LabelWidth, const CreatorCallback &Callback, qVInputContext &theInputContext, const QPointer< QFormLayout > &theFormLayout)
 
virtual bool HandleSource () const
 
void iterate (const RefPtr< VObject > &VNew, int EL)
 

Static Public Member Functions

static int LabelWidth (const RefPtr< VObject > &VNew, int EL, QWidget *Parent)
 Determine the required with of the parental label.
 

Public Attributes

CreatorCallback callback
 
WeakPtr< VCreationPreferences > InputPrefs
 
int labelWidth
 
QPointer< QFormLayout > myFormLayout
 
qVInputContextmyInputContext
 
RefPtr< VObject > Owner
 
QPointer< QWidget > ParentWidget
 

Detailed Description

Iterator class to create a Qt GUI element for each input parameter of an VISH object.

Constructor & Destructor Documentation

◆ CreateParameterGUI()

Wizt::CreateParameterGUI::CreateParameterGUI ( const RefPtr< VObject > &  VNew,
QWidget *  Parent,
int  LabelWidth,
const CreatorCallback &  Callback,
qVInputContext theInputContext,
const QPointer< QFormLayout > &  theFormLayout 
)
Parameters
LabelWidthin pixels, must be determined earlier
MainValuePoolProviderSome information which tells which ValuePool to use.

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