wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
DolphinHost Class Referenceabstract

Interface the host application (MainWindow) provides to BewavedDolphin. More...

#include <DolphinHost.h>

Inheritance diagram for DolphinHost:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~DolphinHost()

virtual DolphinHost::~DolphinHost ( )
virtualdefault

Member Function Documentation

◆ currentDir()

virtual QDir DolphinHost::currentDir ( ) const
pure virtual

Working directory of the host's current circuit.

Implemented in MainWindow.

◆ currentFile()

virtual QFileInfo DolphinHost::currentFile ( ) const
pure virtual

Path of the host's current circuit (.panda) file.

Implemented in MainWindow.

◆ dolphinFileName()

virtual QString DolphinHost::dolphinFileName ( )
pure virtual

Returns the .dolphin file currently linked to the circuit (empty if none).

Implemented in MainWindow.

◆ save()

virtual void DolphinHost::save ( const QString & fileName)
pure virtual

Saves the host's current circuit to fileName (empty = its current path).

Implemented in MainWindow.

◆ setDolphinFileName()

virtual void DolphinHost::setDolphinFileName ( const QString & fileName)
pure virtual

Links fileName as the circuit's associated .dolphin file.

Implemented in MainWindow.


The documentation for this class was generated from the following file: