ParaView
Public Member Functions | Protected Member Functions | List of all members
pqFixStateFilenamesDialog Class Reference

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...
 
vtkPVXMLElementxmlRoot () 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...
 

Detailed Description

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 48 of file pqFixStateFilenamesDialog.h.

Constructor & Destructor Documentation

§ pqFixStateFilenamesDialog()

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.

§ ~pqFixStateFilenamesDialog()

virtual pqFixStateFilenamesDialog::~pqFixStateFilenamesDialog ( )
virtual

Member Function Documentation

§ hasFileNames()

bool pqFixStateFilenamesDialog::hasFileNames ( ) const

Call this method to check if the dialog needs to be shown at all.

§ xmlRoot()

vtkPVXMLElement* pqFixStateFilenamesDialog::xmlRoot ( ) const

Provides access to the xml root.

§ accept()

virtual void pqFixStateFilenamesDialog::accept ( )
virtual

Overridden to update xml tree based on user chosen filenames.

§ ConstructPipelineName()

QString pqFixStateFilenamesDialog::ConstructPipelineName ( QStringList  files)
protected

Detect File paterns, constructing the filename to be shown in the pipeline browser.


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