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.
 
void saveAsText ()
 Called when a user clicks the "Save As" button.
 
void saveOption ()
 This slot is called when the widget is closed (either via the widget itself or on project close).
 
void textChanged ()
 Slot called when text within widget has been changed.
 

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.

Constructor & Destructor Documentation

◆ TemplateEditorWidget()

Isis::TemplateEditorWidget::TemplateEditorWidget ( Template * currentTemplate,
Directory * directory,
QWidget * parent = 0 )
explicit

Definition at line 17 of file TemplateEditorWidget.cpp.

◆ ~TemplateEditorWidget()

Isis::TemplateEditorWidget::~TemplateEditorWidget ( )

Definition at line 38 of file TemplateEditorWidget.cpp.

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.

◆ 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.

◆ 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.

Member Data Documentation

◆ m_directory

Directory* Isis::TemplateEditorWidget::m_directory
private

Definition at line 52 of file TemplateEditorWidget.h.

◆ m_fileType

QString Isis::TemplateEditorWidget::m_fileType
private

Definition at line 54 of file TemplateEditorWidget.h.

◆ m_template

Template* Isis::TemplateEditorWidget::m_template
private

Definition at line 53 of file TemplateEditorWidget.h.

◆ m_textChanged

bool Isis::TemplateEditorWidget::m_textChanged
private

Definition at line 55 of file TemplateEditorWidget.h.

◆ m_ui

Ui::TemplateEditorWidget* Isis::TemplateEditorWidget::m_ui
private

Definition at line 50 of file TemplateEditorWidget.h.


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