![]()  | 
  
    Isis Developer Reference
    
   | 
 
Opens a window in Gui Application to be able to edit, save and create text files. More...
#include <GuiEditFile.h>


Public Slots | |
| void | open () | 
| For action File->Open.   | |
| void | OpenFile (QString) | 
| To display the contents of an opened file.   | |
| void | setTextChanged () | 
| Indicator that the text has changed.   | |
| void | saveAs () | 
| For action File->Save As.   | |
| void | saveAsFile (QString) | 
| Save the contents of text editor to another file.   | |
| void | saveFile () | 
| For action File->Save.   | |
| void | closeFile () | 
| For action File->Close.   | |
| void | closeWin () | 
| For action Exit (close the window)   | |
Public Member Functions | |
| void | showWindow (QString psFile="") | 
| If there is already an instance of this object, then display the window.   | |
| ~GuiEditFile () | |
| Destructor.   | |
| void | clearFile () | 
| Delete the contents of a file.   | |
Static Public Member Functions | |
| static void | EditFile (UserInterface &pUI, QString psFile="") | 
| Creates a single instance of the GuiEditFile.   | |
Opens a window in Gui Application to be able to edit, save and create text files.
Creates a singleton window to edit files.
Example can be used to edit DefFiles in control net applications. Refer to cnetedit Application
| Isis::GuiEditFile::~GuiEditFile | ( | ) | 
Destructor.
| void Isis::GuiEditFile::clearFile | ( | ) | 
Delete the contents of a file.
Delete the contents of the current file - especially if changes are made and they are not to be saved.
Referenced by saveFile().
      
  | 
  slot | 
      
  | 
  slot | 
For action Exit (close the window)
Action Exit - Close window and clear text editor.
      
  | 
  static | 
Creates a single instance of the GuiEditFile.
If already an instance, display the object
| pUI | - User Interface of parent app | 
| psFile | - File to edit | 
      
  | 
  slot | 
      
  | 
  slot | 
To display the contents of an opened file.
Display the selected file.
| psOutFile | 
Referenced by open(), and showWindow().
      
  | 
  slot | 
      
  | 
  slot | 
Save the contents of text editor to another file.
Copy the current file into user selected file.
| psNewFile | 
References saveFile().
Referenced by saveAs().
      
  | 
  slot | 
For action File->Save.
Action File->Save.
References clearFile().
Referenced by closeFile(), open(), and saveAsFile().
      
  | 
  slot | 
Indicator that the text has changed.
Flag to indicate text has changed.
| void Isis::GuiEditFile::showWindow | ( | QString | psFile = "" | ) | 
If there is already an instance of this object, then display the window.
Display the window if there is already an instance of this object.
| psFile | - File to edit | 
References OpenFile().