The SKIRT project
advanced radiative transfer for astrophysics
DoubleListPropertyWizardPane Class Reference

#include <DoubleListPropertyWizardPane.hpp>

Inheritance diagram for DoubleListPropertyWizardPane:

Public Slots

void updateValue (const QString &text)

Public Member Functions

 DoubleListPropertyWizardPane (std::unique_ptr< PropertyHandler > handler, QObject *target)
Public Member Functions inherited from PropertyWizardPane
 PropertyWizardPane (std::unique_ptr< PropertyHandler > handler, QObject *target)
 ~PropertyWizardPane ()
PropertyHandlerhandler ()

Protected Member Functions

void updateInterface () override
Protected Member Functions inherited from PropertyWizardPane
QLabel * createHeader (string text)
template<class T>
T * handlerCast ()
void showEvent (QShowEvent *event) override

Private Attributes

QLineEdit * _field
QLabel * _header
string _message

Additional Inherited Members

Signals inherited from PropertyWizardPane
void propertyValidChanged (bool valid)
void propertyValueChanged ()

Detailed Description

A DoubleListPropertyWizardPane instance displays the user interface corresponding to a DoublePropertyHandler. When the user changes the edit field, the corresponding value is updated in the target property.

Constructor & Destructor Documentation

◆ DoubleListPropertyWizardPane()

DoubleListPropertyWizardPane::DoubleListPropertyWizardPane ( std::unique_ptr< PropertyHandler > handler,
QObject * target )
explicit

The default (and only) constructor creates and initializes the GUI for this pane. For a description of the arguments, see the PropertyWizardPane constructor.

Member Function Documentation

◆ updateInterface()

void DoubleListPropertyWizardPane::updateInterface ( )
overrideprotectedvirtual

This function updates the user interface of the pane if needed to adjust to changes to the values of other properties displayed inside the same MultiPropertyWizardPane instance. Specifically, if the quantity units and/or the minimum, maximum or default values have changed, the header message is updated and the field value is updated if the quantity units and/or the default value have changed and the field has not yet been edited by the user (i.e. it still contains a programmatically inserted default value).

Reimplemented from PropertyWizardPane.

◆ updateValue

void DoubleListPropertyWizardPane::updateValue ( const QString & text)
slot

This function stores the value corresponding to the specified text string into the target property.


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