|
Isis 3 Programmer Reference
|
1 #ifndef _GuiEditFile_h_
2 #define _GuiEditFile_h_
12 #include <QMainWindow>
QAction * m_exit
Action Exit.
QAction * m_saveAs
Action Save As.
void clearFile()
Delete the contents of a file.
bool m_textChanged
Flag to indicate text changed.
void saveAs()
For action File->Save As.
QAction * m_save
Action Save.
static void EditFile(UserInterface &pUI, QString psFile="")
Creates a single instance of the GuiEditFile.
~GuiEditFile()
Destructor.
GuiEditFile(UserInterface &pUI, QString psFile="")
Constructor.
void closeWin()
For action Exit (close the window)
void windowTitle(QString &psfile)
display only the file base name
QTextEdit * m_txtEdit
Text Editor.
void saveFile()
For action File->Save.
QAction * m_open
Actioons.
void showWindow(QString psFile="")
If there is already an instance of this object, then display the window.
Opens a window in Gui Application to be able to edit, save and create text files.
void saveAsFile(QString)
Save the contents of text editor to another file.
QFile * m_editFile
File pointer to current file.
QWidget * m_parent
Parent widget.
QMainWindow * m_editWin
Editor window.
QString m_fileName
Current file open.
static GuiEditFile * m_instance
Instance of this object - singleton.
Command Line and Xml loader, validation, and access.
QAction * m_close
Action Close.
void OpenFile(QString)
To display the contents of an opened file.
void setTextChanged()
Indicator that the text has changed.
void closeFile()
For action File->Close.
void open()
For action File->Open.
This is free and unencumbered software released into the public domain.