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