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

Interface MainWindow provides to its extracted controllers (export, IC, …). More...

#include <MainWindowHost.h>

Inheritance diagram for MainWindowHost:
[legend]

Public Member Functions

virtual QDir currentDir () const =0
 Directory of the currently active .panda file.
virtual QFileInfo currentFile () const =0
 QFileInfo of the currently active .panda file.
virtual WorkSpacecurrentTab () const =0
 Currently visible WorkSpace tab, or nullptr when none is open.
virtual DolphinHostdolphinHost ()=0
 The host's DolphinHost facet, used to drive headless beWavedDolphin exports.
virtual QFileInfo icListFile () const =0
 File info used to populate the file-based IC palette (parent workspace for inline IC tabs).
virtual ElementPalettepalette () const =0
 The element palette panel (file-based and embedded IC lists live here).
virtual void refreshICButtonsEnabled ()=0
 Re-evaluates the enabled state of the Add-IC button against the current tab.
virtual void requestSave ()=0
 Saves the current tab (equivalent to triggering the Save action).
virtual void setICButtonsVisible (bool visible)=0
 Shows or hides the IC management tool buttons (Add / Remove / Make-self-contained).
virtual void showStatusMessage (const QString &message, int timeout)=0
 Shows message in the host's status bar for timeout milliseconds.
virtual QWidget * widget ()=0
 Widget used to parent modal dialogs spawned by a controller.
virtual ~MainWindowHost ()=default

Detailed Description

Interface MainWindow provides to its extracted controllers (export, IC, …).

Mirrors the DolphinHost pattern: collaborators receive this narrow context instead of a concrete MainWindow, so each cluster can be exercised with a stub host. Exposes the current tab, the current circuit file, a parent widget for dialogs, and a status-bar message sink.

Definition at line 28 of file MainWindowHost.h.

Constructor & Destructor Documentation

◆ ~MainWindowHost()

virtual MainWindowHost::~MainWindowHost ( )
virtualdefault

Member Function Documentation

◆ currentDir()

virtual QDir MainWindowHost::currentDir ( ) const
pure virtual

Directory of the currently active .panda file.

Implemented in MainWindow.

◆ currentFile()

virtual QFileInfo MainWindowHost::currentFile ( ) const
pure virtual

QFileInfo of the currently active .panda file.

Implemented in MainWindow.

◆ currentTab()

virtual WorkSpace * MainWindowHost::currentTab ( ) const
pure virtual

Currently visible WorkSpace tab, or nullptr when none is open.

Implemented in MainWindow.

◆ dolphinHost()

virtual DolphinHost * MainWindowHost::dolphinHost ( )
pure virtual

The host's DolphinHost facet, used to drive headless beWavedDolphin exports.

Implemented in MainWindow.

◆ icListFile()

virtual QFileInfo MainWindowHost::icListFile ( ) const
pure virtual

File info used to populate the file-based IC palette (parent workspace for inline IC tabs).

◆ palette()

virtual ElementPalette * MainWindowHost::palette ( ) const
pure virtual

The element palette panel (file-based and embedded IC lists live here).

Implemented in MainWindow.

◆ refreshICButtonsEnabled()

virtual void MainWindowHost::refreshICButtonsEnabled ( )
pure virtual

Re-evaluates the enabled state of the Add-IC button against the current tab.

Implemented in MainWindow.

◆ requestSave()

virtual void MainWindowHost::requestSave ( )
pure virtual

Saves the current tab (equivalent to triggering the Save action).

Implemented in MainWindow.

◆ setICButtonsVisible()

virtual void MainWindowHost::setICButtonsVisible ( bool visible)
pure virtual

Shows or hides the IC management tool buttons (Add / Remove / Make-self-contained).

Implemented in MainWindow.

◆ showStatusMessage()

virtual void MainWindowHost::showStatusMessage ( const QString & message,
int timeout )
pure virtual

Shows message in the host's status bar for timeout milliseconds.

Implemented in MainWindow.

◆ widget()

virtual QWidget * MainWindowHost::widget ( )
pure virtual

Widget used to parent modal dialogs spawned by a controller.

Implemented in MainWindow.


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