The SKIRT project
advanced radiative transfer for astrophysics
Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
DoublePropertyWizardPane Class Reference

#include <DoublePropertyWizardPane.hpp>

Inheritance diagram for DoublePropertyWizardPane:
Inheritance graph
[legend]

Public Slots

void updateValue (const QString &text)
 

Public Member Functions

 DoublePropertyWizardPane (std::unique_ptr< PropertyHandler > handler, QObject *target)
 
- Public Member Functions inherited from PropertyWizardPane
 PropertyWizardPane (std::unique_ptr< PropertyHandler > handler, QObject *target)
 
 ~PropertyWizardPane ()
 
PropertyHandlerhandler ()
 
virtual void updateInterface ()
 

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 DoublePropertyWizardPane 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

◆ DoublePropertyWizardPane()

DoublePropertyWizardPane::DoublePropertyWizardPane ( 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 DoublePropertyWizardPane::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 DoublePropertyWizardPane::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: