File failed to load: https://isis.astrogeology.usgs.gov/9.0.0/Object/assets/jax/output/NativeMML/config.js
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.
 

Private Slots

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

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 45 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 38 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 92 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 106 of file PvlEditDialog.cpp.

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

Referenced by PvlEditDialog().

Member Data Documentation

◆ p_saveButton

QPushButton* Isis::PvlEditDialog::p_saveButton
private

Definition at line 53 of file PvlEditDialog.h.

◆ p_textEdit

QTextEdit* Isis::PvlEditDialog::p_textEdit
private

Definition at line 52 of file PvlEditDialog.h.


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