Loading...
Searching...
No Matches
JS::JsViewContext Class Reference
Inheritance diagram for JS::JsViewContext:
Detailed Description
JS object exposed as View: automation of the main scenario view.
Every method degrades gracefully when there is no GUI (--no-gui): the view/presenter accessors return nullptr and the methods become no-ops.
Public Member Functions | |
| bool | grabScene (QString path) |
| bool | grabMainWindow (QString path) |
| bool | grabScreen (QString path) |
| bool | grabWidget (QObject *widget, QString path) |
| QObject * | panel (QString name) |
| QObject * | child (QObject *parent, QString className) |
| QStringList | panels () |
| void | zoom (double zx, double zy) |
| void | scroll (double dx, double dy) |
| void | setZoomRatio (double r) |
| void | centerOn (QObject *process) |
| void | goToInterval (QObject *interval) |
| void | fit () |
| void | recenter () |
| void | setNodal (bool nodal) |
| bool | isNodal () |
Member Function Documentation
◆ child()
| QObject * JS::JsViewContext::child | ( | QObject * | parent, |
| QString | className | ||
| ) |
The first descendant of the given class, e.g. child(p, "QTreeView"). Null when parent is null or nothing matches.
◆ grabWidget()
| bool JS::JsViewContext::grabWidget | ( | QObject * | widget, |
| QString | path | ||
| ) |
◆ panel()
| QObject * JS::JsViewContext::panel | ( | QString | name | ) |
A dock panel's widget by the name it shows, e.g. "Device Explorer". Case-insensitive; null when there is no such panel.
◆ panels()
| QStringList JS::JsViewContext::panels | ( | ) |
The names of the panels that exist: the translated one the header shows, and the widget class name, which panel() also accepts and which does not move with the language.
The documentation for this class was generated from the following files:
- ViewContext.hpp
- ViewContext.cpp