#include <mlabIDENetworkWindow.h>
Inherits MLABWorkspaceWindow.
Network window used as document in the MLAB MDI interface.
For each opened network, a MLABIDENetworkWindow is added to the workspace of the MLABIDEMainWindow. A network window can be unnamed, have a given file name and also be an internal network of a macro module.
◆ addLocalMacro()
void MLABIDENetworkWindow::addLocalMacro |
( |
| ) |
|
Adds a local macro module.
◆ captionName()
QString MLABIDENetworkWindow::captionName |
( |
| ) |
|
Returns 'untitled' or the real name.
◆ clearOverwriteCaptions()
void MLABIDENetworkWindow::clearOverwriteCaptions |
( |
| ) |
|
◆ createLocalMacro()
void MLABIDENetworkWindow::createLocalMacro |
( |
const QString & | name = QString() | ) |
|
Creates a local macro module.
◆ doesCloseSilent()
bool MLABIDENetworkWindow::doesCloseSilent |
( |
| ) |
|
|
inline |
Returns whether the document can be closed without saving or requester.
◆ editNetworkScript()
void MLABIDENetworkWindow::editNetworkScript |
( |
| ) |
|
Edits the script for this network (only when network has a filename).
◆ filename
QString MLABIDENetworkWindow::filename |
( |
| ) |
|
|
overrideslot |
Returns the filename as an absolute path.
◆ hasChanged
bool MLABIDENetworkWindow::hasChanged |
( |
| ) |
|
|
slot |
Returns whether the document has changed.
◆ hasOpenAndChangedInternalNetworkForClosing
bool MLABIDENetworkWindow::hasOpenAndChangedInternalNetworkForClosing |
( |
| ) |
|
|
slot |
Returns whether the network contains any macro with an open and changed internal network that should be saved if the network is closed.
◆ hasRelevantChanges
bool MLABIDENetworkWindow::hasRelevantChanges |
( |
| ) |
|
|
slot |
Returns whether the document has changes that need to be saved.
(This is especially not true if the network is empty and not filename is given!)
◆ hasRelevantRunningBackgroundTasks
bool MLABIDENetworkWindow::hasRelevantRunningBackgroundTasks |
( |
| ) |
|
|
slot |
Returns whether the network contains any running background tasks (recursively) that would be affected when this network is closed (which is not the case for internal networks).
◆ hasScriptFile()
bool MLABIDENetworkWindow::hasScriptFile |
( |
| ) |
|
Returns whether there is a script file for the network.
◆ internalMacro()
Returns the internal macro if we are showing an internal network.
◆ isInternalNetwork()
bool MLABIDENetworkWindow::isInternalNetwork |
( |
| ) |
|
|
inline |
Returns whether this module is an internal network.
◆ isUnnamed
bool MLABIDENetworkWindow::isUnnamed |
( |
| ) |
|
|
slot |
Returns whether this document is unnamed.
◆ load
void MLABIDENetworkWindow::load |
( |
const QString & | filename, |
|
|
bool | ignoreAutoSaveFile = false ) |
|
slot |
◆ network
◆ networkScriptWindowClosing()
void MLABIDENetworkWindow::networkScriptWindowClosing |
( |
| ) |
|
Handles closing of window created by startNetworkScript.
◆ outerMacro()
◆ reloadAllModules()
void MLABIDENetworkWindow::reloadAllModules |
( |
| ) |
|
Reloads all the modules in the network (not for internal networks).
◆ removeAutoSaveFile()
void MLABIDENetworkWindow::removeAutoSaveFile |
( |
| ) |
|
◆ runTesterOnNetwork()
void MLABIDENetworkWindow::runTesterOnNetwork |
( |
| ) |
|
Runs the tester on the network.
◆ save
bool MLABIDENetworkWindow::save |
( |
| ) |
|
|
slot |
◆ saveAs
bool MLABIDENetworkWindow::saveAs |
( |
| ) |
|
|
slot |
Saves the document with a file dialog.
◆ saveCopyAs
bool MLABIDENetworkWindow::saveCopyAs |
( |
| ) |
|
|
slot |
Save as... with a file dialog.
◆ setCloseSilent()
void MLABIDENetworkWindow::setCloseSilent |
( |
bool | flag | ) |
|
|
inline |
Sets a flag to close without any saving or requesters.
◆ setOverwriteCaptions()
void MLABIDENetworkWindow::setOverwriteCaptions |
( |
const QString & | shortTitleOverwrite = "", |
|
|
const QString & | fullTitleOverwrite = "" ) |
Defines custom titles that are always displayed in window title and tab bar.
Method can be used to set and unset the caption overwrite. Use clearOverwriteCaptions() to unset the overwrite.
◆ setUnnamed
void MLABIDENetworkWindow::setUnnamed |
( |
| ) |
|
|
slot |
This document should be unnamed.
◆ shortCaptionName()
QString MLABIDENetworkWindow::shortCaptionName |
( |
| ) |
|
Returns 'untitled' or the real name (short version for tabs).
◆ showAll
void MLABIDENetworkWindow::showAll |
( |
| ) |
|
|
slot |
◆ showCreateNetworkNoteDialog()
void MLABIDENetworkWindow::showCreateNetworkNoteDialog |
( |
| ) |
|
Shows the network note creation dialog.
◆ showQuickSearchInNetworkWidget()
void MLABIDENetworkWindow::showQuickSearchInNetworkWidget |
( |
| ) |
|
Shows the quick search in network widget.
◆ showScriptConsole()
void MLABIDENetworkWindow::showScriptConsole |
( |
| ) |
|
Shows the scripting console for this network.
◆ startNetworkScript()
void MLABIDENetworkWindow::startNetworkScript |
( |
| ) |
|
◆ triggerAutoSave()
void MLABIDENetworkWindow::triggerAutoSave |
( |
| ) |
|
Triggers auto-save if needed.
◆ undoManager()
MLABUndoManager * MLABIDENetworkWindow::undoManager |
( |
| ) |
|
|
inline |
◆ updateCaption()
void MLABIDENetworkWindow::updateCaption |
( |
| ) |
|
Updates the window caption whenever the state changes.