#include <OpenWizardPane.hpp>
|
bool | _dirty |
|
QString | _filepath |
|
QLabel * | _filepathLabel |
|
QPushButton * | _openButton |
|
const SchemaDef * | _schema |
|
An OpenWizardPane instance displays the user interface for loading a new SMILE dataset from a SMILE XML file.
◆ 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.
◆ 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: