#include <FileIO.h>
Inheritance diagram for FileIO::

Signals | |
| void | sbMessage (QString) |
| Sets a statusbar message. | |
| void | setWaitCursor () |
| Sets the hourglass cursor. | |
| void | setPreviousCursor () |
| Resets the cursor to the previous one. | |
Public Methods | |
| FileIO (QWidget *) | |
| Constructor. More... | |
| ~FileIO () | |
| Destructor. | |
| Project * | openFile (QString mrufile=QString::null) |
| Opens a 'fsm'-file. More... | |
| Project * | openFileXML (QString mrufile=QString::null) |
| Opens a 'fsm'-file. More... | |
| bool | saveFile (Project *) |
| Saves project as 'fsm'-file. More... | |
| bool | saveFileAs (Project *) |
| Save project as 'fsm'-file with a new name. More... | |
| bool | exportFile (Project *,Export *) |
| Exports the actual file. More... | |
| int | saveOptions (Options *) |
| Saves the application options. More... | |
| int | loadOptions (Options *) |
| Loads the application options. More... | |
| bool | loadMRU (QStringList &) |
| Loads the list of most recently used files. | |
| bool | saveMRU (QStringList) |
| Saves the list of most recently used files. | |
| void | setActFilePath (QString file) |
| Sets actual file name. | |
| QString | getActFilePath () |
| Gets actual file name. | |
| QString | getActFileName () |
| Returns the current file name. | |
| QString | getActExportFileName () |
| Returns the current export file name. | |
| QString | getEmptyFieldString () |
| Returns the string that represents an empty field (null value) in the options file. | |
Private Methods | |
| bool | doSave (Project *) |
| Performs the actual saving of project p. | |
| bool | doSaveXML (Project *) |
| Performs the actual saving of project p in XML format. | |
| void | setOptions (QMap< QString, QString > *map, Options *opt) |
| Sets the loaded application options. More... | |
Private Attributes | |
| MainWindow * | main |
| Pointer to the main window. | |
| QDir | act_dir |
| Current directory. | |
| QString | act_file |
| Current file name. | |
| QString | act_exportfile |
| Current export file name. | |
| QFileDialog * | filedlg |
| File dialog. | |
| QFileDialog * | exportdlg |
| File dialog (export). | |
It can load and save 'fsm'-files and the application options and stores the file name of the actual file..
|
|
Constructor. Initialises the FileIO object with the parent parent. |
|
|||||||||||||||
|
Exports the actual file. Opens a file dialog and exports the actual machine into the specified format. |
|
|
Loads the application options. Loads the options from $HOME/.qfsm/qfsmrc into opt. |
|
|
Opens a 'fsm'-file. Asks for a file name and opens the specified 'fsm'-file. |
|
|
Opens a 'fsm'-file. Opens the '.fsm' file mrufile. If mrufile is null a file dialog is opened first. |
|
|
Saves project as 'fsm'-file. If no file name is given, it first asks for the file name. |
|
|
Save project as 'fsm'-file with a new name. Asks for a file name and saves the project p as a 'fsm'-file. |
|
|
Saves the application options. Saves options opt in the qfsmrc-file which is in $HOME/.qfsm/. |
|
|||||||||||||||
|
Sets the loaded application options.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001