wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
DolphinHost.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
10#include <QDir>
11#include <QFileInfo>
12#include <QString>
13
24{
25public:
26 virtual ~DolphinHost() = default;
27
29 virtual QFileInfo currentFile() const = 0;
30
32 virtual QDir currentDir() const = 0;
33
35 virtual QString dolphinFileName() = 0;
36
38 virtual void setDolphinFileName(const QString &fileName) = 0;
39
41 virtual void save(const QString &fileName) = 0;
42};
Interface the host application (MainWindow) provides to BewavedDolphin.
Definition DolphinHost.h:24
virtual void save(const QString &fileName)=0
Saves the host's current circuit to fileName (empty = its current path).
virtual QString dolphinFileName()=0
Returns the .dolphin file currently linked to the circuit (empty if none).
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 void setDolphinFileName(const QString &fileName)=0
Links fileName as the circuit's associated .dolphin file.
virtual ~DolphinHost()=default