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

#include <OpenWizardPane.hpp>

Inheritance diagram for OpenWizardPane:
Inheritance graph
[legend]

Public Slots

void open ()
 

Signals

void hierarchyWasLoaded (Item *root, QString filepath)
 

Public Member Functions

 OpenWizardPane (const SchemaDef *schema, QString filepath, bool dirty, QObject *target)
 

Private Attributes

bool _dirty
 
QString _filepath
 
QLabel * _filepathLabel
 
QPushButton * _openButton
 
const SchemaDef_schema
 

Detailed Description

An OpenWizardPane instance displays the user interface for loading a new SMILE dataset from a SMILE XML file.

Constructor & Destructor Documentation

◆ OpenWizardPane()

OpenWizardPane::OpenWizardPane ( const SchemaDef schema,
QString  filepath,
bool  dirty,
QObject *  target 
)
explicit

The default (and only) constructor creates and initializes the GUI for this pane. The first argument specifies the schema definition for the dataset under construction. The second argument provides a filepath that has been previously used during this session, if any. This file path is used to position the open dialog in the file system. The third argument provides the dirty state of the currently open dataset, which will be overridden. This information is used to propertly warn the user. The last argument specifies the object that will be notified of a successful open and load operation through invocation of the object's relevant slot.

Member Function Documentation

◆ hierarchyWasLoaded

void OpenWizardPane::hierarchyWasLoaded ( Item root,
QString  filepath 
)
signal

This signal is emitted after the dataset has been successfully loaded.

◆ open

void OpenWizardPane::open ( )
slot

This function obtains an open file path from the user, and then loads the SMILE dataset from that file. After a successful load operation, the function notifies the target object by emitting a hierarchyWasLoaded() signal.


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