Isis 3 Programmer Reference
|
PvlEditDialog creates a QDialog window in which a QTextEdit box displays the contents of a pvl file. More...
#include <PvlEditDialog.h>
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 |
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.
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.
This constructor creates a PvlEditDialog object given a pointer to a Pvl object.
pvl | Pvl file to be viewed or edited |
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().
|
privateslot |
Allow the "Save Changes" button to be activated.
Definition at line 86 of file PvlEditDialog.cpp.
Referenced by PvlEditDialog().
|
privateslot |
Save the edited text as a new Pvl file.
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().