Isis 3 Programmer Reference
Isis::TemplateEditorWidget Class Reference

Widget for displaying information about a target. More...

#include <TemplateEditorWidget.h>

Inheritance diagram for Isis::TemplateEditorWidget:
Inheritance graph
Collaboration diagram for Isis::TemplateEditorWidget:
Collaboration graph

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
 
Directorym_directory
 
Templatem_template
 
QString m_fileType
 
bool m_textChanged
 

Detailed Description

Widget for displaying information about a target.

Author
2017-12-05 Christopher Combs
History:

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.

Member Function Documentation

◆ saveAsText

void Isis::TemplateEditorWidget::saveAsText ( )
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().

◆ saveOption

void Isis::TemplateEditorWidget::saveOption ( )
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().

◆ saveText

void Isis::TemplateEditorWidget::saveText ( )
slot

Called when a user clicks the "Save" button.

Definition at line 50 of file TemplateEditorWidget.cpp.

◆ textChanged

void Isis::TemplateEditorWidget::textChanged ( )
slot

Slot called when text within widget has been changed.

Definition at line 151 of file TemplateEditorWidget.cpp.


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