MeVisLab Scripting Reference
|
MATE Script Interface | |
void | documentCreated (MATEDocument *document) |
void | currentDocumentChanged (MATEDocument *document) |
void | loadingSessionStarted (const QString &sessionFilename) |
void | loadingSessionFinished (const QString &sessionFilename) |
void | closingSessionStarted (const QString &sessionFilename) |
void | closingSessionFinished (const QString &sessionFilename) |
QList< MATEDocument * > | documents () |
MATEDocument * | openDocument (const QString &filename) |
MATEDocument * | getDocument (const QString &filename) |
MATEDocument * | activeDocument () |
This class is the scripting interface for MATE. It is not available in MeVisLab and should be used in user scripts.
MATEDocument* MATE::activeDocument | ( | ) | [slot] |
Returns the active document, or returns NULL if there is no active document.
void MATE::closingSessionFinished | ( | const QString & | sessionFilename | ) | [signal] |
This signal is emitted when a session finished closing.
void MATE::closingSessionStarted | ( | const QString & | sessionFilename | ) | [signal] |
This signal is emitted when a session starts closing.
During this currentDocumentChanged will be emitted for each closed document.
void MATE::currentDocumentChanged | ( | MATEDocument * | document | ) | [signal] |
This signal is emitted when the current document has changed. The document may be NULL if the last document was closed.
void MATE::documentCreated | ( | MATEDocument * | document | ) | [signal] |
This signal is emitted when a document is created (either when creating a new one or when loading a file).
QList<MATEDocument*> MATE::documents | ( | ) | [slot] |
Returns all open documents.
MATEDocument* MATE::getDocument | ( | const QString & | filename | ) | [slot] |
Returns the document for the given filename, or returns NULL if is not open.
void MATE::loadingSessionFinished | ( | const QString & | sessionFilename | ) | [signal] |
This signal is emitted when a session finished loaded.
void MATE::loadingSessionStarted | ( | const QString & | sessionFilename | ) | [signal] |
This signal is emitted when a session starts loading.
During this loading documentCreated will be emitted for each restored document.
MATEDocument* MATE::openDocument | ( | const QString & | filename | ) | [slot] |
Creates a document and opens the given file in it. If it is already open, it will be activated.