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

#include <MultiPropertyWizardPane.hpp>

Inheritance diagram for MultiPropertyWizardPane:
Inheritance graph
[legend]

Public Slots

void hierarchyWasChanged ()
 
void setPropertyValid (bool valid)
 

Signals

void multiPropertyValidChanged (bool valid)
 
void multiPropertyValueChanged ()
 

Public Member Functions

 MultiPropertyWizardPane (QObject *target)
 
void addPane (PropertyWizardPane *pane)
 

Protected Member Functions

void showEvent (QShowEvent *event) override
 

Private Member Functions

void emitValidity ()
 
void updateVisibility ()
 

Private Attributes

QVBoxLayout * _multiLayout
 
QList< PropertyWizardPane * > _subPanes
 
QHash< QObject *, bool > _subPaneState
 

Detailed Description

A MultiPropertyWizardPane instance combines one or more PropertyWizardPane instances into a single pane. It is used to show the user interface for multiple non-compound properties on a single pane rather than on consecutive wizard panes.

Constructor & Destructor Documentation

◆ MultiPropertyWizardPane()

MultiPropertyWizardPane::MultiPropertyWizardPane ( QObject *  target)
explicit

The default (and only) constructor connects the multiPropertyValidChanged() and multiPropertyValueChanged() signals to the specified target object. These signals are emitted by the multi-pane in response to the corresponding signals emitted by the subpanes being managed.

Member Function Documentation

◆ addPane()

void MultiPropertyWizardPane::addPane ( PropertyWizardPane pane)

This function adds the specified wizard pane to the multi-pane's layout and includes it in the list of subpanes being managed by the multi-pane. The multi-wizard pane assumes ownership of the provided PropertyWizardPane instance.

◆ emitValidity()

void MultiPropertyWizardPane::emitValidity ( )
private

This function emits the multiPropertyValidChanged signal with the aggregate validity of the visible subpanes.

◆ hierarchyWasChanged

void MultiPropertyWizardPane::hierarchyWasChanged ( )
slot

This function emits a multiPropertyValueChanged() signal in response to a signal received from one of the subpanes being managed.

◆ multiPropertyValidChanged

void MultiPropertyWizardPane::multiPropertyValidChanged ( bool  valid)
signal

This signal is emitted when the valid state of the multi-pane may have changed, i.e. when the valid state of a managed subpane changes.

◆ multiPropertyValueChanged

void MultiPropertyWizardPane::multiPropertyValueChanged ( )
signal

This signal is emitted when the value of one of the properties being handled by multi-pane pane has changed.

◆ setPropertyValid

void MultiPropertyWizardPane::setPropertyValid ( bool  valid)
slot

This function emits a multiPropertyValidChanged() signal in response to a signal received from one of the subpanes being managed. It tracks the validity state for each of the subpanes so that it can pass on an aggregate value, i.e. the multi-pane is valid only when all subpanes are valid.

◆ showEvent()

void MultiPropertyWizardPane::showEvent ( QShowEvent *  event)
overrideprotected

This function ensures that the first focus-enabled widget in the pane receives the focus when the pane is shown.

◆ updateVisibility()

void MultiPropertyWizardPane::updateVisibility ( )
private

This function hides subpanes that are currently silent for the purpose of this wizard and shows the other subpanes.


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