Isis 3 Programmer Reference
Isis::PvlEditDialog Class Reference

PvlEditDialog creates a QDialog window in which a QTextEdit box displays the contents of a pvl file. More...

#include <PvlEditDialog.h>

Inheritance diagram for Isis::PvlEditDialog:
Inheritance graph
Collaboration diagram for Isis::PvlEditDialog:
Collaboration graph

Public Member Functions

 PvlEditDialog (Pvl &pvl, QWidget *parent=0)
 This constructor creates a PvlEditDialog object given a pointer to a Pvl object. More...
 

Private Slots

void enableSaveButton ()
 Allow the "Save Changes" button to be activated. More...
 
void saveTextEdit ()
 Save the edited text as a new Pvl file. More...
 

Private Attributes

QTextEdit * p_textEdit
 
QPushButton * p_saveButton
 

Detailed Description

PvlEditDialog creates a QDialog window in which a QTextEdit box displays the contents of a pvl file.

This file may be viewed or edited and saved as a new pvl file.

Author
2008-12-10 Jeannie Walldren
History:

2008-12-10 Jeannie Walldren - Original version written to view and edit the template file in the qnet application.

2008-12-10 Jeannie Walldren - Changed namespace from Qisis to Isis

2008-12-10 Jeannie Walldren - Cleaned up code and fixed bugs arising from moving this class from Qisis and to Isis. Added moc commands to Makefile.

2008-12-15 Jeannie Walldren - Added a verification that the edited file is in Pvl format. Replaced error throws with QMessage warning boxes.

Definition at line 39 of file PvlEditDialog.h.

Constructor & Destructor Documentation

◆ PvlEditDialog()

Isis::PvlEditDialog::PvlEditDialog ( Pvl pvl,
QWidget parent = 0 
)

This constructor creates a PvlEditDialog object given a pointer to a Pvl object.

Parameters
pvlPvl file to be viewed or edited
Author
2008-12-10 Jeannie Walldren
History:

2008-12-10 Jeannie Walldren - Original Version

2008-12-15 Jeannie Walldren - Removed unneccesary error catch.

Definition at line 32 of file PvlEditDialog.cpp.

References enableSaveButton(), Isis::PvlContainer::fileName(), and saveTextEdit().

Member Function Documentation

◆ enableSaveButton

void Isis::PvlEditDialog::enableSaveButton ( )
privateslot

Allow the "Save Changes" button to be activated.

Author
2008-12-10 Jeannie Walldren
History:
2008-12-10 Jeannie Walldren - Original Version.

Definition at line 86 of file PvlEditDialog.cpp.

Referenced by PvlEditDialog().

◆ saveTextEdit

void Isis::PvlEditDialog::saveTextEdit ( )
privateslot

Save the edited text as a new Pvl file.

Author
2008-12-10 Jeannie Walldren
History:

2008-12-10 Jeannie Walldren - Original Version.

2008-12-15 Jeannie Walldren - Added a verification that the edited file is in Pvl format before allowing save. Replaced error throw with QMessageBox warning.

Definition at line 100 of file PvlEditDialog.cpp.

References Isis::IException::toString(), and Isis::Pvl::write().

Referenced by PvlEditDialog().


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