An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
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. | |
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 |
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.
|
explicit |
Definition at line 17 of file TemplateEditorWidget.cpp.
Isis::TemplateEditorWidget::~TemplateEditorWidget | ( | ) |
Definition at line 38 of file TemplateEditorWidget.cpp.
|
slot |
Called when a user clicks the "Save As" button.
Definition at line 68 of file TemplateEditorWidget.cpp.
References Isis::IException::Io, and saveAsText().
Referenced by saveAsText(), and 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 saveAsText(), and saveOption().
Referenced by saveOption().
|
slot |
Called when a user clicks the "Save" button.
Definition at line 50 of file TemplateEditorWidget.cpp.
References saveText().
Referenced by saveText().
|
slot |
Slot called when text within widget has been changed.
Definition at line 151 of file TemplateEditorWidget.cpp.
References textChanged().
Referenced by textChanged().
|
private |
Definition at line 52 of file TemplateEditorWidget.h.
|
private |
Definition at line 54 of file TemplateEditorWidget.h.
|
private |
Definition at line 53 of file TemplateEditorWidget.h.
|
private |
Definition at line 55 of file TemplateEditorWidget.h.
|
private |
Definition at line 50 of file TemplateEditorWidget.h.