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

#include <ItemListPropertyWizardPane.hpp>

Inheritance diagram for ItemListPropertyWizardPane:
Inheritance graph
[legend]

Public Slots

void addItem ()
 
void editItem ()
 
void removeItem ()
 
void storeSelectedRow (int row)
 

Signals

void advanceToEditSubItem (int subItemIndex)
 
- Signals inherited from PropertyWizardPane
void propertyValidChanged (bool valid)
 
void propertyValueChanged ()
 

Public Member Functions

 ItemListPropertyWizardPane (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 ()
 

Private Member Functions

void setButtonsEnabled ()
 

Private Attributes

QPushButton * _addButton
 
QPushButton * _editButton
 
QListWidget * _listWidget
 
QPushButton * _removeButton
 

Additional Inherited Members

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

Detailed Description

An ItemListPropertyWizardPane instance displays the user interface corresponding to an ItemListPropertyHandler. When the user makes a choice, a new simulation item of the selected type is created and added to the target property.

Constructor & Destructor Documentation

◆ ItemListPropertyWizardPane()

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

◆ addItem

void ItemListPropertyWizardPane::addItem ( )
slot

This function adds a simulation item to the list of the target property.

◆ advanceToEditSubItem

void ItemListPropertyWizardPane::advanceToEditSubItem ( int  subItemIndex)
signal

This signal is emitted when the "Edit" button is pressed.

◆ editItem

void ItemListPropertyWizardPane::editItem ( )
slot

This function edits a simulation item in the list of the target property.

◆ removeItem

void ItemListPropertyWizardPane::removeItem ( )
slot

This function removes a simulation item from the list of the target property.

◆ setButtonsEnabled()

void ItemListPropertyWizardPane::setButtonsEnabled ( )
private

This function enables or disables the push buttons depending on the contents of the list widget, and emits a propertyValidChanged signal with the appropriate argument.

◆ storeSelectedRow

void ItemListPropertyWizardPane::storeSelectedRow ( int  row)
slot

This function stores the specified value for this combination of target simulation item and item list property. It is intended to make the zero-based index of the currently selected row persistent during a particular session from one display of the wizard to the next.


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