|
MeVisLab Scripting Reference
|
#include <mlabIDENetworkWindow.h>
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.
| void MLABIDENetworkWindow::addLocalMacro | ( | ) |
Adds a local macro module.
| QString MLABIDENetworkWindow::captionName | ( | ) |
Returns 'untitled' or the real name.
| void MLABIDENetworkWindow::clearOverwriteCaptions | ( | ) |
Clears custom captions.
| void MLABIDENetworkWindow::createLocalMacro | ( | const QString & | name = QString() | ) |
Creates a local macro module.
|
inline |
Returns whether the document can be closed without saving or requester.
| void MLABIDENetworkWindow::editNetworkScript | ( | ) |
Edits the script for this network (only when network has a filename).
|
overrideslot |
Returns the filename as an absolute path.
Referenced by load(), and showQuickSearchInNetworkWidget().
|
slot |
Returns whether the document has changed.
|
slot |
Returns whether the network contains any macro with an open and changed internal network that should be saved if the network is closed.
|
slot |
Returns whether the document has changes that need to be saved. (This is especially not true if the network is empty and no filename is given!)
|
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).
| bool MLABIDENetworkWindow::hasScriptFile | ( | ) |
Returns whether there is a script file for the network.
|
inline |
Returns the internal macro if we are showing an internal network.
|
slot |
Returns whether the document can be discarded without losing anything. This means no redo, no modules, no notes, no changes, not title
|
inline |
Returns whether this module is an internal network.
|
slot |
Returns whether this document is unnamed.
|
slot |
Loads the document.
References filename().
|
inlineslot |
Returns the network.
| void MLABIDENetworkWindow::networkScriptWindowClosing | ( | ) |
Handles closing of window created by startNetworkScript.
|
inline |
Returns the outer macro.
| void MLABIDENetworkWindow::reloadAllModules | ( | ) |
Reloads all the modules in the network (not for internal networks).
| void MLABIDENetworkWindow::removeAutoSaveFile | ( | ) |
Removes auto-save file.
Referenced by showQuickSearchInNetworkWidget().
| void MLABIDENetworkWindow::runTesterOnNetwork | ( | ) |
Runs the tester on the network.
|
slot |
Saves document.
|
slot |
Saves the document with a file dialog.
|
slot |
Save as... with a file dialog.
|
inline |
Sets a flag to close without any saving or requesters.
| 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.
|
slot |
This document should be unnamed.
| QString MLABIDENetworkWindow::shortCaptionName | ( | ) |
Returns 'untitled' or the real name (short version for tabs).
|
slot |
Shows all.
| void MLABIDENetworkWindow::showCreateNetworkNoteDialog | ( | ) |
Shows the network note creation dialog.
| void MLABIDENetworkWindow::showQuickSearchInNetworkWidget | ( | ) |
Shows the quick search in network widget.
References filename(), and removeAutoSaveFile().
| void MLABIDENetworkWindow::showScriptConsole | ( | ) |
Shows the scripting console for this network.
| void MLABIDENetworkWindow::startNetworkScript | ( | ) |
Runs the network script.
| void MLABIDENetworkWindow::triggerAutoSave | ( | ) |
Triggers auto-save if needed.
|
inline |
Returns the undoManager.
| void MLABIDENetworkWindow::updateCaption | ( | ) |
Updates the window caption whenever the state changes.