ParaView
|
pqFixStateFilenamesDialog can be used to prompt the user with a dialog to edit the filenames referred to in a state xml. More...
#include <pqFixStateFilenamesDialog.h>
Inherits QDialog.
Public Member Functions | |
pqFixStateFilenamesDialog (vtkPVXMLElement *xml, QWidget *parent=0, Qt::WindowFlags f=0) | |
xml is the state xml root-element. More... | |
virtual | ~pqFixStateFilenamesDialog () |
bool | hasFileNames () const |
Call this method to check if the dialog needs to be shown at all. More... | |
vtkPVXMLElement * | xmlRoot () const |
Provides access to the xml root. More... | |
virtual void | accept () |
Overridden to update xml tree based on user chosen filenames. More... | |
Protected Member Functions | |
QString | ConstructPipelineName (QStringList files) |
Detect File paterns, constructing the filename to be shown in the pipeline browser. More... | |
pqFixStateFilenamesDialog can be used to prompt the user with a dialog to edit the filenames referred to in a state xml.
Set the state xml root-element and then call exec() on the dialog. When exec() returns with QDialog::Accepted, it will have modified that XML root element with user specified filenames where ever applicable.
Definition at line 46 of file pqFixStateFilenamesDialog.h.
pqFixStateFilenamesDialog::pqFixStateFilenamesDialog | ( | vtkPVXMLElement * | xml, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
xml
is the state xml root-element.
Note that the xml may get modified, if the user picks different filesnames.
|
virtual |
bool pqFixStateFilenamesDialog::hasFileNames | ( | ) | const |
Call this method to check if the dialog needs to be shown at all.
vtkPVXMLElement* pqFixStateFilenamesDialog::xmlRoot | ( | ) | const |
Provides access to the xml root.
|
virtual |
Overridden to update xml tree based on user chosen filenames.
|
protected |
Detect File paterns, constructing the filename to be shown in the pipeline browser.