Isis 3 Programmer Reference
PvlEditDialog.h
1 #ifndef PvlEditDialog_h
2 #define PvlEditDialog_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include <QDialog>
11 #include <QString>
12 
13 #include "Pvl.h"
14 
15 class QLabel;
16 class QLineEdit;
17 class QListWidget;
18 class QPushButton;
19 class QTextEdit;
20 
21 #include <vector>
22 
23 namespace Isis {
45  class PvlEditDialog : public QDialog {
46  Q_OBJECT
47 
48  public:
49  PvlEditDialog(Pvl &pvl, QWidget *parent = 0);
50 
51  private:
52  QTextEdit *p_textEdit;
53  QPushButton *p_saveButton;
54 
55  private slots:
56  void enableSaveButton();
57  void saveTextEdit();
58  };
59 };
60 
61 #endif
62 
63 
QWidget
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::PvlEditDialog::enableSaveButton
void enableSaveButton()
Allow the "Save Changes" button to be activated.
Definition: PvlEditDialog.cpp:92
Isis::PvlEditDialog::saveTextEdit
void saveTextEdit()
Save the edited text as a new Pvl file.
Definition: PvlEditDialog.cpp:106
Isis::PvlEditDialog::PvlEditDialog
PvlEditDialog(Pvl &pvl, QWidget *parent=0)
This constructor creates a PvlEditDialog object given a pointer to a Pvl object.
Definition: PvlEditDialog.cpp:38
QDialog
Isis::PvlEditDialog
PvlEditDialog creates a QDialog window in which a QTextEdit box displays the contents of a pvl file.
Definition: PvlEditDialog.h:45
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16