Isis 3 Programmer Reference
|
Widget for displaying information about a target. More...
#include <TemplateEditorWidget.h>
Public Slots | |
void | saveText () |
Called when a user clicks the "Save" button. More... | |
void | saveAsText () |
Called when a user clicks the "Save As" button. More... | |
void | saveOption () |
This slot is called when the widget is closed (either via the widget itself or on project close). More... | |
void | textChanged () |
Slot called when text within widget has been changed. More... | |
Public Member Functions | |
TemplateEditorWidget (Template *currentTemplate, Directory *directory, QWidget *parent=0) | |
Private Attributes | |
Ui::TemplateEditorWidget * | m_ui |
Directory * | m_directory |
Template * | m_template |
QString | m_fileType |
bool | m_textChanged |
Widget for displaying information about a target.
2017-12-05 Christopher Combs - Original version.
2018-07-07 Summer Stapleton - Implemented the SaveAs option in the widget. This allows a user to save the file externally to the project as well as to immediately import the template with a simple checkbox in the filedialog. Users are also prompted to save if there have been changes made to the template file since saving if the widget or the ipce main window is closed.
Definition at line 35 of file TemplateEditorWidget.h.
|
slot |
Called when a user clicks the "Save As" button.
Definition at line 68 of file TemplateEditorWidget.cpp.
References _FILEINFO_, Isis::IException::Io, and Isis::Template::Template().
|
slot |
This slot is called when the widget is closed (either via the widget itself or on project close).
Definition at line 161 of file TemplateEditorWidget.cpp.
References Isis::Template::save().
|
slot |
Called when a user clicks the "Save" button.
Definition at line 50 of file TemplateEditorWidget.cpp.
|
slot |
Slot called when text within widget has been changed.
Definition at line 151 of file TemplateEditorWidget.cpp.