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