|
wiRedPanda
Logic Circuit Simulator
|
Interface MainWindow provides to its extracted controllers (export, IC, …). More...
#include <MainWindowHost.h>
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 WorkSpace * | currentTab () const =0 |
| Currently visible WorkSpace tab, or nullptr when none is open. | |
| virtual DolphinHost * | dolphinHost ()=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 ElementPalette * | palette () 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 |
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.
|
virtualdefault |
|
pure virtual |
Directory of the currently active .panda file.
Implemented in MainWindow.
|
pure virtual |
QFileInfo of the currently active .panda file.
Implemented in MainWindow.
|
pure virtual |
Currently visible WorkSpace tab, or nullptr when none is open.
Implemented in MainWindow.
|
pure virtual |
The host's DolphinHost facet, used to drive headless beWavedDolphin exports.
Implemented in MainWindow.
|
pure virtual |
|
pure virtual |
The element palette panel (file-based and embedded IC lists live here).
Implemented in MainWindow.
|
pure virtual |
Re-evaluates the enabled state of the Add-IC button against the current tab.
Implemented in MainWindow.
|
pure virtual |
Saves the current tab (equivalent to triggering the Save action).
Implemented in MainWindow.
|
pure virtual |
Shows or hides the IC management tool buttons (Add / Remove / Make-self-contained).
Implemented in MainWindow.
|
pure virtual |
Shows message in the host's status bar for timeout milliseconds.
Implemented in MainWindow.
|
pure virtual |
Widget used to parent modal dialogs spawned by a controller.
Implemented in MainWindow.