|
wiRedPanda
Logic Circuit Simulator
|
Interface the host application (MainWindow) provides to BewavedDolphin. More...
#include <DolphinHost.h>
Public Member Functions | |
| virtual QDir | currentDir () const =0 |
| Working directory of the host's current circuit. | |
| virtual QFileInfo | currentFile () const =0 |
| Path of the host's current circuit (.panda) file. | |
| virtual QString | dolphinFileName ()=0 |
| Returns the .dolphin file currently linked to the circuit (empty if none). | |
| virtual void | save (const QString &fileName)=0 |
| Saves the host's current circuit to fileName (empty = its current path). | |
| virtual void | setDolphinFileName (const QString &fileName)=0 |
| Links fileName as the circuit's associated .dolphin file. | |
| virtual | ~DolphinHost ()=default |
Interface the host application (MainWindow) provides to BewavedDolphin.
Gives the waveform editor the current circuit file/directory and the .dolphin-file association, without a hard dependency on MainWindow. Injecting this (rather than a concrete MainWindow) lets the editor's Save-As / load / associate paths be exercised in tests with a stub host.
Definition at line 23 of file DolphinHost.h.
|
virtualdefault |
|
pure virtual |
Working directory of the host's current circuit.
Implemented in MainWindow.
|
pure virtual |
Path of the host's current circuit (.panda) file.
Implemented in MainWindow.
|
pure virtual |
Returns the .dolphin file currently linked to the circuit (empty if none).
Implemented in MainWindow.
|
pure virtual |
Saves the host's current circuit to fileName (empty = its current path).
Implemented in MainWindow.
|
pure virtual |
Links fileName as the circuit's associated .dolphin file.
Implemented in MainWindow.